Mean Absolute Deviation Calculator
Measure average distance from the mean without squaring.
What it does
Mean absolute deviation, often shortened to MAD, measures the typical distance of observations from their average. It is one of the simplest ways to describe spread in a data set.
University of Chicago statistics notes introduce MAD while explaining why statisticians usually prefer standard deviation. They use the data set 1, 2, 2 and 7, whose mean is 3 and whose mean absolute deviation is 2.
NYU lecture notes describe the same measure and contrast it with the median absolute deviation, which uses the median as its centre. The version here uses the mean.
This tool computes the arithmetic mean, takes the absolute difference of each value from it, and averages those differences.
MAD is easy to explain and interpret, but standard deviation has mathematical properties that make it more convenient in many statistical procedures.
How to use
- Enter numbers separated by commas or spaces.
- Read the mean absolute deviation in the main result.
- Check the mean, which is the centre used for the differences.
- Check the count of values entered.
- Try 1, 2, 2, 7 to reproduce the published example.
- Compare the result with a standard deviation for the same data.
Formula
- x(i)
- One observation in the data set.
- mean
- Arithmetic average of all observations.
- absolute value
- The sign of each difference is removed before averaging.
- n
- Number of observations.
The engine uses the population form with n in the denominator, because this is a descriptive measure for the list you entered. It does not apply Bessel's correction.
Worked example
Example: four numbers
Data set 1, 2, 2, 7.
- The mean is (1 + 2 + 2 + 7) / 4 = 3.
- Differences from the mean are -2, -1, -1 and 4.
- Absolute differences are 2, 1, 1 and 4.
- Their sum is 8, and dividing by 4 gives 2.
- The tool reports MAD 2.000000, mean 3.000000 and count 4.
- The standard deviation for the same data would be larger because it squares the deviations.
Reference table
| Value | Difference from mean | Absolute difference |
|---|---|---|
| 1 | -2 | 2 |
| 2 | -1 | 1 |
| 2 | -1 | 1 |
| 7 | 4 | 4 |
| Mean 3 | Sum 0 | MAD 2 |
Limits
- The centre used here is the mean, not the median.
- It uses n in the denominator, as a descriptive measure.
- It is less common in inferential statistics than standard deviation.
- Input is limited to 1000 values.
Common mistakes
- Using the median as the centre without saying so.
- Dividing by n minus one, which belongs to the sample variance.
- Forgetting the absolute value and getting zero.
- Comparing MAD with a variance, which has different units.
- Mixing MAD with median absolute deviation.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the MAD of 1, 2, 2, 7?
2, from absolute differences 2, 1, 1 and 4 around the mean 3.
What centre does this tool use?
The arithmetic mean.
How is MAD different from standard deviation?
It averages absolute distances rather than square roots of squared distances.
Questions
What is mean absolute deviation?
The average absolute distance of observations from their mean.
What units does it have?
The same units as the original data.
Why not always use it?
Standard deviation has nicer mathematical properties for inference.
What is median absolute deviation?
A related measure that uses the median as its centre.
Does the tool use n or n minus one?
It uses n, as a descriptive statistic.
Is MAD sensitive to outliers?
Less so than standard deviation, because differences are not squared.