Find the median absolute deviation (MAD), a measure of spread that outliers can barely move, plus a robust estimate of the standard deviation and modified z-scores that flag outliers.
MAD = median(|x − median|) · robust σ ≈ 1.4826 × MAD
The median absolute deviation is the median distance of the values from their median. It's a measure of spread built entirely from medians, so nearly half the data can be wildly wrong before it's badly affected.
That makes it the go-to spread measure for messy data: sensor readings with glitches, lab results with a few failed samples, or anything where you suspect outliers but don't want them to set the scale.
Multiplied by 1.4826, it estimates the standard deviation for bell-shaped data, so you get an SD-like number that outliers can't inflate. Dividing each value's distance by it gives modified z-scores, a robust way to flag outliers.
Modified z-score and 3.5 cut-off as recommended by Iglewicz and Hoaglin. See Sources.
Sort the values and take the middle one, m.
1.4826 is 1 ÷ 0.6745, and 0.6745 is the 75th percentile of the standard normal distribution.
The ordinary standard deviation is 3.0, inflated by the 9. The robust estimate describes the tight cluster of the other values.
The worked example as its largest value grows. The MAD doesn't move; the standard deviation balloons.
| Largest value | MAD | 1.4826 × MAD | Sample SD |
|---|---|---|---|
| 9 | 1 | 1.48 | 2.99 |
| 20 | 1 | 1.48 | 6.79 |
| 100 | 1 | 1.48 | 36.83 |
| 1000 | 1 | 1.48 | 376.96 |
Its breakdown point is 50%: almost half the values can be replaced with anything at all before it can be made arbitrarily large. A single bad value is enough to ruin the standard deviation.
Whenever you want to compare it with, or use it in place of, a standard deviation. Leave it unscaled if you just want the median distance itself.
For finding outliers, usually yes. Ordinary z-scores use the mean and SD, which the outlier itself distorts, so a large outlier can hide itself. Modified z-scores use the median and MAD.
No built-in one. Use =MEDIAN(ABS(range−MEDIAN(range))), entered as an array formula in older versions of Excel.
More than half the values are identical. The MAD can’t measure spread in that case; use the IQR or the mean absolute deviation instead.
Robust statistics, anomaly detection in monitoring data, cleaning sensor readings, and finance, wherever a few extreme values shouldn’t set the scale.
It’s the cut-off Iglewicz and Hoaglin recommended for modified z-scores, roughly comparable to |z| > 3 for clean normal data.
At least two to calculate it, but it becomes useful with five or more, and most reliable with dozens.
Related Tools