Mean Absolute Deviation (MAD) Calculator
Calculate the Mean Absolute Deviation (MAD) of a data set.
A simple, intuitive measure of data spread easier to interpret than standard deviation.
What Is Mean Absolute Deviation?
Mean Absolute Deviation (MAD) measures how spread out values in a data set are from their mean. It answers the question: “On average, how far does each data point deviate from the mean?” Unlike variance or standard deviation, MAD uses absolute values rather than squared differences — making it more intuitive and easier to interpret in the original units of your data.
The Formula
Step 1: Calculate the mean: x̄ = (x₁ + x₂ + … + xₙ) / n
Step 2: Find the deviation of each value from the mean: |xᵢ - x̄|
Step 3: Average those absolute deviations: MAD = Σ|xᵢ - x̄| / n
MAD vs Standard Deviation
Standard deviation squares the deviations before averaging — which amplifies the effect of large outliers. MAD treats all deviations equally. This makes MAD more robust: a single extreme outlier will inflate standard deviation dramatically but only moderately affect MAD.
For normally distributed data, MAD ≈ 0.7979 × standard deviation (they are proportional). For heavily skewed data, they can differ significantly.
Median Absolute Deviation
A related measure is the Median Absolute Deviation (also abbreviated MAD): MAD_median = median(|xᵢ - median(x)|). This is even more robust than mean-based MAD — it is resistant to multiple outliers and is used in robust statistics and anomaly detection.
Real-World Applications
- Quality control: A factory producing parts with MAD of 0.02mm has tighter tolerances than one with MAD of 0.15mm.
- Finance: Portfolio daily returns with a low MAD are more predictable than high-MAD portfolios.
- Meteorology: Temperature forecasts are evaluated by their MAD from actual temperatures (called Mean Absolute Error in forecasting).
- Education: MAD of test scores shows how spread out student performance is around the class average.
Worked Example
Data: {4, 7, 13, 2, 1}. Mean = 27/5 = 5.4. Deviations: |4-5.4|=1.4, |7-5.4|=1.6, |13-5.4|=7.6, |2-5.4|=3.4, |1-5.4|=4.4. MAD = (1.4+1.6+7.6+3.4+4.4)/5 = 18.4/5 = 3.68. This means values deviate from the mean by 3.68 units on average.