MAD (Median Absolute Deviation)
Takes a comma-separated list of numbers and returns the median absolute deviation, median of |xi − median(x)|, a spread measure that resists outliers.
MAD
—
Median Absolute Deviation (MAD)
The MAD is a robust measure of spread, defined as MAD = median(|xᵢ − median(x)|). On its own it isn't on the same scale as the standard deviation, so under a normal distribution you multiply by the consistency factor 1.4826 to get σ̂ = 1.4826 · MAD. Take 1, 1, 2, 2, 4, 6, 9 as an example. The median is 2; the absolute deviations come out to 1, 1, 0, 0, 2, 4, 7, whose median is 1, so MAD = 1 and σ̂ ≈ 1.48. What makes it so durable is its 50% breakdown point. You can corrupt up to half the observations by any amount and the MAD still holds, which is the highest of any classical spread measure. Huber, Hampel and Rousseeuw leaned on it heavily when they built up robust statistics in the 1980s.
Applications
Flagging outliers with the rule |xᵢ − median|/MAD > 3. Cleaning up ML pipelines when the data is contaminated. Measuring volatility in finance without leaning on the standard deviation. It also shows up in industrial quality control and in spotting anomalies coming off IoT sensors.
FAQ
MAD or standard deviation? Reach for the MAD when your data has outliers or isn't Gaussian. On clean, normal data σ wins on efficiency, by roughly 37%.
Where does 1.4826 come from? It's 1/Φ⁻¹(0.75) ≈ 1.4826. That's the number that lets the MAD line up with σ as a consistent estimator under a normal distribution.
Can the MAD be zero? Yes, and it happens when more than half of the observations sit right on the median. Then the MAD > 3 rule falls apart, and you're better off with the Sn estimator from Rousseeuw-Croux.
Related Tools
List Statistics
Calculate complete statistics for a list of numbers: sum, mean, median, mode, min, max, range and standard deviation.
Z-Score Calculator
Compute the Z-score (standard score) of a value given population mean and standard deviation. Includes corresponding percentile. Everything in your browser.
Accuracy as % of Full Scale
Convert an accuracy specification given as a percentage of full scale (% FS) into the absolute error in engineering units, Error = (accuracy% · span)/100. Since the %FS error is constant across the range, it represents a larger relative error at low readings — so it is important to translate it into real units. Enter the accuracy percentage and the instrument span.
Basic Statistics Calculator
From a list of numbers, compute mean, median, mode, min, max, sum, standard deviation and variance (population and sample). Everything in your browser.
CI for Variance and Standard Deviation
Computes the confidence interval for the variance and standard deviation of a normal population, from a sample. While most tools estimate the mean, this one estimates the spread — useful in quality control, where consistency matters as much as the central value. The calculation uses the chi-square distribution, which is asymmetric, so the interval is not centered on the sample variance. Enter the sample and the confidence level.
Range, Variance and Standard Deviation
Paste a comma-separated list of 2 or more numbers to get max minus min, the sample variance s² with the Bessel n-1 divisor, and the sample s.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.