Lesson 1 of 6 · 16 min
Five-number summaries and box plots
Summarise a data set with its minimum, quartiles, median and maximum, and draw those five numbers as a box plot on a labelled scale.
What you will be able to do
- Find the five-number summary of a data set: minimum, , median, and maximum.
- Construct a box plot from a five-number summary on a labelled, evenly spaced scale.
- Explain why each part of a box plot holds about a quarter of the data.
Fifteen Year 11 students at a Toowoomba school recorded how long, in minutes, it took them to get to school one morning:
8, 12, 15, 15, 18, 20, 22, 23, 25, 27, 30, 32, 35, 40, 45
Fifteen numbers are hard to take in at once. In Univariate data analysis 1 you summarised data like this with a median and an interquartile range. Five numbers together tell almost the whole story, and they draw a picture you can read in a second.
The box plot sits under the dot plot on the same scale. Drag the 45 out to 55, then drag the 8 in to 14. Which parts of the box plot move, and which stay put?
Definition
Five-number summary
The five-number summary of a data set is
These five values split the ordered data into four parts with (about) the same number of values: a quarter of the data lies between each pair of neighbours.
For the travel times, , so the median is the th value, 23. Leave it out and split the rest into halves of seven:
So and , and the five-number summary is 8, 15, 23, 32, 45 minutes.
A school library recorded the number of books borrowed on each of nine days: 4, 7, 9, 10, 12, 13, 15, 18, 21. Find the five-number summary.
Worked example
Find the five-number summary of daily screen times
Twelve Year 11 students recorded their phone screen time, in hours, on one school day:
4.5, 3.0, 6.5, 2.5, 9.0, 4.0, 5.5, 3.5, 7.5, 4.0, 6.0, 5.0
Determine the five-number summary.
Step 1: Order the data
2.5, 3.0, 3.5, 4.0, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.5, 9.0 ()
Every statistic in the five-number summary depends on position in the ordered list.
Step 2: Read off the minimum and maximum
Minimum hours and maximum hours.
Step 3: Find the median
The median is at position , halfway between the 6th and 7th values: hours.
Step 4: Split into halves
With even, the lower half is the first six values and the upper half is the last six: 2.5, 3.0, 3.5, 4.0, 4.0, 4.5 and 5.0, 5.5, 6.0, 6.5, 7.5, 9.0.
Step 5: Find the quartiles
and .
Each half has six values, so each quartile is the mean of the middle two values of its half.
Try it yourself first, then check the working one step at a time.
Answer
Minimum 2.5 h, h, median 4.75 h, h, maximum 9.0 h.
Method
Order the data and count the values.
Find the median at position .
Split into lower and upper halves (leave the median out when is odd).
and are the medians of the halves; add the minimum and maximum.
Watch out for
Writing the position 6.5 as the median instead of the value 4.75.
Finding the quartiles from the unordered list.
A box plot (or box-and-whisker plot) draws the five-number summary on a number scale. The box shows the middle half of the data, and the whiskers reach out to the extremes.
The parts of a box plot, for the travel times. Each whisker and each half of the box holds about a quarter of the students.
Drawing a box plot
Find the five-number summary
Order the data, find the median, then and from the halves.
Draw a scale
Draw a horizontal number line that covers the minimum to the maximum, with evenly spaced ticks, numbers and a label with units.
Draw the box
Draw a box from to above the scale, with a vertical line across it at the median.
Draw the whiskers
Draw a line from the left of the box to the minimum and from the right of the box to the maximum. (In the outliers lesson, a whisker stops short of any outlier.)
Add a title
Say what the data are, so the plot makes sense on its own.
For the travel times, minutes. About what percentage of the students took more than 32 minutes to get to school?
Worked example
Construct a box plot of restaurant waiting times
On a busy Saturday night, a Noosa restaurant recorded how many minutes 11 groups waited for a table:
15, 8, 32, 10, 5, 20, 12, 38, 10, 25, 18
Construct a box plot of the waiting times. (None of the values is an outlier.)
The finished box plot.
Step 1: Order the data
5, 8, 10, 10, 12, 15, 18, 20, 25, 32, 38 ()
Step 2: Find the median
Position , so the median is the 6th value, 15 minutes.
Step 3: Find the quartiles
Leave out the median. Lower half 5, 8, 10, 10, 12, so . Upper half 18, 20, 25, 32, 38, so .
Step 4: Draw and label the scale
The data run from 5 to 38, so draw a scale from 0 to 40 in steps of 5, labelled "Waiting time (minutes)".
An evenly spaced, labelled scale is what makes a box plot readable. A marker checks it.
Step 5: Draw the box and median
Draw a box from 10 to 25 with a vertical line at 15.
Step 6: Draw the whiskers
Draw whiskers from 10 down to 5 and from 25 up to 38, and give the plot a title.
Try it yourself first, then check the working one step at a time.
Answer
The five-number summary is 5, 10, 15, 25, 38 minutes, drawn as the box plot shown.
Method
Find the five-number summary.
Draw an evenly spaced scale with a label and units.
Draw the box from to with a line at the median.
Draw the whiskers to the minimum and maximum (or to the most extreme non-outliers).
Watch out for
Placing the median line in the centre of the box: here it is much closer to .
Leaving the scale without a label or units.
Common mistake
Where box plots go wrong
- An uneven or unlabelled scale. Space the ticks evenly and label the axis with the variable and its units.
- The median in the middle of the box. Draw it where it really is. Its position inside the box is part of the story.
- Positions instead of values. For , the median is the 8th value, 23, not 8.
- Keeping the median in both halves when is odd.
Tip
With technology
A graphics calculator or statistics app will find the five-number summary and draw the box plot for you (on most calculators it is the 1-Var Stats results and a box plot in the stat plot menu). Most graphics calculators use the same median-of-halves method as this course, but some spreadsheet functions such as QUARTILE.INC use another rule and can give slightly different quartiles. In an exam, show the ordered data and the halves.
Which feature of a box plot shows the interquartile range?
Summary
The five-number summary is the minimum, , median, and maximum. It splits the ordered data into four quarters.
Find and as the medians of the lower and upper halves, leaving the median out when is odd.
A box plot draws the summary on a labelled scale: a box from to with a line at the median, and whiskers to the extremes.
The length of the box is the IQR; the full width of the plot is the range.
Each whisker and each half of the box holds about 25% of the data.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.