Chapter 14 · Statistics and data analysis
Create and Interpret Box Plots
Build a box plot from a data set's five-number summary, then read the box and whiskers to find the range and the interquartile range.
A long list of numbers is hard to take in at a glance. A box plot gives you a quick picture of how a data set spreads out along a number line, using just five numbers called the five-number summary:
- the minimum, the smallest value;
- the lower quartile, , the median of the lower half;
- the median, the middle of the ordered list;
- the upper quartile, , the median of the upper half;
- the maximum, the largest value.
Recall how you find them. First put the data in order from least to greatest. When the count (how many values there are) is odd, the median is the single middle value; when the count is even, it is the mean of the two middle values. Then split the ordered list into a lower half and an upper half with the same number of values. When the count is odd, leave the median out of both halves.
Key concept
A box plot pictures the five-number summary
On a number-line scale, a box runs from to , and a line across the box marks the median. Two whiskers, one line segment on each side of the box, reach out to the minimum and to the maximum. Lengths on the plot then measure spread:
- The length of the whole plot, from the end of one whisker to the end of the other, is the range: the distance between the smallest and largest values.
- The length of the box alone is the interquartile range (IQR): the distance from to , which shows how spread out the middle of the ordered list is.
Worked example
Create a box plot when the count is odd
A basketball player scored these points in 11 games: 14, 22, 9, 20, 6, 16, 12, 24, 10, 19, 13. Find the five-number summary and use it to create a box plot.
Put the scores in order from least to greatest, because the median and the quartiles are found by position in the ordered list. Check that all 11 scores appear.
The two ends of the ordered list are the minimum and the maximum. The count, 11, is odd, so the median is the single middle value: the 6th score, which has 5 scores on each side.
Split the list into a lower half and an upper half. Because the count is odd, leave the median, 14, out of both halves, so each half holds 5 scores.
Each half has 5 scores, an odd count, so its median is its 3rd score. The median of the lower half is the lower quartile, and the median of the upper half is the upper quartile.
Place the five values on a scale from 0 to 24 that counts by 2s; every value is even, so each one sits exactly on a tick. One whisker reaches the minimum, 6, and the other reaches the maximum, 24. The box runs from 10 to 20, with a line across it at the median, 14.
Answer
The five-number summary is , , , and points, so the box plot has whiskers that end at and and a box from to with its median line at .
Now read the box plot above to describe how spread out the scores are. Measure each length by subtracting the scale values at its two ends, not by how long it looks.
- The whole plot runs from 6 to 24, so the range is points. The player's lowest and highest games were 18 points apart.
- The box runs from 10 to 20, so the IQR is points. The middle scores, from to , all lie within a 10-point stretch.
Worked example
Create and read a box plot when the count is even
Twelve students recorded how many books they read over the summer: 6, 3, 10, 4, 1, 8, 12, 5, 4, 7, 2, 8. Create a box plot of the data, then use it to state the range and the IQR.
Order the 12 values, since every later step works by position.
The ends give the minimum, 1, and the maximum, 12. The count, 12, is even, so the median is the mean of the 6th and 7th values. A median does not have to be a data value.
Because the count is even, no value is left out: the lower half is 1, 2, 3, 4, 4, 5 and the upper half is 6, 7, 8, 8, 10, 12. Each half has 6 values, an even count, so each quartile is the mean of that half's 3rd and 4th values.
Place the five values on a scale from 0 to 12 that counts by halves, so that 3.5 and 5.5 sit exactly on ticks. The whiskers end at 1 and 12, and the box runs from 3.5 to 8 with a line at 5.5.
Read the spread from the plot: the length of the whole plot is the range, and the length of the box alone is the IQR.
Answer
The box plot shows a minimum of , , a median of , and a maximum of books, so the range is books and the IQR is books.
Takeaway: A box plot pictures the five-number summary on a number line. The whiskers reach the minimum and the maximum, the box runs from to (the medians of the two halves, with the median left out of both halves when the count is odd), and a line across the box marks the median. Read the whole plot for the range and the box alone for the IQR.
Next, you will identify outliers and describe their effect.