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> USP <1010> Grubbs Test Dixon Q Test
Get Grubbs, Dixon Q and generalized ESD side by side, with a consensus verdict.
Free demo — no account needed. Every run produces a GMP PDF report.
Open the Outlier Testing calculator →
Open the Outlier Testing calculator →
🏭

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 211.192, FDA’s OOS guidance, and USP <1010>, 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–30), 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–30). Simpler than Grubbs.

Dixon Q Statistic
Q = gap / range — r10 form shown; the calculator switches the ratio by n per Dixon/E178: r10 (n = 3–7), r11 (8–10), r21 (11–13), r22 (14–30), and reports which form it used

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 21 CFR 211.192 FDA OOS Guidance
📋

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

Stop rebuilding this in a spreadsheet

PharmaCalc returns Grubbs, Dixon Q and generalized ESD side by side, with a consensus verdict. It is computed server-side against the published method and written into a GMP PDF report with the inputs, formula chain, references, document control and signature pages — traceable to the software release that produced it.

Open the Outlier Testing calculator — free demo
No account required to try it · Browse all 23 calculator guides
Open the Outlier Testing calculator →