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, Q1Q_1, median, Q3Q_3 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.

Interactive

From dot plot to box plot

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

minimum,Q1,median,Q3,maximum\text{minimum}, \quad Q_1, \quad \text{median}, \quad Q_3, \quad \text{maximum}

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, n=15n = 15, so the median is the 15+12=8\frac{15+1}{2} = 8th value, 23. Leave it out and split the rest into halves of seven:

8, 12, 15, 15, 18, 20, 22⏟lower half2325, 27, 30, 32, 35, 40, 45⏟upper half\underbrace{8,\ 12,\ 15,\ \mathbf{15},\ 18,\ 20,\ 22}_{\text{lower half}} \quad 23 \quad \underbrace{25,\ 27,\ 30,\ \mathbf{32},\ 35,\ 40,\ 45}_{\text{upper half}}

So Q1=15Q_1 = 15 and Q3=32Q_3 = 32, 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

  • Simple familiar

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.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Order the data and count the values.

  2. Find the median at position n+12\frac{n+1}{2}.

  3. Split into lower and upper halves (leave the median out when nn is odd).

  4. Q1Q_1 and Q3Q_3 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

  1. Find the five-number summary

    Order the data, find the median, then Q1Q_1 and Q3Q_3 from the halves.

  2. 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.

  3. Draw the box

    Draw a box from Q1Q_1 to Q3Q_3 above the scale, with a vertical line across it at the median.

  4. 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.)

  5. Add a title

    Say what the data are, so the plot makes sense on its own.

For the travel times, Q3=32Q_3 = 32 minutes. About what percentage of the students took more than 32 minutes to get to school?

in \%

Worked example

Construct a box plot of restaurant waiting times

  • Simple familiar

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.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find the five-number summary.

  2. Draw an evenly spaced scale with a label and units.

  3. Draw the box from Q1Q_1 to Q3Q_3 with a line at the median.

  4. 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 Q1Q_1.

  • 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 n=15n = 15, the median is the 8th value, 23, not 8.
  • Keeping the median in both halves when nn 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?

Choose one answer

Summary

  • The five-number summary is the minimum, Q1Q_1, median, Q3Q_3 and maximum. It splits the ordered data into four quarters.

  • Find Q1Q_1 and Q3Q_3 as the medians of the lower and upper halves, leaving the median out when nn is odd.

  • A box plot draws the summary on a labelled scale: a box from Q1Q_1 to Q3Q_3 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.

Lesson 1 of 60% read

Save your progress with a free account