Mean Deviation from mean (also known as Mean Absolute Deviation or MAD) is a statistical measure that tells you, on average, how far each data point in a set is from the center (usually the mean).
Table of Contents
Mean Deviation from Mean
The mean deviation is used to characterize the dispersion among the measures in a given population. To calculate the mean deviation of a set of scores, it is first necessary to compute their average (mean or median) and then specify the distance between each score and that mean without regard to whether the score is above or below (negative and positive) the mean. The mean deviation is defined as the mean of these absolute values.
Definition of Mean Deviation from Mean
Given a set of numbers and their mean, one can find the difference between each of the numbers and the mean. If we take the mean of these differences, the result is called the mean deviation of the numbers.
Unlike standard deviation, which squares the differences, mean deviation uses absolute values, making it more intuitive and less sensitive to extreme outliers.
Real-Life Uses and Applications of Mean Deviation
Mean deviation is preferred in fields where “average error” needs to be understood in the same units as the data itself.
- Quality Control: In manufacturing, if a machine fills bottles with liquid, the mean deviation helps technicians understand the average “miss” from the target volume.
- Supply Chain & Inventory: Companies use MAD to track forecast accuracy. If a warehouse predicts they will sell 100 units but the MAD is 15, they know to keep extra stock to cover that average fluctuation.
- Climate Science: To describe how much daily temperatures vary from the monthly average without letting one heatwave skew the results too heavily.
- Finance: It is used to measure investment risk. A high mean deviation in stock prices indicates high volatility, while a low one suggests a “boring” but stable investment.
How to Compute Mean Deviation Manually
To calculate the Mean Deviation ($MD$), follow these four steps:
- Find the Mean ($\overline{x}$) of the data.
- Subtract the mean from each data point ($x – \overline{x}$).
- Take the Absolute Value of those differences ($|x – \overline{x}|$).
- Find the Average of those absolute differences.
$$MD = \frac{\sum |x – \overline{x}|}{n}$$
Numerical Example of Calculating Mean Deviation
Consider the data for the computation of Mean Deviation from the mean: 3, 6, 9. The following is the step-by-step computational procedure for calculating mean deviation.
- Mean: $\frac{3+6+9}{3}= 6$
- Absolute Differences: $|3-6|=3$, $|6-6|=0$, $|9-6|=3$
- Sum of Differences: $3 + 0 + 3 = 6$
- Mean Deviation: $\frac{6}{3} = 2$
Calculating Mean Deviation in Python
In Python, one can calculate mean deviation using the pandas library (most common for data science) or numpy.
import pandas as pd
data = [3, 6, 9, 12, 15]
series = pd.Series(data)
# Calculate Mean Absolute Deviation
mad = (series - series.mean()).abs().mean()
print(f"The Mean Deviation is: {mad}")
import numpy as np
data = np.array([3, 6, 9, 12, 15])
mean = np.mean(data)
# Apply the formula: Average of absolute differences
mad = np.mean(np.absolute(data - mean))
print(f"The Mean Deviation is: {mad}")
Frequently Asked Questions about Mean Deviation
Why do we use absolute values in Mean Deviation?
If we did not use absolute values, the sum of the deviations from the mean would always be zero. This is because the positive differences (values above the mean) and negative differences (values below the mean) perfectly cancel each other out. Absolute values ensure we are measuring the distance from the mean, regardless of direction.
What is the main difference between Mean Deviation and Standard Deviation?
- Mean Deviation: Uses the absolute value of differences ($|x – \overline{x}|$). It is more intuitive and less affected by extreme outliers.
- Standard Deviation: Squares the differences ($(x – \overline{x})^2$). This “penalizes” outliers more heavily, making it better for advanced statistical modeling and normal distributions.
Can Mean Deviation ever be negative?
No. Because we use absolute values, each deviation is either positive or zero. Therefore, the average of those deviations (the Mean Deviation) must also be zero or a positive number.
When is Mean Deviation preferred over Standard Deviation?
Mean Deviation is often preferred in Real-World Operations (like supply chain or retail) because it represents the “average error” in the same units as the original data. It is also more robust when dealing with datasets that have a few extreme outliers, so that you don’t want to over-influence your results.
Does Mean Deviation change if we add a constant to every data point?
No. This is a common “trick” question. If you add 10 to every number in a dataset, the Mean also increases by 10. The distance between the points and the mean remains the same, so the Mean Deviation stays constant.
Learn R Programming Language


