PharmaCalc

Pharmaceutical Calculation Suite

← All calculator guides Open calculator →
⚠️

Outlier Testing

Identify statistically anomalous data points with Grubbs, Dixon Q, and Rosner ESD tests.

USP <1010> ICH Q2(R1) Grubbs Test Dixon Q Test
🏭

Industry Use

Outlier Detection in Pharmaceutical QC

Outlier tests identify data points that are statistically inconsistent with the remainder of a dataset. They are used in pharmaceutical quality control to evaluate anomalous assay results, stability data, dissolution measurements, and analytical sequences. Per USP <1010>, outlier testing is recommended for validation and analytical method assessment.

Critical GMP principle: Statistical outlier rejection alone is never sufficient. Per 21 CFR Part 11 and GMP guidance, outliers must be excluded only after investigation confirms an assignable cause (e.g., instrument malfunction, analyst error, sample contamination). A result cannot be discarded solely because statistics say it's unlikely—the investigation must document why the outlier occurred.

Common applications: evaluating OOS results in batch release, detecting contaminated stability samples, assessing analytical method ruggedness, and identifying data entry errors. Three tests are offered: Grubbs (n>6), Dixon Q (n=3–25), and Generalized ESD (Rosner, for multiple outliers).

📐

Calculation Explanation

Three Statistical Outlier Tests

1. Grubbs Test (α=0.05, two-tailed): Best for n > 6. Tests whether a single point is an outlier.

Grubbs Test Statistic
G = max|xᵢ − X̄| / s

Compare G to Grubbs critical value table for n and α. If G exceeds critical value, the point is statistically significant outlier at α.

2. Dixon Q Test: Best for small samples (n=3–25). Simpler than Grubbs.

Dixon Q Statistic
Q = (suspect − nearest) / range

where range = max value − min value. Compare Q to Dixon Q critical table. If Q exceeds critical value, reject outlier.

3. Generalized ESD (Rosner): Detects multiple outliers iteratively. Removes one potential outlier at a time and recalculates limits.

USP <1010> Statistical Techniques ICH Q2(R1) Validation of Analytical Procedures 21 CFR Part 11, GMP Regulations
📋

Variable Definitions

Symbols and Descriptions

Symbol Name Description
n Sample Size Number of observations in dataset
xᵢ Individual Value Each data point (e.g., potency result)
Mean Average of all observations
s Standard Deviation Measure of data spread
G Grubbs Statistic Distance of outlier from mean in SD units
Q Dixon Q Statistic Ratio of suspect gap to total range
Range Data Range max(xᵢ) − min(xᵢ)
α Significance Level Risk level for rejection (e.g., α=0.05 = 5%)
Critical Value Test Threshold Tabulated value. If test stat > critical, reject outlier.
📝

Step-by-Step Tutorial

Worked Example — Dissolution Data Outlier Detection

→ Open Outlier Testing Calculator