Advertisement

Median absolute deviation calculator

Use the median of absolute distances to describe spread with less influence from extreme observations.

Calculator

Use commas, spaces or new lines between numbers. Use the same unit for every observation.

Selected median absolute deviation
1.000000
Raw median absolute deviation
1.000000
Data median
3.000000
Distances from median
ObservationAbsolute deviation
1.0000002.000000
2.0000001.000000
3.0000000.000000
4.0000001.000000
5.0000002.000000

Advertisement

How this calculator works

First find the ordinary median, then take each absolute distance from it, and find the median of those distances. Raw MAD has the original data unit. The optional factor 1.4826 makes it an asymptotically consistent estimate of standard deviation for normal data, following the conventional rounded factor used by R. It is not an exact conversion for arbitrary distributions or very small samples.

Formula

Raw MAD = median(|x_i - median(x)|); normal-consistent MAD ≈ 1.4826 × raw MAD.

Worked example

For 1, 2, 3, 4, 100, the median is 3 and absolute distances are 2, 1, 0, 1, 97. Their median is 1, so raw MAD is 1.

Advertisement

Frequently asked questions

Can MAD be zero with an outlier?

Yes. If enough observations equal the median, the middle absolute distance is zero even when other values differ.

Is this mean absolute deviation?

No. This tool takes a median twice. The mean absolute deviation tool averages distances from a chosen centre.

Should I always use the scaled result?

Use scaling when you want a normal-model estimate of standard deviation. Report raw MAD when describing the median absolute distance itself.

Sources

Advertisement