molecalculator

Moles & Molar Mass

Mean Absolute Deviation Calculation Example

Calculator No. 01-17005 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Mean absolute deviation (MAD) measures the average distance between each data point and the mean of a data set, giving a clear sense of data variability. To calculate it, find the mean, compute the absolute differences from the mean, then average those differences.

Formula

The mean absolute deviation is calculated using the formula:

MAD = (1/n) × Σ |xi − x̄|

  • MAD: Mean absolute deviation (unitless or same as data)
  • n: Number of data points
  • Σ: Summation over all data points
  • xi: Each individual data value
  • x̄: Mean of the data set (x̄ = Σxi / n)
  • |xi − x̄|: Absolute value of the difference between each data point and the mean

This formula ensures all deviations are treated as positive values, avoiding cancellation of positive and negative differences.

An Example

Using the default values from the calculator: 4, 6, 8, 2, 10.

  1. Calculate the mean: (4 + 6 + 8 + 2 + 10) / 5 = 30 / 5 = 6.00
  2. Find the absolute deviation of each value from the mean:
    • |4 − 6| = 2.000
    • |6 − 6| = 0.000
    • |8 − 6| = 2.000
    • |2 − 6| = 4.000
    • |10 − 6| = 4.000
  3. Sum the absolute deviations: 2.000 + 0.000 + 2.000 + 4.000 + 4.000 = 12.000
  4. Divide by the number of data points: 12.000 / 5 = 2.400

The mean absolute deviation is 2.400, matching the calculator output.

Background and Purpose

Mean absolute deviation is one of the simplest measures of statistical dispersion. Unlike variance or standard deviation, it doesn’t involve squaring differences, making it more intuitive for non-statisticians. MAD answers the question: “On average, how far are the data points from the center?” Because it uses absolute values, it’s less sensitive to extreme outliers than standard deviation, which squares differences and amplifies large deviations.

MAD is commonly used in forecasting, quality control, and education due to its interpretability. For example, in sales forecasting, a MAD of $500 means predictions are off by an average of $500 per period. This direct interpretation makes MAD accessible in business and social sciences.

How It Works Step by Step

Calculating MAD involves four clear steps:

  1. Compute the mean: Add all data values and divide by the count.
  2. Find absolute deviations: Subtract the mean from each value and take the absolute value.
  3. Sum the absolute deviations: Add all the absolute differences.
  4. Divide by sample size: The result is the average distance from the mean.

Each step ensures a transparent and logical progression from raw data to a summary statistic. The use of absolute values prevents negative deviations from canceling out positive ones, which would falsely suggest low variability.

Common Problems and Misconceptions

A frequent error is confusing MAD with standard deviation. While both measure spread, standard deviation squares differences, making it more sensitive to outliers. Some mistakenly believe MAD is “less accurate,” but it’s simply a different measure with its own strengths—particularly robustness in skewed or outlier-prone data.

Another issue is misapplying MAD to categorical or ordinal data. MAD requires interval or ratio-level data where differences are meaningful. Applying it to ranked survey responses (e.g., 1 to 5 scales) can be misleading if the intervals aren’t truly equal.

Unit consistency is also critical. If data are in kilograms, MAD will be in kilograms. Mixing units (e.g., pounds and kilograms) without conversion invalidates the result.

Comparisons with Other Measures

MAD differs from other dispersion metrics in key ways:

  • Range: Only uses the highest and lowest values; ignores all others.
  • Variance: Squares deviations, resulting in squared units (e.g., m²), which are harder to interpret.
  • Standard deviation: Square root of variance; same units as data, but still influenced more by outliers than MAD.
  • Interquartile range (IQR): Measures spread of the middle 50% of data; robust but doesn’t use all data points.

MAD uses every data point and maintains original units, offering a balance between simplicity and comprehensiveness. However, it’s less commonly used in inferential statistics because it lacks some mathematical properties that make variance more tractable in advanced analysis.

Frequently Asked Questions

What does mean absolute deviation tell you?
MAD tells you the average distance between each data point and the mean. It gives a straightforward measure of variability that’s easy to interpret in the original units of the data.

Can MAD be negative?
No, MAD cannot be negative because it’s based on absolute values. All deviations are positive or zero, so their average is always zero or positive.

Is MAD the same as average deviation?
Yes, “average deviation” often refers to MAD. However, without the absolute value, average deviation would always be zero—so “average absolute deviation” is the precise term.

When should I use MAD instead of standard deviation?
Use MAD when you want a robust, intuitive measure of spread, especially if your data have outliers or aren’t normally distributed. Standard deviation is preferred in parametric statistics and when mathematical properties like variance additivity are needed.

Does MAD use population or sample size?
MAD is calculated the same way for both. Unlike variance, there’s no “sample” vs. “population” distinction in the denominator—MAD always divides by the number of data points.

Can I calculate MAD for a single number?
No. With one data point, the mean equals the value, so the absolute deviation is zero. MAD requires at least two values to meaningfully assess spread, though technically it can be computed for one.

Related

Formula used
in x1 | Value 1 | - | 4 | -1e6
in x2 | Value 2 | - | 6 | -1e6
in x3 | Value 3 | - | 8 | -1e6
in x4 | Value 4 | - | 2 | -1e6
in x5 | Value 5 | - | 10 | -1e6
out n | Number of values | - | count(x1,x2,x3,x4,x5) | 0
out mean | Mean | - | mean(x1,x2,x3,x4,x5) | 2
out abs_diff | Absolute deviations | - | abs(x1-mean), abs(x2-mean), abs(x3-mean), abs(x4-mean), abs(x5-mean) | 3
out mad | Mean absolute deviation | - | mean(abs_diff) | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →