Mean Deviation Calculator
Calculate mean absolute deviation (MAD) with formulas, step-by-step working, and full support for raw data and frequency distributions.
How to Calculate Mean Deviation
Calculating mean deviation (average absolute deviation) gives a clean measure of dispersion in the same units as your original data. Follow these 4 standard steps:
Find the central measure (arithmetic mean, median, or mode).
Calculate the distance from the center for each point and drop negative signs (|x - Center|).
Sum all absolute deviations together (multiplying by frequency if grouped).
Divide the total sum of absolute deviations by the number of observations N.
What Is Mean Deviation?
Mean Deviation (also documented by NIST as Average Absolute Deviation or MAD) quantifies the average distance between every data point and its distribution center:
- Linear Interpretation: A mean deviation of 4.5 means values deviate on average by 4.5 units from the center.
- Why Absolute Values Are Essential: Without absolute values, simple deviations cancel out to zero (
Σ(x - x̄) = 0).
Mean Deviation Formulas
The formula for mean deviation depends on whether observations are evaluated relative to the mean or median, and whether data is raw or grouped.
For detailed mathematical definitions, see the Average Absolute Deviation from the Median specification.
Ungrouped Raw Data
MD(x̄) = ( Σ |x_i - x̄| ) / nMD(M) = ( Σ |x_i - M| ) / nGrouped & Frequency Table
MD = ( Σ f_i · |x_i - A| ) / NCalculate the Center
Compute the arithmetic mean x̄ = Σx/n, median M, or mode Z.
Individual Differences
Subtract center from each observation and take absolute values |x_i - Center|.
Weight by Frequency
Multiply by occurrence count f_i for frequency distributions or class midpoints.
Divide by Total Count
Divide the sum of absolute deviations by total observations N to obtain MAD.
Mean Deviation Worked Example
Suppose a dataset consists of 10, 15, 20, 25, 30 (n = 5). Taking the mean as center gives:
Mean Deviation vs. Standard Deviation
Evaluating key characteristics of both Measures of Statistical Dispersion.
| Metric Trait | Mean Absolute Deviation (MAD) | Standard Deviation (SD) |
|---|---|---|
| Penalty Structure | Linear: |x - A| | Quadratic: (x - x̄)² |
| Outlier Sensitivity | Linear response to anomalies | Strongly pulled by squared tail spikes |
| Algebraic Property | Non-differentiable at 0 | Smooth derivative for calculus |
| Normal Distribution Relation | MAD ≈ 0.7979 · σ | σ ≈ 1.2533 · MAD |
| Standard Divisor | Always N (total count) | N (population) or n - 1 (sample) |
Central Tendency Specifications
Choosing the right reference point depends on your distribution shape and which Measures of Central Tendency you evaluate.
Pro Tip
"Mean absolute deviation is mathematically minimized when taken about the median. Use the median when dealing with skewed economic or sensor datasets."
Reference Guidelines
Minimum Absolute Deviation Property: The median minimizes the sum of absolute deviations, meaning total absolute distance from the median is always less than or equal to distance from the mean or mode.
Distinguish linear Mean MAD from Median Absolute Deviation , which NIST defines as a robust scale estimator with a 50% breakdown point.
Frequently Asked Questions
Essential answers for mean deviation calculation and statistical dispersion.
What is the primary formula for Mean Deviation?
The standard formula for ungrouped data is MD = (Σ |x_i - x̄|) / n, where x_i represents each data point, x̄ is the arithmetic mean, and n is the total number of observations.
What divisor should be used for Mean Absolute Deviation?
In standard descriptive statistics, Mean Absolute Deviation always divides by the sample size n (or total frequency N). Bessel's correction (dividing by n - 1) applies to sample variance and standard deviation to remove bias, but it is not part of the standard definition of descriptive MAD.
Why does the median minimize Mean Deviation?
In mathematical optimization, the function f(A) = Σ |x_i - A| attains its global minimum when A equals the median of the distribution. This fundamental property guarantees that Mean Deviation about the Median is always less than or equal to Mean Deviation about the Mean or Mode.
What is the difference between Mean MAD and Median MAD?
Mean Absolute Deviation (Mean MAD) is the arithmetic average of deviations: (1/n) Σ |x_i - x̄|. Median Absolute Deviation (MedMAD) is the median of deviations: median(|x_i - M|). As documented by NIST, MedMAD is a robust scale estimator with a 50% breakdown point, whereas Mean MAD has a 0% breakdown point.
What is the Coefficient of Mean Deviation and when is it valid?
The Coefficient of Mean Deviation is calculated as (Mean Deviation) / (|Central Measure|). It provides a dimensionless measure of relative dispersion. It is only meaningful for ratio-scale data with a true, non-zero origin, and is undefined if the central measure is zero.
How are statistics calculated for grouped continuous class intervals?
When raw observations are grouped into classes (e.g. 10–20, 20–30), the true values within each class are unknown. The calculator uses the class midpoint m_i = (Lower + Upper) / 2 to approximate the mean and deviations, and linear interpolation within the median class for the median.
Related Calculators
Weighted Mean Calculator
Calculate weighted average, sum of weights, weighted variance, standard deviation, and target score scenarios.
AP Statistics Score Calculator
Convert raw AP Statistics MCQ and FRQ scores into a composite and estimated AP score for the 2027 or 2026 format.
Standard Error Calculator
Calculate the standard error of the mean for statistical samples.
Z-Score Calculator
Calculate z-scores, standard normal probabilities, percentiles, and standardized dataset values.
Population Growth Calculator
Calculate future population, growth rate, doubling time, and demographic change from births, deaths, and migration.
Binomial Distribution Calculator
Calculate exact binomial probabilities P(X = k), cumulative P(X ≤ k), P(X ≥ k), between-range probabilities, and full distribution statistics with bar chart.