Parallel Box and Whisker
Theory
A five-number summary (minimum, \(Q_1\), median, \(Q_3\), maximum) splits a data set into four quarters, and a box plot draws it on a scale. This Year 11 Mathematics Standard page covers finding quartiles, drawing and reading box plots, the range and interquartile range, percentages and counts from a box plot, outliers, shape, and comparing parallel box plots.
The five-number summary of a data set is the minimum, the lower quartile \(Q_1\), the median \(Q_2\), the upper quartile \(Q_3\) and the maximum. These five values cut the ordered data into four parts, each holding about a quarter (\(25\%\)) of the scores.
A box plot (box-and-whisker plot) draws the five-number summary on a scale. The box runs from \(Q_1\) to \(Q_3\), with a line at the median, and the whiskers reach out to the minimum and maximum. The length of the box is the interquartile range, \(IQR=Q_3-Q_1\), and the whole plot spans the range, maximum \(-\) minimum.
Because each section holds \(25\%\) of the scores: \(25\%\) are below \(Q_1\), \(50\%\) are below the median, \(75\%\) are below \(Q_3\), and the box holds the middle \(50\%\). Multiply the percentage by the number of scores to get a count.
An outlier (a score below \(Q_1-1.5\times IQR\) or above \(Q_3+1.5\times IQR\)) is marked with a cross, and the whisker stops at the last score that is not an outlier. The outlier is still the minimum or maximum in the five-number summary.
The shape shows in the box plot. If the two sides of the median match, the data is symmetric. If the right side (box part and whisker) is longer, the tail is to the right and the data is positively skewed. If the left side is longer, it is negatively skewed. Parallel box plots drawn on one scale let you compare the medians, spreads and shapes of two groups.
Reading percentages from a box plot:
| Part of the data | Percentage of scores |
|---|---|
| Below \(Q_1\) (or above \(Q_3\)) | \(25\%\) |
| Below the median (or above it) | \(50\%\) |
| Between \(Q_1\) and \(Q_3\) (the box) | \(50\%\) |
| Above \(Q_1\) (or below \(Q_3\)) | \(75\%\) |
How to find a five-number summary and draw a box plot
- Order the scores and count them (\(n\)).
- Find the median: the middle score, or the average of the two middle scores.
- Find \(Q_1\) and \(Q_3\) as the medians of the lower and upper halves (leave the median out if \(n\) is odd).
- Write the summary: minimum, \(Q_1\), median, \(Q_3\), maximum.
- Check for outliers with \(Q_1-1.5\times IQR\) and \(Q_3+1.5\times IQR\) if the question asks.
- Draw an evenly spaced scale, the box from \(Q_1\) to \(Q_3\), a line at the median, and the whiskers to the smallest and largest scores that are not outliers. Mark any outlier with a cross.
How to read a box plot
- Read the five values off the scale.
- Use \(25\%\) per section to answer percentage questions, then multiply by the number of scores for a count.
- Compare the sides of the median to describe the shape.
(ii) Find the range and the interquartile range.
(iii) How many patients waited more than \(12\) minutes?
(iv) What percentage of patients waited between \(18\) and \(40\) minutes?
Read the five-number summary from the box plot:
\(\min=5,\ Q_1=12,\ \text{median}=18,\ Q_3=26,\ \max=40\)
(i) Median \(=18\) minutes (the line inside the box)
(ii)
| \(\text{Range}\) | \(=\) | \(40-5=35\text{ minutes}\) |
| \(IQR\) | \(=\) | \(26-12=14\text{ minutes}\) |
(iii) \(12\) is \(Q_1\), so \(75\%\) of the patients waited more than \(12\) minutes.
| \(75\%\times 80\) | \(=\) | \(60\text{ patients}\) |
(iv) \(18\) to \(40\) is from the median to the maximum: two sections, so \(50\%\).
\(15,\ 8,\ 22,\ 11,\ 30,\ 18,\ 9,\ 25,\ 14,\ 12,\ 20,\ 17,\ 27\)
Find the five-number summary and draw a box plot.
Order the data (\(n=13\)):
\(8,\ 9,\ 11,\ 12,\ 14,\ 15,\ \mathbf{17},\ 18,\ 20,\ 22,\ 25,\ 27,\ 30\)
The median is the 7th score, \(17\). Leave it out and split the rest into two halves of \(6\).
Lower half \(8,\ 9,\ 11,\ 12,\ 14,\ 15\)
| \(Q_1\) | \(=\) | \(\dfrac{11+12}{2}=11.5\) |
Upper half \(18,\ 20,\ 22,\ 25,\ 27,\ 30\)
| \(Q_3\) | \(=\) | \(\dfrac{22+25}{2}=23.5\) |
\(\therefore\) five-number summary: \(8,\ 11.5,\ 17,\ 23.5,\ 30\)
\(0,\ 1,\ 1,\ 2,\ 2,\ 3,\ 3,\ 4,\ 4,\ 5,\ 6,\ 18\)
(i) Find the five-number summary.
(ii) Show that \(18\) is an outlier, and draw the box plot.
(i) \(n=12\), so each half has \(6\) scores.
| \(\text{Median}\) | \(=\) | \(\dfrac{3+3}{2}=3\) |
Lower half \(0,\ 1,\ 1,\ 2,\ 2,\ 3\) \(\Rightarrow Q_1=\dfrac{1+2}{2}=1.5\)
Upper half \(3,\ 4,\ 4,\ 5,\ 6,\ 18\) \(\Rightarrow Q_3=\dfrac{4+5}{2}=4.5\)
\(\therefore\) five-number summary: \(0,\ 1.5,\ 3,\ 4.5,\ 18\)
(ii)
| \(IQR\) | \(=\) | \(4.5-1.5=3\) |
| \(\text{Upper limit}\) | \(=\) | \(4.5+1.5\times 3\) |
| \(=\) | \(9\) |
\(18>9\), so \(18\) is an outlier. (The lower limit is \(1.5-4.5=-3\), so there is no outlier at the low end.)
Mark \(18\) with a cross. The right whisker stops at \(6\), the largest score that is not an outlier.
(ii) Describe the shape of each distribution.
(iii) What percentage of Brand Y phones lasted more than \(16\) hours?
Read each five-number summary:
X: \(8,\ 11,\ 13,\ 14,\ 16\) Y: \(6,\ 9,\ 12,\ 16,\ 22\)
(i) Medians: X \(=13\), Y \(=12\), so Brand X is slightly higher.
| \(IQR_X\) | \(=\) | \(14-11=3\) |
| \(IQR_Y\) | \(=\) | \(16-9=7\) |
Brand X has the higher median and a much smaller IQR, so its battery life is better and more consistent.
(ii) Compare the two sides of each median.
X: min to median \(13-8=5\), median to max \(16-13=3\). The left side is longer, so X is negatively skewed.
Y: min to median \(12-6=6\), median to max \(22-12=10\). The right side is longer, so Y is positively skewed.
(iii) \(16\) hours is \(Q_3\) for Brand Y, so \(25\%\) of Brand Y phones lasted more than \(16\) hours. (No Brand X phone did: its maximum is \(16\).)
Common pitfalls
Frequently asked questions
What is a five-number summary?
The minimum, lower quartile, median, upper quartile and maximum of a data set. They split the ordered data into four parts, each holding about 25% of the scores.
How do you draw a box plot?
Find the five-number summary. On an evenly spaced scale, draw a box from \(Q_1\) to \(Q_3\) with a line at the median, then draw whiskers out to the minimum and maximum. If there is an outlier, mark it with a cross and stop the whisker at the last score that is not an outlier.
What percentage of data is in the box of a box plot?
\(50\%\). The box runs from \(Q_1\) to \(Q_3\), so it holds the middle half of the scores. Each whisker holds \(25\%\).
How do you find the quartiles with an odd number of scores?
Find the median first, then leave it out. \(Q_1\) is the median of the scores below it and \(Q_3\) is the median of the scores above it.
How can you tell skewness from a box plot?
Compare the two sides of the median. If the right side is longer the data is positively skewed; if the left side is longer it is negatively skewed; if they match it is symmetric.
What does a cross on a box plot mean?
It marks an outlier: a score below \(Q_1-1.5\times IQR\) or above \(Q_3+1.5\times IQR\). The whisker stops at the last score that is not an outlier.