Median Absolute Deviation (MAD) Calculator

Calculate MAD, scaled MAD, mean absolute deviation, and MAD-based outlier detection. Compare robust vs classical spread measures with visual breakdown.

Minimum 2 values
MAD
8.0000
Median of absolute devs from Median
Scaled MAD
11.8608
MAD × 1.4826 (≈ SD for normal data)
Mean Abs. Deviation
7.7500
Average of absolute deviations
Std. Deviation
9.1266
For comparison with MAD
MAD / SD Ratio
0.8766
Normal distribution ≈ 0.6745
IQR
16.0000
Another robust spread measure
Center ({result.centerLabel})
82.5000
Deviations measured from this point
Outliers
0
Values >3×scaledMAD from median

Spread Measures Comparison

MAD
8.00
Scaled MAD
11.86
Mean AD
7.75
SD
9.13
IQR
16.00

Deviation Table

ValueDeviation|Deviation|z (scaled MAD)Outlier?
68.0000-14.500014.50001.223No
70.0000-12.500012.50001.054No
72.0000-10.500010.50000.885No
74.0000-8.50008.50000.717No
76.0000-6.50006.50000.548No
81.0000-1.50001.50000.126No
84.0000+1.50001.50000.126No
85.0000+2.50002.50000.211No
88.0000+5.50005.50000.464No
90.0000+7.50007.50000.632No
92.0000+9.50009.50000.801No
95.0000+12.500012.50001.054No
Calculation Steps
1. Sorted data: 68.00, 70.00, 72.00, 74.00, 76.00, 81.00, 84.00, 85.00, 88.00, 90.00, 92.00, 95.00
2. Median = 82.5000
3. |Deviations| = 14.50, 12.50, 10.50, 8.50, 6.50, 1.50, 1.50, 2.50, 5.50, 7.50, 9.50, 12.50
4. Sorted |Deviations| = 1.50, 1.50, 2.50, 5.50, 6.50, 7.50, 8.50, 9.50, 10.50, 12.50, 12.50, 14.50
5. MAD = median of |deviations| = 8.0000
6. Scaled MAD = 8.0000 × 1.4826 = 11.8608
Robustness Reference
MeasureBreakdown Pt.Influence FunctionBest For
MAD50%BoundedHighly contaminated data
IQR25%BoundedGeneral robust analysis
Mean Abs. Dev.0%LinearEasy interpretation
Std. Deviation0%Quadratic (unbounded)Normal/clean data
Planning notes, formulas, and examples

About the Median Absolute Deviation (MAD) Calculator

The median absolute deviation (MAD) is a robust measure of spread built from the median rather than the mean. It takes the median of the absolute distances from the dataset's median, which makes it much less sensitive to outliers than standard deviation.

This calculator reports the raw MAD, the scaled MAD used as a standard-deviation analogue under normality, the mean absolute deviation, and a MAD-based outlier view. The comparison section helps show how strongly a few extreme points may be stretching the classical spread measures relative to the robust ones.

It is especially useful when you suspect a dataset contains outliers, skew, or contamination that would make mean-based spread summaries misleading.

When This Page Helps

MAD is valuable when you want to know how variable the main body of the data is without letting a few extreme observations dominate the answer. That is why it appears so often in robust statistics, anomaly detection, and pre-analysis data screening.

Putting MAD beside scaled MAD, mean absolute deviation, and standard deviation makes it easier to see whether the dataset is broadly noisy or whether a handful of points are doing most of the damage.

How to Use the Inputs

  1. Enter numbers separated by commas or spaces (minimum 2 values).
  2. Select whether deviations are measured from the median (standard MAD) or mean.
  3. Choose whether to scale MAD by 1.4826 for normal distribution comparison.
  4. Read the MAD from the main output — it measures typical deviation robustly.
  5. Compare MAD to standard deviation in the bar chart: large differences signal outliers.
  6. Check the deviation table to see which values are flagged as outliers.
  7. Review the robustness reference table to understand each measure's strengths.
Formula used
MAD = median(|xᵢ − median(x)|). Scaled MAD = 1.4826 × MAD (≈ σ for normal data). Mean Absolute Deviation = Σ|xᵢ − center| / n. Outlier threshold: |xᵢ − median| > 3 × scaled MAD.

Example Calculation

Result: MAD = 2, Scaled MAD = 2.9652

Median = 25. Absolute deviations: |22−25|=3, |25−25|=0, |27−25|=2, ... Sorted |deviations|: 0,1,1,2,2,3,3,65. MAD = median = 2. Scaled MAD = 2 × 1.4826 = 2.9652. The value 90 has |90−25|/2.97 = 21.9 MADs from center — a clear outlier.

Tips & Best Practices

  • If scaled MAD is much smaller than SD, your data likely contains outliers inflating the standard deviation.
  • MAD has a 50% breakdown point — up to half your data can be outliers before MAD becomes unreliable.
  • For normal data, scaled MAD ≈ SD. A scaled MAD that's very different from SD suggests non-normality.
  • Use MAD-based z-scores (|x − median| / scaled MAD) instead of classical z-scores for contaminated data.
  • The mean absolute deviation (different from MAD) is easier to interpret but less robust — it has 0% breakdown point.
  • In financial risk analysis, MAD is used as an alternative to standard deviation for portfolio optimization when returns aren't normally distributed.

MAD in Robust Statistics

Peter Huber popularized MAD as a robust scale estimator in the 1960s and 70s. It forms the foundation of many robust statistical methods: M-estimators use MAD for initial scale estimates, robust regression uses MAD to identify influential outliers, and anomaly detection systems use MAD-based thresholds because they resist "masking" (where a cluster of outliers makes classical methods fail to flag any of them).

MAD in Signal Processing

In signal processing, MAD is used to estimate the noise level in a signal. The "universal threshold" for wavelet denoising is λ = MAD × √(2 ln n) / 0.6745, where MAD is computed from the finest-scale wavelet coefficients. This approach is robust because signal components don't corrupt the noise estimate.

Computational Considerations

MAD requires sorting (O(n log n)) or can use a selection algorithm (O(n)). For streaming data, approximate MAD can be maintained with P² quantile estimators or binned approaches. In distributed systems, MAD is harder to compute than mean/SD because median is not decomposable — but approximate distributed MAD algorithms exist.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • MAD is calculated in two steps: (1) find the median of your data, (2) compute the absolute deviation of each value from the median, then find the median of those deviations. It measures "typical" distance from the center using the most robust possible approach — both the center (median) and the spread (median of deviations) resist outliers.