Chapter 10 Ā· Statistics: samples and populations
Calculating the Mean Absolute Deviation
Learn what the mean absolute deviation measures and how to calculate it: find the mean, find each value's distance from the mean, then average those distances.
Here are two small data sets.
- Set A:
- Set B:
Each set has values that add to , so each mean is . The mean alone cannot tell these sets apart. Still, they differ: the values in Set A stay close to , and the values in Set B lie much farther from it.
Variability is how spread out the values of a data set are. You already know one way to measure it, the range. In this lesson you'll calculate another measure, the mean absolute deviation. It uses every value in the set, and it answers one question: on average, how far is a value from the mean?
Three ideas make "how far" exact.
Absolute value. The absolute value of a number , written , is the distance from to on the number line. A distance is never negative, so , and . The distance between any two numbers and is .
Order. A number is less than another number when it lies to the left of it on the number line. Order follows position on the line, not distance from : is less than , even though is greater than .
Deviation. Let be a data value and let be the mean of its data set. The deviation of is . It is negative when is less than , zero when equals , and positive when is greater than . The absolute deviation of is , the distance between and the mean. It is never negative.
The table shows both for each value of Set B, whose mean is .
| Value | Deviation (value minus mean) | Absolute deviation (distance from mean) |
|---|---|---|
So average the distances. For Set B, the absolute deviations are , , and . Add them, then divide the sum by the number of values, .
The result, , is the mean absolute deviation of Set B. On average, a value in Set B is a distance of from the mean.
Set A also has mean . Its absolute deviations are , , and . The value appears twice, so its distance, , counts twice. The sum is , and . The mean absolute deviation of Set A is only .
The results and measure what the mean could not show: on average, the values of Set B lie farther from their mean than the values of Set A do.
Key concept
Mean absolute deviation (MAD)
The mean absolute deviation (MAD) of a data set is the mean of the distances between each value and the mean of the set.
Let be the number of values, where is at least . Call the values and their mean .
- The distance between two numbers and is , so the distance between a value and the mean is .
- is the distance from to , so it is never negative. The MAD is never negative, and it is exactly when all the values are equal.
- Order follows position on the number line, not distance from : a value left of is less than , and a value right of is greater. Either way, only its distance counts.
- The MAD has the same unit as the data.
You can calculate the MAD of any set of numbers that has at least one value. Follow four steps.
- Find the mean, . Keep its exact value, because every distance is measured from it.
- Find each absolute deviation, . Subtract first, then take the absolute value, because the distance between and is . A value that appears more than once gets a distance each time.
- Add the absolute deviations.
- Divide the sum by the number of values, .
Two checks help in step 2. First, a value left of on the number line must have a negative deviation, and a value right of must have a positive one. Second, with the exact mean, the deviations always add to before you take absolute values. If yours add to any other number, look for an arithmetic mistake.
Worked example
Whole-number data
Find the mean absolute deviation of the data set .
Find the mean, m, because every distance is measured from it. The set has 5 values, so add them and divide the sum by 5.
Subtract the mean, 8, from each value to find its deviation. The values 4 and 7 lie left of 8 on the number line, so they are less than the mean and their deviations are negative. The value 10 appears twice, so it gets two deviations.
Check the deviations. The mean is exact, so they must add to 0, and they do.
Take the absolute value of each deviation. An absolute value is a distance from 0, so it is never negative. Each result is the distance between a value and the mean.
Add the five distances to find the total distance from the mean.
Divide the total by the number of values, 5. Dividing shares the total distance equally among the values, which is what a mean does.
Answer
The mean absolute deviation of the data set is . On average, a value in the set is a distance of from the mean, .
Worked example
Temperatures below zero
The low temperatures on five winter days, in degrees Celsius, were . Find the mean absolute deviation of these temperatures.
Find the mean, m. Add the three negative values, add the two positive values, then combine the two sums. Divide the result by 5, the number of values. The mean is ā2 degrees Celsius.
Find the deviations of ā8 and ā5 first. Order follows position on the number line, not distance from 0: both lie left of ā2, so both are less than the mean and their deviations are negative. Subtracting ā2 is the same as adding its opposite, 2.
Find the deviations of ā1, 1 and 3. All three lie right of ā2 on the number line, so they are greater than the mean and their deviations are positive. That includes ā1, which is greater than ā2 even though it is negative.
Check the deviations. The mean is exact, so they must add to 0, and they do.
Take the absolute value of each deviation. Each result is the distance, in degrees Celsius, between a temperature and the mean. A distance is never negative.
Add the five distances, then divide the sum by the number of values, 5, to find the mean distance.
Answer
The mean absolute deviation is degrees Celsius. On average, a day's low temperature was degrees Celsius away from the mean of degrees Celsius.
Worked example
A mean that is not a whole number
Six runners finished a race in , , , , and minutes. Find the mean absolute deviation of their times.
Find the mean, m, of the six times. Keep the exact value, 31.5 minutes, because every distance is measured from it. Rounding it to 32 would change every distance in this data set.
The distance between two numbers is the absolute value of their difference. Start with the three times that lie left of 31.5 on the number line. They are less than the mean, so their deviations are negative. Taking the absolute value gives each distance, which is never negative.
Do the same for the three times that lie right of 31.5. Their deviations are positive, so each one already equals its distance from 0, and taking the absolute value leaves it unchanged.
Add the distances. The three below the mean total 13.5, and the three above the mean total 13.5. These two totals match whenever the mean is exact, because the deviations then add to 0.
Divide the total distance by the number of values, 6, to find the mean distance.
Answer
The mean absolute deviation is minutes. On average, a runner's time was minutes away from the mean time of minutes.
The mean absolute deviation describes variability with one number: the average distance between the values of a data set and their mean. To calculate it, find the mean, find each distance , add the distances and divide by the number of values. A distance is never negative, so nothing cancels, and a greater MAD means the values lie, on average, farther from the mean.
Next, you'll find a missing data value when you know the mean, median, mode or range. You'll also identify outliers, which are values far from the rest of a data set, and describe how they affect measures of center.