Definitionintro
Median absolute deviation
Also called MAD.
The median of the absolute deviations from the median. Scaled by 1.4826 it estimates the normal standard deviation with breakdown point 1/2.
The median absolute deviation (MAD) is a robust measure of spread. Take the median of the sample, then the median of the distances of the points from it. Half of the points are within one MAD of the median. Multiplied by , it estimates the standard deviation of a normal law. Unlike the standard deviation, it can carry almost half of the sample as outliers.
Definition
For a sample , let be the sample median (the average of the two middle values when is even). The median absolute deviation is
The normalized MAD is
where is the upper quartile of the standard normal law.
For a law with median , the functional is the median of the law of : the value with .
Computing the MAD needs two medians, so it takes linear time with a selection method such as quickselect.
Proof of the constant. Let . Its median is . For ,
This equals if and only if , that is . So the population MAD is , and has the functional value . The sample MAD tends to the population MAD almost surely when is continuous and the two medians are unique, so is consistent for at the normal.
The constant is . At another law the same factor gives a different number. At the Laplace law with scale (standard deviation ), the MAD is .
Examples and non-examples
A small sample by hand. Take . The median is 5. The absolute deviations are ; sorted, . Their median is 2, so and . The sample standard deviation is 9.656, mostly because of the point 30. Change 30 to 3000: the MAD stays 2, and the standard deviation becomes 1131.9.
An even sample. For the median is 3.5, the deviations are , and the MAD is 1.5.
Breakdown point . Let the clean sample have distinct values, with or . Replace points. A scale estimate breaks down if it can go to infinity (explosion) or to zero (implosion); see breakdown point.
Proof. Explosion. If , the median stays in , the range of the clean points (the breakdown point page proves this). Then every clean point has a deviation at most . There are clean points. For odd , gives at least deviations at most , so the middle deviation is at most . For even , gives at least such deviations, so both middle deviations are at most . So no explosion happens with fewer than points.
Implosion. Let be the least gap between two clean values. An open interval of length less than holds at most one clean point. So at most deviations are less than . If , then in both cases, so the -th smallest deviation is at least , and the MAD is at least . Conversely, put replaced points on top of one clean point . Then points equal . They are a majority of the sample, so the median is , and deviations are 0. The -th smallest deviation is 0, and so is the MAD.
So implosion needs points and explosion needs , and . This tends to , the best value for an equivariant scale estimator.
Influence function and efficiency. Let be symmetric about with a density that is continuous and positive at , where is the population MAD. Contaminate with . The median moves by , but by symmetry its first-order effect on is . Differentiate at :
For at , with and , this is . It takes only the two values . The asymptotic variance is . The standard deviation has the influence function and the variance . So the efficiency of the MAD at the normal is , about 37 percent. Hall and Welsh (1985) proved the asymptotic normality.
Non-examples.
- The mean absolute deviation is not robust. Its breakdown point is , like the standard deviation.
- A MAD that is zero. If more than half of the sample has one value, the MAD is 0, even if the other points are spread out. For example, has MAD 0. Data that are rounded or counts often show this. Then a scale of 0 makes standardized residuals infinite.
- The constant 1.4826 gives only at the normal law. It is not a general conversion from MAD to standard deviation.
Related definitions
- Interquartile range. , divided by at the normal. Its breakdown point is . For a symmetric law the MAD is half the interquartile range.
- and of Rousseeuw and Croux (1993). and , the first quartile of the pairwise distances for . Both have breakdown point and need no location estimate. has an efficiency of about 82 percent at the normal.
- Scale of an M-estimator. The Huber M-estimator and Tukey's biweight use the normalized MAD as a fixed scale, to make the location estimate scale equivariant.
- Outlier rules. The rule (or 2.5) flags outliers. It is the robust form of the z-score rule, and statistical outlier removal for point clouds uses a related rule.
References
- Frank R. Hampel, The influence curve and its role in robust estimation, Journal of the American Statistical Association 69(346), 1974, pp. 383 to 393 (the median deviation as a robust scale estimator, and its influence function)
- Peter J. Rousseeuw and Christophe Croux, Alternatives to the median absolute deviation, Journal of the American Statistical Association 88(424), 1993, pp. 1273 to 1283 (the MAD, its breakdown point and its 37 percent efficiency, and the estimators Sn and Qn)
- Peter Hall and A. H. Welsh, Limit theorems for the median deviation, Annals of the Institute of Statistical Mathematics 37, 1985, pp. 27 to 36 (the asymptotic normality of the MAD)
- Ricardo A. Maronna, R. Douglas Martin, Victor J. Yohai and Matías Salibián-Barrera, Robust Statistics, Theory and Methods (with R), second edition, Wiley, 2019, Chapter 2 (dispersion estimators, the normalized MAD)
- Peter J. Huber and Elvezio M. Ronchetti, Robust Statistics, second edition, Wiley, 2009, Chapter 5 (scale estimates, the median absolute deviation)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag KS6NA3 Edit this page History Report an error Markdown