Boxplots and the Five-Number Summary
How to find a five-number summary, draw a boxplot with outliers shown, read what each part of the box says, and connect the shape of a distribution to where the mean sits compared with the median.
A boxplot is a picture of five numbers: the minimum, \(Q_1\), the median, \(Q_3\), and the maximum. The box holds the middle half of the data, and each whisker holds about a quarter. Boxplots are quick to draw and great for comparing groups, and the way their parts stretch hints at the shape. They also hide details, such as clusters and gaps, that a dotplot or histogram would show.
1The five-number summary
The five-number summary of a quantitative data set is the minimum, the first quartile \(Q_1\), the median, the third quartile \(Q_3\), and the maximum. To find it, put the data in order, find the median, then find the median of each half (leaving the median itself out of both halves when \(n\) is odd).
Fifteen students recorded how many pages they read in one week:
12, 20, 24, 30, 35, 38, 40, 45, 48, 55, 60, 72, 85, 110, 190
| Minimum | \(Q_1\) | Median | \(Q_3\) | Maximum |
|---|---|---|---|---|
| 12 | 30 | 45 | 72 | 190 |
These five numbers cut the data into four parts, each holding about a quarter of the values.
2Drawing a boxplot
A boxplot is a graph of the five-number summary drawn above a number line.
- Draw and label a number line that covers all the data, with units.
- Draw a box from \(Q_1\) to \(Q_3\). It holds the middle 50% of the data.
- Draw a line across the box at the median.
- Draw the whiskers: lines from \(Q_1\) out to the minimum and from \(Q_3\) out to the maximum. Each whisker covers about 25% of the data.
- If there are outliers, end each whisker at the most extreme value that is not an outlier, and mark each outlier with its own symbol, such as a dot or an asterisk.
Pages read
Fifteen students recorded the pages they read in one week: 12, 20, 24, 30, 35, 38, 40, 45, 48, 55, 60, 72, 85, 110, 190. Find the five-number summary, check for outliers, and describe the boxplot.
- 1The data are in order and \(n = 15\). The median is the 8th value: 45 pages.
- 2The lower half is the 7 values below the median: 12, 20, 24, 30, 35, 38, 40. Its median, \(Q_1\), is 30. The upper half is 48, 55, 60, 72, 85, 110, 190, so \(Q_3 = 72\).
- 3Five-number summary: min 12, \(Q_1 = 30\), median 45, \(Q_3 = 72\), max 190.
- 4\(IQR = 72 - 30 = 42\), and \(1.5 \times 42 = 63\). Fences: \(30 - 63 = -33\) and \(72 + 63 = 135\). Only 190 is beyond a fence.
- 5Draw the box from 30 to 72 with a line at 45. The left whisker goes to 12. The right whisker stops at 110, the largest value that is not an outlier, and 190 is plotted on its own.
3Showing outliers
To check for outliers, use the \(1.5 \times IQR\) rule: a value more than \(1.5 \times IQR\) below \(Q_1\) or above \(Q_3\) is an outlier. For the pages data, \(IQR = 42\), so the fences are \(30 - 63 = -33\) and \(72 + 63 = 135\). Only 190 is beyond a fence.
If you draw the whisker all the way to 190, the plot suggests the readers spread smoothly up to 190, and the outlier disappears into the whisker. Stop the whisker at 110, the largest value that is not an outlier, and mark 190 by itself.
Enter the data in L1. In STAT PLOT, turn a plot on and choose the boxplot icon that shows separate outlier points (the first boxplot icon). Set Xlist to L1, then ZOOM, ZoomStat. TRACE moves across the five numbers and any outliers.
4Reading a boxplot
Each piece of a boxplot answers a question.
| Part | What it tells you |
|---|---|
| Median line | The middle value: about half the data are below it and half above |
| Box | The middle 50% of the data, from \(Q_1\) to \(Q_3\); its width is the IQR |
| Each whisker | About 25% of the data, out to the smallest or largest value that is not an outlier |
| Separate points | Outliers, values beyond the \(1.5 \times IQR\) fences |
| Whole length | The range of the data, outliers included |
What the sections say
Use the boxplot of pages read in Figure 1. About what percent of the students read more than 72 pages? Between 30 and 72 pages? What is the IQR, and what does it describe?
- 172 is \(Q_3\). About 75% of the values are at or below \(Q_3\), so about 25% of the students read more than 72 pages.
- 230 to 72 is the box, from \(Q_1\) to \(Q_3\): the middle half, about 50% of the students.
- 3\(IQR = 72 - 30 = 42\) pages. It is the width of the box, the range of the middle half of the students.
A tempting claim
In Figure 1, the right part of the box (45 to 72) is longer than the left part (30 to 45). A student says, “More students read between 45 and 72 pages than between 30 and 45.” Is that right?
- 1The median splits the box: about 25% of the values lie between \(Q_1\) and the median, and about 25% between the median and \(Q_3\).
- 2So each part of the box holds about the same number of students, roughly a quarter of 15.
- 3The right part is longer because those values are more spread out: they cover 27 pages instead of 15.
Every section of a boxplot holds about 25% of the values, no matter how long it is. A long whisker or a long half of the box means the values there are spread out over a wide stretch, not that there are more of them.
5Mean, median, and shape
A boxplot shows the median but not the mean. Comparing the two still tells you about shape, because the mean is pulled toward a long tail while the median stays in the middle.
- If a distribution is roughly symmetric, the mean and median are close to each other.
- If it is skewed right, the mean is usually larger than the median.
- If it is skewed left, the mean is usually smaller than the median.
Two quick predictions
- For the pages read, the mean is 57.6 pages and the median is 45 pages. What shape would you expect?
- On an easy quiz, most students scored 18 to 20 out of 20, but a few scored much lower. Which is larger, the mean or the median?
- 11. The mean is well above the median. A few large values (like 110 and 190) pull the mean up but not the median. That points to a distribution skewed right, which matches the long right whisker and the outlier.
- 22. The few low scores form a tail to the left: skewed left. They pull the mean down, so the mean is smaller than the median.
The mean follows the tail. A long tail toward large values (skewed right) drags the mean up, above the median. If you remember only one picture, picture a few very large incomes pulling the average income above the typical one.
6What a boxplot hides
Because a boxplot keeps only five numbers (plus outliers), very different data sets can produce the same boxplot.
A boxplot also does not show how many values there are: a boxplot of 15 students and one of 15,000 can look the same. And a perfectly symmetric box does not mean the data are mound-shaped; they could be uniform or have two clusters. When shape details matter, look at a dotplot, stem-and-leaf plot, or histogram too.
Apart from the five numbers and the outliers, a boxplot shows no individual values. You cannot tell how many students read exactly 40 pages, or how many students there were at all, from the boxplot alone.
Quick reference
| Term | Meaning |
|---|---|
| Five-number summary | Minimum, \(Q_1\), median, \(Q_3\), maximum |
| Box | From \(Q_1\) to \(Q_3\): the middle 50%, width = IQR |
| Whiskers | From the box to the most extreme values that are not outliers; about 25% each |
| Outlier symbol | A value beyond \(Q_1 - 1.5 \times IQR\) or \(Q_3 + 1.5 \times IQR\) |
| Skewed right | Longer right whisker and right half of box; mean usually above median |
| Skewed left | Longer left whisker and left half of box; mean usually below median |