Chapter 10 · Statistics: samples and populations
Missing Values and Outliers
Use a known mean, median, mode or range to find a missing data value. Then identify outliers and describe how they change the measures of center.
Suppose you know the mean of your five quiz scores but can remember only four of the scores. You can still find the fifth one. In this lesson you use the mean, median, mode and range in two new ways.
First, you work backward: one value is missing, a measure is given, and you find the value. Second, you study an outlier, a value that is much greater or much less than the rest of the data, and see what it does to the measures of center: the mean, the median and the mode. Each of these is one number that stands for a typical value of the data.
A quick reminder:
- Mean: the sum of the values divided by the number of values.
- Median: the middle value when the values are in order, or the mean of the two middle values when the count is even.
- Mode: the value that appears most often. A data set can have more than one mode.
- Range: the greatest value minus the least value. It measures spread, not center.
Key concept
A measure is a rule you can use in both directions
Each measure is made from the data by a fixed rule. If one value is missing, call it , write the rule with in the data set, and find the value or values of that fit. If one value is far from the rest, use each rule with that value and without it, then compare the results.
For the mean, the rule is sum divided by number of values: the total is shared equally among the values. So the mean times the number of values gives the sum back, as the equation shows. The number of values counts the missing value too.
Worked example
Find a missing value from the mean
A student has taken quizzes, each out of points. The mean score is points. Four of the scores are , , and points. What is the fifth score?
Name the unknown: let x be the fifth score, in points. The mean is the sum of all 5 scores divided by 5, so write that rule as an equation.
Add the four known scores to make the equation shorter. Work left to right: 14 + 9 = 23, then 23 + 11 = 34, then 34 + 10 = 44.
Multiply both sides by 5. Multiplying both sides of an equation by the same nonzero number keeps them equal, and here it undoes the division by 5. The left side is now the total of all 5 scores.
Subtract 44 from both sides. Subtracting the same number from both sides keeps them equal, and it leaves x by itself.
Test the answer in the rule for the mean. Also make sure it is a possible score: 16 is between 0 and 20.
Answer
The fifth quiz score is points.
The mean works backward neatly because it comes from a sum. The median, range and mode do not, so go back to what each one depends on.
- Median: it depends on the order of the values. Put the values in order with in its place, then write what the middle is.
- Range: it depends only on the two end values. If the given range is greater than the range of the known values, must be a new greatest value or a new least value. That leaves two candidates, so you need one more clue to choose.
- Mode: it depends on how often each value appears. Take with exactly one mode, . In the known values, and each appear twice, which is a tie. If , then appears three times and is the only mode. If , the mode is . Any other leaves at least two values tied for most often. So .
The table gives one short example for each measure.
| Given measure | What to do | Short example |
|---|---|---|
Mean | Find the total: mean number of values, counting . Subtract the sum of the known values. | with mean : total , known sum , so . |
Median | Order the values with in its place. Use the middle value, or the mean of the two middle values for an even count. | In order: with median : , so and . |
Mode | If the given mode is the only mode but is tied for most often among the known values, must equal it. | with only mode : makes three s and two s. |
Range | When is the greatest or the least value, write greatest least range with in it. | with range , the greatest: least is , so and . |
Worked example
Use two clues: range and median
Five numbers are , , , and . Their range is and their median is . Find .
Start with the range, which is the greatest value minus the least value. The known values run from 7 up to 15, so their range is 8. If x were anywhere from 7 to 15, the range would stay 8. The given range is 10, so x must be greater than 15 or less than 7.
Case 1: x is the greatest value. The least value is still 7, so write the range rule with x in it. Then add 7 to both sides; adding the same number to both sides keeps them equal. The result fits this case because 17 is greater than 15.
Case 2: x is the least value. The greatest value is still 15. Add x to both sides, then subtract 10 from both sides; each move does the same thing to both sides, so they stay equal. The result fits this case because 5 is less than 7.
Use the median to choose between 17 and 5. Test x = 17 by putting all five values in order. With 5 values, the median is the 3rd value. It is 12, which matches the given median.
Test x = 5 the same way. The 3rd value is 9, which does not match the given median of 12, so 5 is ruled out.
Answer
The missing number is . The data set has range and median , so both clues fit.
Now turn to unusual values. An outlier is a data value that is much greater or much less than the other values in its data set. The word much is vague, so this lesson uses one common check built from the quartiles, which you already know how to find:
- Order the data. Split it at the median into a lower half and an upper half. When the count is odd, the median is in neither half.
- , the first quartile, is the median of the lower half. , the third quartile, is the median of the upper half.
- The interquartile range is . It is the spread of the middle half of the data.
The check uses two boundary values called fences. The lower fence is below , and the upper fence is above , as the next two equations show. Under this fence check, a value is an outlier when it is less than the lower fence or greater than the upper fence. A value on a fence or between the fences is not an outlier.
Worked example
Identify an outlier and describe its effect
Seven students timed their trips to school, in minutes: . Use the fence check to decide whether any time is an outlier. Then find the mean and the median with and without that time, and describe its effect.
Order the times from least to greatest and find the median. With 7 values, the median is the 4th value, because 3 values lie on each side of it.
Split the data at the median. The count is odd, so the median, 16, is in neither half. The lower half is 13, 15, 15 and the upper half is 18, 19, 37. Q1 is the median of the lower half and Q3 is the median of the upper half. Each half has 3 values, so each median is the 2nd value of its half.
Find the IQR by subtracting Q1 from Q3: 19 - 15 = 4 minutes. Then use the two fence equations. Multiply before you subtract or add: 1.5 times 4 is 6. The lower fence is 9 minutes and the upper fence is 25 minutes.
Compare the times with the fences. The least time, 13, is greater than the lower fence, 9, so no time is an outlier at the low end. The times from 13 to 19 all lie between the fences. Only 37 is greater than the upper fence, 25, so 37 minutes is an outlier.
Find the mean with and without 37. The six other times add to 13 + 15 + 15 + 16 + 18 + 19 = 96, and 96 + 37 = 133. Divide each sum by the number of values in it: 7 with the outlier and 6 without it.
Find the median with and without 37. With it, the median is 16, from the first step. Without it, six values are left: 13, 15, 15, 16, 18, 19. The count is even, so the median is the mean of the 3rd and 4th values.
Answer
The time minutes is an outlier. Including it raises the mean from to minutes, a change of minutes. It raises the median only from to minutes, a change of minute.
| Data used | Mean | Median | Mode |
|---|---|---|---|
The six times without | |||
All seven times, with | |||
Seven times, if were instead |
Read down the table. The mean climbs as the longest time grows: , then , then . In the last row the total is . The median moves from to and then stays there. The mode stays at .
Here is why each measure of center acts this way:
- The mean uses the size of every value, so an extreme value shifts the total, and all the values share that shift. Including a value greater than every other value always raises the mean. Including a value less than every other value always lowers it.
- The median uses only the order of the values. As long as the outlier is not a middle value, making it more extreme does not change the median. Taking it away shifts the middle by half a position, which is why the median went from to .
- The mode uses only how often each value appears. Here appears once and appears twice, so the mode is with or without the outlier.
With the outlier, the mean of minutes is as long as or longer than six of the seven trips, so here it no longer describes a typical trip well. The median of minutes is still the middle trip.
Takeaway. A measure follows a rule, and you can use that rule in both directions.
- Missing value: write the rule with in the data set, find the value that fits, and test it. For the mean, the total counts too.
- Outlier: find the fences from , and the IQR, using the lower and upper halves of the ordered data (the median is in neither half when the count is odd). Then find each measure of center with and without the outlier.
The mean uses the size of every value, so an outlier greater than every other value raises it, and one less than every other value lowers it. The median uses only order, so an outlier that is not a middle value can become more extreme without changing the median.