Lesson 1.6 · Exploring One-Variable Data
Box plots and outliers
"Outlier" has meant "a value that looks far from the rest" so far. That's too vague for a statistics course: two people looking at the same graph could disagree. This lesson gives two precise rules for identifying outliers and shows how to build the graph that displays them: the box plot, drawn from the five-number summary.
The five-number summary
Definition
Five-number summary
The five-number summary of a distribution is
These five values split the ordered data into four parts, each holding about of the values.
The five-number summary gives a quick sense of center (the median) and spread (the range and the IQR), and it is the basis for a box plot.
Two rules for outliers
The 1.5 × IQR rule
A value is an outlier if it is more than below or above . That is, an outlier is any value outside the fences
This is the standard rule in AP Statistics, and the one used to draw box plots. Because it is built from quartiles, it is resistant: the outliers themselves don't distort the fences.
A second rule uses the mean and standard deviation.
The two-standard-deviation rule
A value may be called an outlier if it is more than standard deviations from the mean: below or above .
The two rules don't always agree. The rule works best for roughly symmetric, mound-shaped data; for strongly skewed data, it can flag many ordinary values in the long tail. When a question doesn't specify a rule, use and say so.
Box plots
A box plot (or boxplot) draws the five-number summary above a number line.
- Draw a box from to , with a line across it at the median.
- Check for outliers with the rule and plot each one as a separate dot.
- Draw whiskers from the box out to the smallest and largest values that are not outliers.
A box plot that shows outliers this way is called a modified box plot, and it is the kind you should always draw in AP Statistics.
Worked example: Building a modified box plot
Fifteen students reported how many hours they spent playing video games last week:
Identify any outliers and make a modified box plot.
Five-number summary. With , the median is the 8th value, . The lower half is , so . The upper half is , so . The summary is .
Outliers. and . The fences are and . Only is outside them, so 24 hours is an outlier.
Draw it. The box runs from to with a line at . The left whisker reaches . The right whisker stops at , the largest value that is not an outlier, and gets its own dot.
Reading box plots
Because each section holds about a quarter of the data, a box plot answers "what percent" questions quickly: about of the values are below , about are between and , and about are below .
A box plot also hints at shape. In the video-game plot, the box and whiskers are balanced, but the high outlier at stretches the distribution far to the right, a sign of right skew. In general:
- Skewed right: the right whisker and the right part of the box tend to be longer.
- Skewed left: the left whisker and the left part of the box tend to be longer.
- Roughly symmetric: the two halves look about the same.
Worked example: Reading a box plot
The box plot summarizes the ages of the guests at a large wedding.
- Give the five-number summary and the IQR.
- About what percent of the guests were older than ?
- Could any guest's age be an outlier?
Solutions.
- Minimum , , median , , maximum . The IQR is years.
- is , so about of the guests were older than .
- The fences are and . Every age is between them, so there are no outliers, which matches the plot having no separate dots.
Worked example: The two-standard-deviation rule
A snack company weighed a sample of bags of chips labeled " grams." The weights had mean g and standard deviation g. One bag weighed g. Is it an outlier by the rule?
The cutoffs are g and g. Since , the bag is an outlier by this rule. It is more than two standard deviations below the mean.
Common mistake
A box plot does not show the number of values, and a longer section doesn't hold more data. Each section always holds about of the values; a long section means those values are spread out. Box plots also hide details such as gaps, clusters and multiple peaks. A bimodal distribution can produce a perfectly ordinary-looking box plot.
Tip
The whisker ends at the most extreme value inside the fences, not at the fence itself. The fences are never drawn on a box plot; they're only a test.
Practice
The next two problems use this box plot of the monthly rent, in hundreds of dollars, of apartments in a neighborhood.
What is the interquartile range of the rents, in hundreds of dollars?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which statement about the rents is supported by the box plot?
Find the upper fence for outliers for this data set.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the data set in the previous problem, how many values are outliers by the rule?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The scores on a standardized test have mean and standard deviation . Using the two-standard-deviation rule, which score would be considered an outlier?
Two data sets have identical box plots. Which statement must be true?
A data set has and . In its modified box plot, the lower whisker ends at and the minimum is plotted as a separate outlier dot. Which value could be the minimum?