Pharmaceutical Calculation Suite
Identify statistically anomalous data points with Grubbs, Dixon Q, and Rosner ESD tests.
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).
Three Statistical Outlier Tests
1. Grubbs Test (α=0.05, two-tailed): Best for n > 6. Tests whether a single point is an outlier.
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.
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.
Symbols and Descriptions
| Symbol | Name | Description |
|---|---|---|
| n | Sample Size | Number of observations in dataset |
| xᵢ | Individual Value | Each data point (e.g., potency result) |
| X̄ | 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. |
Worked Example — Dissolution Data Outlier Detection