Advancing QE Skills (40) | Discipline in Handling Outliers: Remove or Retain
1. "Remove One Point, and Cpk Meets the Standard"
A laboratory in a manufacturing company conducted a process capability analysis on a batch of shaft diameters. The sample size was 30, with a tolerance of 10.00±0.30. The inspector entered the data into the software, and the Cpk displayed 0.88, which was below the customer's requirement of 1.33. He noticed a data point of 10.45 that was clearly an outlier. After removing it, the Cpk increased to 1.40, and the report was smoothly approved. Three months later, during a second-party audit by the customer, the original records were reviewed, and it was found that only 29 out of the 30 data points remained, with no explanation for the deletion or re-measurement records. The customer issued a "data integrity issue" and re-reviewed all capability reports from this supplier.
The debate usually stops at "should this point be removed?" However, the true determinant of the outcome is another question: Before removing it, was its identity confirmed? Outliers appear to be a statistical issue, but they are fundamentally a causality issue—statistics can only tell you "it doesn't look like the others," not "why it doesn't look like the others." Incorrect criteria lead to actions that make the report look good but are useless.
2. Qualitative Determination: Four Identities and Four Actions of Outliers
| Identity | Clues for Identification | Correct Action | Can It Be Removed from Capability Analysis? |
|---|---|---|---|
| Recording/Entry Error | Decimal point misplacement, inconsistent units, wrong row copied, date and batch mismatch | Correct the original record, double-check and document | Yes, but retain the original value and note the correction basis |
| Measurement System Error | Re-measurement value is normal; measurement issues such as knocks, lack of temperature control, dirty probe, or misalignment | Re-measure to confirm, trigger MSA re-evaluation | Yes, provided the re-measurement data is supplemented and explained |
| Process Real Anomaly | The point corresponds to tool change, material change, first article, machine start/stop, equipment alarm, shift change | Identify as an out-of-control point, isolate products from the affected period, and initiate 8D/CAPA | No—it is not dirty data, but a signal from the process |
| Heavy-Tailed Population | All data points are like this, histogram shows bimodal or heavy-tailed, mixed batches | Stratify first, then fit non-normal distribution or transform data for capability analysis | No, change the analysis method |
Only the first two categories fall under "data processing," while the latter two are "process handling." Confusing the two is the root cause of most data cleaning accidents.
Another often overlooked preliminary judgment is: Is this data from the same population? If the 30 points come from 3 shifts, 2 machines, and 2 batches of raw materials, the "outlier" is likely just a normal level of one stratum. Stratify first, then discuss outliers—otherwise, you are not removing a point but the representative of an entire subgroup.
3. Criteria: Applicability and Limitations of Three Tools
The three commonly used criteria are all based on the assumption that "the rest of the data is approximately normal" and are highly sensitive to sample size.
1. 3σ Rule (Simplest and Easiest to Fail)
Use the sample mean and standard deviation to determine |x−x̄|>3s. The problem is that outliers themselves inflate s, leading to "self-masking": in this example, a point deviating by 4σ increased the sample standard deviation from 0.072 to 0.108, a 50% increase, causing the 3σ line to expand and making the criterion ineffective. Best practice: only reference when n≥25, and use it only for "initial screening of suspicious points," not for final determination.
2. Box Plot 1.5 IQR/3 IQR
Points outside 1.5 IQR are considered suspicious, and points outside 3 IQR are considered extreme, with different handling methods: suspicious points should generally be retained and investigated, while extreme points are evaluated for removal. Note that when n<20, the quartiles themselves are unstable, and different interpolation algorithms can lead to different conclusions, so avoid using this method on small samples.
3. Grubbs' Test (Standard Criterion for Single Outliers)
The test statistic G = |xᵢ − x̄| / s, with the maximum value compared to the critical value. Selected critical values for a two-tailed α=0.05:
| n | 10 | 15 | 20 | 25 | 30 | 50 | 100 |
|---|---|---|---|---|---|---|---|
| G Critical Value | 2.18 | 2.41 | 2.56 | 2.66 | 2.75 | 2.96 | 3.21 |
Three usage rules:
- Do not use when n<7, as the detection power is below 30%, and removing or retaining the point does not address the issue; when n≥50, the critical value approaches 3.0, overlapping with the 3σ criterion, at which point process signals should be relied upon more than statistics.
- Grubbs' test only evaluates one point at a time; after removal, retest (iterative Grubbs) but set a limit on the number of iterations, typically no more than 2, to avoid artificially normalizing a heavy-tailed population.
- The test conclusion is a probability statement that "it is from a different source than the rest of the data." α=0.05 means that out of 20 tests, about 1 will be a false positive, so the criterion should lead to an action: G exceeds the critical value → enter the verification process, not direct deletion.
Returning to the initial case: n=30, G=(10.45−10.01)/0.108=4.03, which is much greater than 2.75. Grubbs' test clearly identifies it as an outlier. However, if this 10.45 corresponds to the first article after a tool change, then "statistically an outlier" and "should it be removed" are two entirely different questions.
4. Practical Five-Step Process
Step 1: Isolate, Do Not Delete. Mark suspicious points in the original record (do not overwrite the original value) and lock the part number, batch, timestamp, and equipment number. Under no circumstances should the original data row in the database be rewritten—corrections must be additive: original value + new value + reason + verifier + date.
Step 2: Re-measure to Distinguish Measurement Issues from True Values. Re-measure the same part and characteristic three times under the same measurement system and environmental conditions: if the range of the three measurements ≤ 10% of the tolerance band (0.06 in this example) and the re-measured mean returns to the main range → identify as a measurement issue; if all three measurements consistently show an abnormal level → identify as a true value and proceed to Step 3. Record any changes in personnel, equipment, or fixtures during this process.
Step 3: Causality Analysis, Qualify According to the Table in Section 2. Review the process history of the point: tool changes, material changes, first articles, machine start/stop, alarms, and shift change records. If a matching event is found → identify as a process real anomaly, and the action is to isolate products from the affected period and initiate 8D, while retaining the data. If no events are found and it is due to recording or measurement issues → it can enter the removal process.
Step 4: Written Basis and Quantity Limit for Removal. A removal record should contain at least 8 fields: data location, original value, test statistic (G value or IQR distance), criterion and significance level, cause classification, re-measurement result, impact range, and approver. Quantity discipline: the number of points removed in a single analysis ≤ 5% of the sample size (for n=30, at most 1-2 points), and no consecutive removals on the same side. If this ratio is exceeded, it indicates an impure population, and stratification should be done instead of further removal.
Step 5: Dual Reports, Both Before and After Removal. The report should provide both the "Cpk of all data" and the "Cpk after removal," along with the number of points removed and the basis for removal. For this example:
| Diameter | n | Mean | Standard Deviation | Cpk |
|---|---|---|---|---|
| All Data | 30 | 10.015 | 0.108 | 0.88 |
| Remove 1 Point | 29 | 9.999 | 0.072 | 1.40 |
If the difference between the two values is more than 0.5, this difference itself is the most valuable information: it indicates a periodic source of deviation in the process (tool change, batch change, or insufficient warm-up). Reporting only 1.40 would permanently lose this clue. The purpose of capability indices is to drive improvement, not to pass audits.
5. Common Pitfalls
- Treating "3σ Cleaning" as a Routine Process. Automatically removing one or two points per batch, after six months, all reports show Cpk between 1.3 and 1.5, but customer complaints have not decreased. This is not an improvement in the process, but in the appearance of the reports.
- Removing Process Signals, Leaving CAPA Gaps. Points such as the first article after a tool change, insufficient warm-up at startup, or mixed batches are statistically outliers. Removing them is the easiest and most expensive action—corrective and preventive actions that should be taken are also removed.
- One-Sided Removal. Removing only high-end points and not low-end points (or vice versa) systematically skews the mean, causing the center line of the control chart to shift and leading to frequent false alarms.
- Applying Large Sample Criteria to Small Samples. Using Grubbs' test for n=8 or 1.5 IQR for n=12 to identify "extreme values" results in insufficient detection power, and both removal and retention lack basis. When n<20, the correct approach is to collect more data, not to supplement the criteria.
- No Traceability for Removal. Deleting rows in Excel or filtering in software without keeping a backup of the original file. During audits, this cannot be reproduced and directly violates data integrity requirements, which is more serious than insufficient capability.
- Not Recalculating Control Limits After Removal. Recalculating the capability index but not updating the control chart UCL/LCL leads to inconsistent standards and subsequent misidentification of anomalies.
6. Self-Check List
- Are suspicious points first marked in the original record (without overwriting the original value) and the part number, batch, timestamp, and equipment number locked?
- Have three re-measurements been conducted under the same conditions, and the "range ≤ 10% of the tolerance band" used to distinguish measurement issues from true values?
- Have tool changes, material changes, first articles, machine start/stop, and shift change records been reviewed to confirm it is not a process real anomaly?
- Is there a written basis for removal (test statistic, criterion, α level, cause classification, approver), and is the removal ratio ≤ 5%?
- Does the report provide both the capability indices for all data and the data after removal, and are the control limits recalculated accordingly?
Determine the nature before removal, and deletion must be justified.
Knowledge code: 11.2.3
Version: v20261106
Author: QTank QTank is dedicated to providing systematic professional knowledge, methodologies, and practical tools for quality management practitioners, helping companies continuously improve their quality capabilities.