Chapter 14 · Statistics and data analysis
Mean, Median, Mode, Range and Missing Values
Calculate the mean, median, mode and range of a data set, then use a known mean to work backwards and find a missing value.
In this lesson, a data set is a list of numbers that all measure the same thing, such as the scores a class earned on one quiz. Each number in the list is a value. A long list of values is hard to take in at once, so you describe it with a summary statistic: a single number, calculated from the data, that tells you something about the whole list.
This lesson uses four summary statistics, and each one answers a different question about the data. You will calculate all four, then use one of them to find a value that is missing.
| Statistic | Question it answers | How to calculate it |
|---|---|---|
Mean | If the total were shared equally, what would each value be? | Add all the values, then divide the sum by the number of values. |
Median | What number is in the middle once the values are in order? | Order the values from least to greatest, then find the middle. |
Mode | Which value appears most often? | Count how many times each value appears. |
Range | How far apart are the least and greatest values? | Subtract the least value from the greatest value. |
Start with the mean, which you can think of as an equal share. Take the values , and . Their sum is . Share that equally among the values, and each one gets . So the mean is . The data set has the same sum as , with the differences leveled out.
To write this for any data set, let stand for the number of values. A data set has at least one value, so is a whole number with . That means you never divide by zero.
The other three statistics each have a detail to watch.
- Median. Once the values are in order, the middle depends on . If is odd, exactly one value sits in the middle, and it is the median. If is even, two values share the middle, and the median is the number halfway between them, which is the mean of those two values.
- Mode. When no value repeats, you say the data set has no mode. Otherwise the mode is the value that appears most often, and if two or more values tie for most often, each of them is a mode.
- Range. The greatest value is never smaller than the least value, so the range is never negative. A range of means all the values are equal.
Worked example
Four statistics, odd number of values
Find the mean, median, mode and range of the data set .
Order the values from least to greatest. The median needs this order, and it also puts the least value first, the greatest value last and equal values side by side.
Find the mean. There are 5 values, so add all five and divide the sum by 5. Dividing shares the total of 40 equally among the 5 values.
Find the median. Because 5 is odd, exactly one value sits in the middle of the ordered list: the 3rd value, which has two values before it and two after it.
Find the mode. The value 4 appears twice and every other value appears once, so 4 appears most often.
Find the range. Subtract the least value, 4, from the greatest value, 13, to measure how far apart they are.
Answer
The mean is , the median is , the mode is and the range is .
Worked example
Four statistics, even number of values
Find the mean, median, mode and range of the data set .
Order the values from least to greatest, because the median depends on this order.
Find the mean. Share the total equally: add the 6 values and divide the sum by 6. The division ends after one decimal place, so 8.5 is an exact value, not a rounded one.
Find the median. Because 6 is even, no single value sits in the middle. The 3rd and 4th values, 6 and 9, share the middle, so take the number halfway between them, which is their mean. The result is not one of the data values, and a median does not have to be.
Find the mode. The values 6 and 14 each appear twice, while 2 and 9 each appear once. Two values tie for most often, so both are modes.
Find the range. The least value is 2 and the greatest value is 14, so subtract to see how far apart they are.
Answer
The mean is , the median is , the modes are and , and the range is .
Now run the mean backwards. The mean is the equal share, so multiplying it by the number of values rebuilds the total. In the first example, the mean is and , and , which is exactly the sum .
This lets a mean reveal a hidden value. Suppose you can see only four of those five values, , , and , and you are told that the mean of all five is . The five values must add to . The four you can see add to . So the hidden value is , the value that was covered up.
Key concept
The mean ties the sum to the count
The mean is the sum of a data set shared equally among its values, where is a whole number and . In symbols, . Since is not zero, multiplying both sides by gives a second way to write the same relationship: the sum equals the mean times .
So one relationship works in both directions. When you know every value, divide the sum by to find the mean. When you know the mean and but exactly one value is missing, multiply the mean by to find the total, then subtract the values you know. What is left is the missing value. Remember that counts the missing value too.
Worked example
A missing value from a known mean
You have taken four of five quizzes. Each quiz is scored from to points. Your scores so far are , , and points. What score do you need on the fifth quiz so that the mean of all five scores is exactly points?
Name the unknown. Let x be the score on the fifth quiz, in points. A quiz score is at least 0 and at most 20, so x must be too. The data set has 5 values in all: the four known scores and x.
Find the total that the mean requires. Since the number of values, 5, is not zero, the sum equals the mean times the number of values.
Add the four scores you know, because they make up part of that total.
Write an equation. The known scores and x together must make the required total of 80 points.
Subtract 61 from both sides. Taking the same number away from both sides keeps them equal, and it leaves x alone on the left.
Check the result. A score of 19 is at least 0 and at most 20, so it is a possible score. Put it back into the data set: the five scores add to 80, and 80 divided by 5 is 16, the mean you wanted.
Answer
You need points on the fifth quiz for the mean of your five scores to be exactly points.
You can now sum up a data set with four numbers: the mean is the equal share, the median is the middle of the ordered values, the mode is the value that appears most often, and the range is the greatest value minus the least value. The mean is tied to the total by , so a known mean and a known count let you recover one missing value.
Next, you will find these same four statistics from data shown in charts and graphs.