A temperature sensor produced 20 readings: 17 between 48 and 52, plus 99, 100 and 101. The table shows their summary statistics. A rule that flags |z| > 3 using the mean and standard deviation flags nothing. What is the best explanation and fix?
| Statistic | Value |
|---|---|
| n | 20 |
| Mean | 57.4 |
| Standard deviation | 18.4 |
| Median | 50 |
| MAD (median absolute deviation) | 1.0 |
| Three largest readings | 99, 100, 101 |
Show the answer and explanation
Correct answer: D, The three extremes inflate the mean and SD that define the cut-off (masking); a robust z-score, 0.6745 × (x − median) / MAD, gives about 33 for the reading 99 and flags all three.
Explanation Outliers
Classic z-scores use the mean and standard deviation, and both are themselves pulled by outliers. With several extreme points, the SD inflates so much that the extremes no longer look extreme. This is called masking.
Here z(101) = (101 − 57.4) / 18.4 ≈ 2.4, below 3, so nothing is flagged even though three readings are double the normal level.
A robust z-score replaces the mean with the median and the SD with the MAD (median absolute deviation):
robust z = 0.6745 × (x − median) / MAD
The constant 0.6745 makes the MAD comparable to σ for normal data (σ ≈ 1.4826 × MAD). For the reading 99: 0.6745 × 49 / 1.0 ≈ 33, far beyond the usual cut-off of 3.5 (Iglewicz and Hoaglin). The median and the MAD have a 50% breakdown point, so up to half the data can be contaminated before they break down.
Why the distractors fail:
- A largest z of about 2.4 is the symptom of masking, not evidence that the readings are plausible.
- Min-max scaling, like any linear rescaling, leaves z-scores unchanged.
- A log transform helps with skew, but on the log scale the mean and SD are inflated by the same three points; the largest z is still only about 2.35.
Interview tip: rank outlier rules by robustness (z-score < IQR fences < MAD, with breakdown points of 0%, 25% and 50%) and add that with small samples |z| has a hard ceiling of (n − 1)/√n, so a 3-SD rule can never fire for n ≤ 10.