acalculator

What is the mean absolute deviation?

Find the mean absolute deviation (MAD) of your numbers, the average distance from the mean, as you type.

Your numbers

Read as: 1; 2; 3; 4; 5; 6; 7; 8; 9; 10
Mean absolute deviation
2.5

The mean absolute deviation of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 is 2.5, around a mean of 5.5.

Mean
5.5
Count
10
Sum
55
Smallest
1
Largest
10
Range
9

Mean absolute deviation: 2.5. The mean absolute deviation of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 is 2.5, around a mean of 5.5.

Where do your numbers fall?

How to calculate

Computes the mean absolute deviation (MAD) of a list of numbers: the average distance of each number from the mean.

Example with the default inputs (Your numbers [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]): The mean absolute deviation of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 is 2.5, around a mean of 5.5.

Method: MAD = Σ|x − mean| ÷ n, where mean = Σx ÷ n.

  • The deviations are measured from the mean, not the median.
  • The sum of distances is divided by n, the count of numbers.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Your numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 gives Mean absolute deviation 2.5, Mean 5.5, Range 9.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale (variance, standard deviation, average absolute deviation). https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm
  2. Your numbers 2, 4, 4, 4, 5, 5, 7, 9 gives Mean absolute deviation 1.5, Mean 5.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale (variance, standard deviation, average absolute deviation). https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm
  3. Your numbers 1.5, 2.5, 3.5, 10.25 gives Mean absolute deviation 2.90625, Mean 4.4375.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale (variance, standard deviation, average absolute deviation). https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm
  4. Your numbers 100 gives Mean absolute deviation 0, Mean 100.Source: NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale (variance, standard deviation, average absolute deviation). https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm

How it works

For a list of n numbers x₁, …, xₙ:

  1. Find the mean: x̄ = (x₁ + … + xₙ) ÷ n.
  2. Find each number's distance from the mean: |xᵢ − x̄|.
  3. Average the distances: MAD = (|x₁ − x̄| + … + |xₙ − x̄|) ÷ n.

The calculator also shows the mean, count, sum, smallest and largest number, and range (largest − smallest).

Assumptions

  • The distances are measured from the mean. Some books use "mean absolute deviation" for distances from the median; this calculator does not.
  • The sum of distances is divided by n (not n − 1).
  • One number has a MAD of 0.

Worked examples by hand

1, 2, 3, 4, 5, 6, 7, 8, 9, 10 (the default list). The mean is 5.5. The distances are 4.5, 3.5, 2.5, 1.5, 0.5, 0.5, 1.5, 2.5, 3.5, 4.5, which add up to 25. MAD = 25 ÷ 10 = 2.5.

2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The distances are 3, 1, 1, 1, 0, 0, 2, 4, which add up to 12. MAD = 12 ÷ 8 = 1.5.

1.5, 2.5, 3.5, 10.25. The mean is 17.75 ÷ 4 = 4.4375. The distances are 2.9375, 1.9375, 0.9375, 5.8125, which add up to 11.625. MAD = 11.625 ÷ 4 = 2.90625.

100. The mean is 100, the only distance is 0, so MAD = 0.

Other questions people ask

What is Mean Absolute Deviation (MAD) and why is it important?

Mean Absolute Deviation (MAD) is a measure of variability that shows the average distance between each data point and the mean. Unlike variance, MAD uses absolute values instead of squared differences, making it more intuitive to interpret. It's useful for understanding how spread out your data is from the average.

How is MAD calculated?

MAD is calculated by: 1) Finding the mean of all values, 2) Subtracting the mean from each value and taking the absolute value, 3) Finding the average of these absolute differences. Formula: MAD = Σ|x - x̄| / n, where x̄ is the mean and n is the number of data points.

What's the difference between MAD and standard deviation?

Both measure variability, but MAD uses absolute differences while standard deviation uses squared differences. MAD is more robust to outliers because it doesn't square the differences, making extreme values less influential. Standard deviation is more commonly used in statistical tests, but MAD is easier to interpret.

When should I use MAD instead of variance or standard deviation?

Use MAD when you want a measure of variability that's less sensitive to outliers, easier to interpret, or when you need to explain the concept to non-technical audiences. MAD is also useful in robust statistics and when you want to avoid the influence of extreme values.

Can MAD be negative?

No, MAD cannot be negative. Since MAD involves taking absolute values of differences from the mean, all terms in the calculation are non-negative, making the final result always positive or zero. Zero MAD means all values are identical.

What does a high MAD tell me about my data?

High MAD indicates that data points are widely spread out from the mean, suggesting high variability or dispersion. This could mean the data is diverse, has outliers, or comes from a population with high variability. Low MAD suggests data points are clustered close to the mean.

What's the relationship between MAD and the range of data?

Both MAD and range measure spread, but differently. Range is simply max - min, while MAD considers all data points and their distances from the mean. MAD is more robust because it's not affected by just two extreme values like range is, and it provides a more representative measure of typical deviation. MAD is never more than half the range.

How many decimal places should I use when reporting MAD?

Use 2-4 decimal places for MAD, depending on your data precision and context. For most practical purposes, 2-3 decimal places are sufficient. The calculator shows up to 6 decimal places but you can round as needed for your specific use case.

What are some common applications of MAD in real life?

MAD is used in quality control (measuring product consistency), finance (risk assessment), education (analyzing test scores), weather forecasting (temperature variability), and many other fields where understanding data spread is important and you want a measure that's less sensitive to outliers.

How does MAD compare to other measures of variability?

MAD is more robust than variance/standard deviation because it's less affected by outliers. It's easier to interpret since it's in the same units as your data. However, it's less commonly used in statistical tests because many statistical methods are based on squared differences (variance).

Can I use MAD for comparing variability between different datasets?

Yes, MAD can be used to compare variability between datasets, but be cautious when the means are very different. For datasets with similar means, MAD provides a good comparison. For datasets with very different means, you might want to use the coefficient of variation (MAD/mean) for a relative comparison.