Mathematics, Statistics & Geometry

Mean Absolute Deviation Calculator

Calculate the MAD for any dataset to understand dispersion. Provides a robust alternative to standard deviation that ignores extreme outliers.

Mean Absolute Deviation (MAD)
2.667
Dataset Mean16
Sum of Absolute Deviations16
Calculation StepsData: [10, 15, 15, 17, 18, 21] 1. Calculate the Mean (Average): Mean = 96.00 / 6 = 16.0000 2. Calculate Absolute Deviations |x - Mean|: |10 - 16.0000| = 6.0000 |15 - 16.0000| = 1.0000 |15 - 16.0000| = 1.0000 |17 - 16.0000| = 1.0000 |18 - 16.0000| = 2.0000 ... (and 1 more) 3. Calculate Mean Absolute Deviation: MAD = Sum of Absolute Deviations / N MAD = 16.0000 / 6 = 2.666667

Calculated locally in your browser. Fast, secure, and private.

Measuring True Spread

The Mean Absolute Deviation Calculator is a robust tool for analyzing the dispersion of your data. By bypassing the mathematical squaring used in standard deviation, it provides a 'truer' average distance that is highly resistant to extreme outliers.

MAD=1ni=1nxixˉ\begin{aligned} \text{MAD} = \frac{1}{n} \sum_{i=1}^{n} |x_i - \bar{x}| \end{aligned}

Where:
MAD=
The average distance of all data points from the mean
xˉ\bar{x}=
The standard average of the dataset
xixˉ|x_i - \bar{x}|=
The positive distance of a single point from the mean

The Flaw with Standard Deviation

Standard deviation is the king of statistics, but it has a massive weakness. Because it squares the errors, a single massive error (like a sensor glitch recording 1,000,000 instead of 10) gets squared, ballooning the deviation metric to an absurd number.

MAD simply measures the 'city block' distance. A massive outlier still pulls the average up, but its effect is strictly linear, not exponential.

Real-World Applications

  • Supply Chain Forecasting: Calculating the accuracy of inventory predictions. If a retailer predicts they will sell 100 shirts, and they sell 110, the absolute deviation is 10.
  • Finance: Measuring the volatility of a stock portfolio. MAD provides a more intuitive understanding of risk to retail investors than standard deviation.
  • Machine Learning: The L1 Loss function (Mean Absolute Error) is exactly the same concept as MAD, used to train robust AI models that ignore corrupted training data.

Frequently Asked Questions

MAD is a statistical measurement of how 'spread out' a set of data is. It literally tells you, on average, how far away each data point is from the center.

Standard deviation SQUARES the distances before averaging them. Because of the squaring, standard deviation heavily punishes extreme outliers. MAD simply uses absolute distances, making it much more robust against outliers.

If you just added up the raw differences (x - mean), the positive and negative distances would cancel each other out perfectly, resulting in zero every time. Absolute values force all distances to be positive.

Standard deviation has cleaner mathematical properties for advanced calculus and normal distributions. However, MAD is often preferred in real-world business forecasting because an anomalous event won't skew the metric.

It means every single number in your dataset is exactly the same. There is zero spread or deviation.