Mean absolute deviation measures the average distance between the values in a data set and their arithmetic mean. This mean absolute deviation calculator works from raw data, a frequency distribution or grouped frequency data, so you can calculate MAD for a short list, a table of repeated values or a set of class intervals. The MAD calculator displays the mean, every deviation and absolute deviation, and the complete calculation with your numbers.
Mean absolute deviation formula
Calculating mean absolute deviation takes one line once the mean is known. The mean and absolute deviation work together: the mean sets the center, and each absolute deviation is a value's distance from that center. The mean absolute deviation (MAD) is the average of those distances.
Formula for raw data
MAD = Σ|xi − x̄| / n
Formula for frequency distributions
MAD = Σ[fi × |xi − x̄|] / Σfi
Here xi is an individual data value, x̄ is the arithmetic mean, n is the number of observations and fi is the frequency of the value xi. In a frequency table, Σfi is the total number of observations.
Why deviations are made absolute
Deviations from the mean always add up to zero, because the values above the mean offset the values below it. Averaging the signed deviations would therefore return 0 for every data set. Taking absolute values first turns each deviation into a distance, so the average measures spread. MAD works with these absolute differences directly and does not square them.
Why the divisor is n
The calculator divides by n for raw data and by Σfi for frequency data, never by n − 1. The n − 1 divisor belongs to the sample variance and standard deviation formulas, while MAD is reported as a plain average of the absolute deviations.
How to calculate mean absolute deviation
This mean absolute deviation example uses the calculator's demo data: 2, 4, 4, 4, 5, 5, 7, 9. To find the MAD for this set of data, follow the six steps below.
- Calculate the arithmetic mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 40 / 8 = 5.
- Subtract the mean from each value to get the deviations: −3, −1, −1, −1, 0, 0, 2 and 4.
- Convert each deviation to an absolute value: 3, 1, 1, 1, 0, 0, 2 and 4.
- Add the absolute deviations: 3 + 1 + 1 + 1 + 0 + 0 + 2 + 4 = 12.
- Divide by the number of observations: 12 / 8 = 1.5.
- The mean absolute deviation is 1.5.
| x | x − x̄ (mean = 5) | |x − x̄| |
|---|---|---|
| 2 | −3 | 3 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 2 |
| 9 | 4 | 4 |
| Sum | 0 | 12 |
The values in this data set lie 1.5 units from the mean of 5 on average. The calculator lists the repeated 4 once, with fi = 3 and a weighted absolute deviation of 3, and returns the same MAD of 1.5.
What is absolute deviation?
Absolute deviation is the distance between a data value and the arithmetic mean, with direction ignored. Its formula is |xi − x̄|. To find an absolute deviation, subtract the mean from the value and keep the result without its sign. A value 3 below the mean and a value 3 above it both have an absolute deviation of 3. Absolute deviations cannot be negative, and one equals zero only when the value is the mean.
This leads to the definition of mean absolute deviation: in math, it is the average of the individual absolute deviations of a data set from its mean.
Understanding mean absolute deviation
A small MAD means the values lie close to the mean on average, and a large MAD means they lie farther away. No MAD is good or bad by itself, because it has to be read against the scale of the data. A MAD of 2 is large for scores out of 10 and small for yearly incomes in dollars.
MAD keeps the units of the original data because the deviations are not squared. A data set measured in kilograms has a MAD in kilograms.
MAD equals zero only when every absolute deviation is zero, which requires every value to equal the mean. In 6, 6, 6, 6 the mean is 6 and each deviation is 0.
An extreme value pulls the mean toward itself and adds one large absolute deviation, so it raises MAD. Because the deviations are not squared, an outlier counts in proportion to its distance from the mean. In standard deviation it counts in proportion to the square of that distance.
Standard deviation squares the deviations, averages them and takes the square root, which gives extra weight to values far from the mean. For the same data, the population standard deviation is never smaller than MAD. The demo data have a MAD of 1.5 and a population standard deviation of 2. To calculate standard deviation for your own data, use the standard deviation calculator.
Mean absolute deviation vs median absolute deviation
Both measures are abbreviated MAD, which causes confusion. Mean absolute deviation, the measure on this page, averages the absolute distances from the arithmetic mean. Median absolute deviation measures distances from the median and then takes the median of those distances, so it is a different statistic. For the demo data the median absolute deviation is 0.5, against a mean absolute deviation of 1.5. The median-based version is also less affected by extreme values.
When a textbook, spreadsheet or software package refers to MAD, check which one it means before comparing results. This calculator computes the mean-based version only.