Mean Absolute Deviation Calculator Formula
Understand the math behind the mean absolute deviation calculator. Each variable explained with a worked example.
Formulas Used
Mean Absolute Deviation
mad = (abs(v1 - mn) + abs(v2 - mn) + abs(v3 - mn) + abs(v4 - mn)) / 4Mean
mean_val = mnVariables
| Variable | Description | Default |
|---|---|---|
v1 | Value 1 | 3 |
v2 | Value 2 | 6 |
v3 | Value 3 | 9 |
v4 | Value 4 | 12 |
mn | Derived value= (v1 + v2 + v3 + v4) / 4 | calculated |
How It Works
How to Calculate Mean Absolute Deviation
Formula
MAD = (1/n) * Sum of |xi - mean|
For each value, find the absolute difference from the mean, then average those differences. Unlike variance, MAD does not square the deviations, making it less sensitive to outliers and easier to interpret: it is literally the average distance from the mean.
Worked Example
Find the MAD of 3, 6, 9, 12.
v1 = 3v2 = 6v3 = 9v4 = 12
- 01Mean = (3 + 6 + 9 + 12) / 4 = 30 / 4 = 7.5
- 02Absolute deviations: |3-7.5|=4.5, |6-7.5|=1.5, |9-7.5|=1.5, |12-7.5|=4.5
- 03Sum of absolute deviations = 4.5 + 1.5 + 1.5 + 4.5 = 12
- 04MAD = 12 / 4 = 3
Ready to run the numbers?
Open Mean Absolute Deviation Calculator