- Introduced by
- Hampel (influence-curve treatment); classical robust statistics
- Year
- 1974
- Type
- Robust scale estimator
What does it do?
Median Absolute Deviation (MAD) estimation is a robust measure of dispersion that can replace the standard deviation when outliers are present.
It uses the sample median as the centre and the median of the absolute deviations from that centre, so a few extreme values have little effect on the result. Rousseeuw and Croux (1993) describe MAD as having a simple explicit formula, a bounded influence function and a 50% breakdown point.
The intuition behind the method
Instead of measuring how far points sit from the mean and then averaging the squared distances, MAD asks a more outlier-resistant question: how far is a typical point from the centre? It takes the median of the data as the centre, measures the absolute distance of every observation from that median, and then takes the median of those distances. Because medians ignore extreme values, one wild observation barely moves the answer.
History
The median absolute deviation is a standard tool in robust statistics. Rousseeuw and Croux (1993) examined it critically, noting its simple explicit formula, its bounded influence function and its 50% breakdown point, and proposed the Sn and Qn scale estimators as more efficient alternatives. Hampel (1974) developed the influence-curve framework for studying how individual observations affect an estimator, which is the setting in which robustness properties such as a bounded influence function are analysed.
When to use it
Choose MAD when you need a measure of spread for a continuous variable and suspect outliers or heavy tails that would inflate the standard deviation. It is also suitable when you want a scale estimate that is simple to compute and does not depend on a location estimate other than the median. It is less suitable when the data are clean and approximately normal and you want the most efficient estimate of scale; Rousseeuw and Croux report a Gaussian efficiency of 37% for MAD, and their Sn and Qn estimators are proposed as more efficient alternatives. Because MAD is aimed at symmetric distributions, it is also a weaker choice for strongly skewed data, where the interpretation of the spread around the median should be checked. With very small samples the median of deviations is itself unstable, so the estimate should be reported with caution.
Limitations and considerations
- Rousseeuw and Croux note that MAD is aimed at symmetric distributions, so its meaning for strongly asymmetric data needs care.
- Gaussian efficiency is low (37% according to Rousseeuw and Croux (1993)): when the data really are clean and normal, the standard deviation gives a more precise estimate of scale.
- Only absolute deviations enter the calculation, so MAD carries no information about the direction of deviations and says nothing directly about asymmetry.
- In very small samples the median and the median of deviations are based on few values, so the estimate is unstable and can change markedly with a single observation.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Highly robust: its 50% breakdown point means that up to half of the observations can be contaminated before the estimate breaks down, and its influence function is bounded.
- Simple, explicit formula that needs little computation, so it is quick to apply to large columns of data.
- After scaling by 1.4826, it is directly comparable to the standard deviation for normally distributed data.
Applications
- Robust outlier screening, flagging observations that lie more than a chosen multiple of the scaled MAD from the median. The multiple is a convention, not a universal value: choose it to suit the data and the cost of false flags, and check how the flagged set changes when it is varied.
- Reporting the spread of skewed or heavy-tailed continuous data where the standard deviation would be inflated by a few extreme values.
- Robust standardisation and quality-control limits that should not be driven by a small number of aberrant measurements.
How it works
How it works
The centre of the data is taken as the sample median, and the absolute deviation d_i = |x_i − median(x)| of each observation from that median is computed. Using absolute rather than squared deviations stops a single distant point from dominating the calculation.
Formula
d_i = |x_i - \operatorname{median}(x)|MAD is the median of these absolute deviations, multiplied by the constant 1.4826, as defined by Rousseeuw and Croux (1993). The constant makes MAD a consistent estimator of the standard deviation σ only when the data are normally distributed, so that under normality it can be read on the same scale as σ. The median-based construction keeps the 50% breakdown point.
Formula
\mathrm{MAD} = 1.4826 \cdot \operatorname{median}_i\, |x_i - \operatorname{median}(x)|Common pitfalls
- Forgetting the 1.4826 scaling factor and then comparing the raw MAD directly with a standard deviation.
- Using the 1.4826 constant as if it made MAD consistent for non-normal data; the constant is tuned to the normal distribution.
- Replacing the sample median with the mean as the centre, which changes the quantity being estimated and removes the outlier resistance the method is chosen for.
- Reading MAD as a measure of location; it is a measure of spread around the median.
- Relying on a single MAD estimate from a very small sample without checking how sensitive it is to individual observations.
- Ignoring ties: if more than half of the observations share the same value, the MAD is zero. A zero scale breaks standardisation and outlier flags (division by zero, or every differing point being flagged). In that case use a different scale estimate or report the limitation.
Frequently asked questions
Why multiply by 1.4826?
The constant 1.4826 rescales the raw MAD so that, for normally distributed data, it estimates the same quantity as the standard deviation. This lets you read MAD on the familiar σ scale. For non-normal data the constant does not give a consistent estimate of the standard deviation.
What does a 50% breakdown point mean?
It means up to half of the observations can be arbitrarily corrupted before the estimate can be driven to a nonsensical value. Rousseeuw and Croux (1993) report a 50% breakdown point for MAD, Sn and Qn; this is the highest value attainable by an equivariant scale estimator.
How is MAD different from the standard deviation?
The standard deviation averages squared distances from the mean, so a single extreme value can inflate it dramatically. MAD uses the median of absolute distances from the median, so outliers have much less effect, at the cost of efficiency when the data are genuinely normal (37% Gaussian efficiency according to Rousseeuw and Croux).
When should I use Sn or Qn instead of MAD?
Rousseeuw and Croux proposed Sn and Qn as scale estimators with a 50% breakdown point and higher Gaussian efficiency: 58% for Sn and 82% for Qn, compared with 37% for MAD. They can be computed in O(n log n) time and do not require a location estimate. Consider them when efficiency matters, or when MAD is zero because of many tied values.
How do I choose a cut-off for flagging outliers with MAD?
Compute the distance of each point from the median in units of the scaled MAD and flag points beyond a threshold. Thresholds in common use are conventions rather than rules, so pick one suited to your data, and examine how the flagged set changes with the threshold before acting on it. If the MAD is zero, this rule cannot be used.
Related methods
Sources
Hampel, F. R. (1974). The Influence Curve and Its Role in Robust Estimation. Journal of the American Statistical Association, 69(346), 383-393.
Open DOI referenceRousseeuw, P. J. & Croux, C. (1993). Alternatives to the Median Absolute Deviation. Journal of the American Statistical Association, 88(424), 1273-1283.
Open DOI reference