Mean Deviation Calculator

Calculate mean absolute deviation (MAD) with formulas, step-by-step working, and full support for raw data and frequency distributions.

Step 1 of 3

Dataset & Format

Choose your input mode and enter your observations or frequency table.

Comma or space-separated values:
Quick Presets:

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:

1

Find the central measure (arithmetic mean, median, or mode).

2

Calculate the distance from the center for each point and drop negative signs (|x - Center|).

3

Sum all absolute deviations together (multiplying by frequency if grouped).

4

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).
NIST Average Absolute Deviation Reference

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| ) / n

Grouped & Frequency Table

MD = ( Σ f_i · |x_i - A| ) / N
01

Calculate the Center

Compute the arithmetic mean x̄ = Σx/n, median M, or mode Z.

02

Individual Differences

Subtract center from each observation and take absolute values |x_i - Center|.

03

Weight by Frequency

Multiply by occurrence count f_i for frequency distributions or class midpoints.

04

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:

Arithmetic Mean (x̄)20.00
Sum |x_i - x̄|10 + 5 + 0 + 5 + 10 = 30
Mean Deviation30 / 5 = 6.0000

Mean Deviation vs. Standard Deviation

Evaluating key characteristics of both Measures of Statistical Dispersion.

Metric TraitMean Absolute Deviation (MAD)Standard Deviation (SD)
Penalty StructureLinear: |x - A|Quadratic: (x - x̄)²
Outlier SensitivityLinear response to anomaliesStrongly pulled by squared tail spikes
Algebraic PropertyNon-differentiable at 0Smooth derivative for calculus
Normal Distribution RelationMAD ≈ 0.7979 · σσ ≈ 1.2533 · MAD
Standard DivisorAlways 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.

About Mean: Standard baseline for symmetric data
About Median: Mathematically minimizes MAD
About Mode: Useful for discrete repeated clusters
Grouped Data: Midpoint-based approximation

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