Box-and-Whisker Plots
Drawing a box-and-whisker plot to scale from the five-number summary; reading one; two plots on one scale for comparing; and when to use a box-and-whisker plot or a cumulative frequency curve.
What You Should Already Know
- From lesson 3.3: the five-number summary of a set of data is the least value, the lower quartile , the median, the upper quartile and the greatest value. For the 15 driving times of 3.3 it is 13, 18, 22, 28 and 43 minutes: range minutes, interquartile range minutes.
- From lesson 3.2: on a cumulative frequency curve, , the median and are read across from , and .
Drawing a Box-and-Whisker Plot
A box-and-whisker plot draws the five-number summary on a number scale. A box covers the middle half of the data, a line inside it marks the median, and two lines, the whiskers, reach out to the least and the greatest values.
A box-and-whisker plot
1. Draw a number scale that covers the data, with equal steps, and name it with its units.
2. Above the scale, draw a box from to , and a line across the box at the median.
3. Draw a whisker from the left end of the box to the least value, and one from the right end to the greatest value.
Every part is drawn to scale: each end and line stands at its value on the scale.
The box holds about the middle half of the data; its length is the interquartile range. Each whisker covers about a quarter of the data. From the end of one whisker to the end of the other is the range.
Example 1: From the five-number summary
Draw a box-and-whisker plot of the 15 driving times of lesson 3.3: least value 13, , median 22, , greatest value 43 minutes.
Solution
The times go from 13 to 43, so a scale from 10 to 50 minutes covers them. Mark it every 5 minutes, with a small tick for every minute, and number it every 10.
Draw the box from 18 to 28, the median line at 22, and the whiskers out to 13 and 43. The dashed lines show where each part stands on the scale.
The box is 10 minutes long (the interquartile range) and the whole plot 30 minutes long (the range). The right whisker, 15 minutes, is much longer than the left, 5 minutes: the slowest quarter of the times is far more spread out than the fastest quarter, because of the one time of 43 minutes.
The plot is drawn above, to scale.
Example 2: From the data
The heights, in cm, of 11 sunflower plants grown for a science project are 98, 112, 105, 120, 131, 108, 117, 125, 101, 140, 114. Draw a box-and-whisker plot.
Solution
First find the five-number summary, as in lesson 3.3. In order: 98, 101, 105, 108, 112, 114, 117, 120, 125, 131, 140.
: the median is the 6th value, 114. Leave it out. Lower half 98, 101, 105, 108, 112: . Upper half 117, 120, 125, 131, 140: .
Five-number summary: 98, 105, 114, 125, 140. A scale from 90 to 150 cm, numbered every 10, covers it.
Five-number summary 98, 105, 114, 125, 140 cm; the plot is drawn above.
Reading a Box-and-Whisker Plot
To read a plot, read the scale under each end of the whiskers, each end of the box and the median line. Then work out the range and the interquartile range. A plot does not show the single values or how many there are: what it says about numbers of values is "about a quarter", "about half".
Example 3: Reading the five numbers
The box-and-whisker plot shows the heights, in cm, of the 60 tomato plants in a community garden in Bishan. (a) Write down the five-number summary. (b) Find the range and the interquartile range. (c) About how many plants are taller than 29 cm? (d) In which quarter of the data are the heights most spread out?
Solution
(a) Each small tick is 1 cm. The left whisker ends at 8, the box runs from 21 to 36 with the median line at 29, and the right whisker ends at 54.
(b) Range cm. Interquartile range cm.
(c) 29 cm is the median, so about half of the 60 plants, about 30, are taller than 29 cm.
(d) The four parts are 13 cm ( to ), 8 cm ( to ), 7 cm ( to ) and 18 cm ( to ). Each holds about a quarter of the plants, so the tallest quarter, spread over 18 cm, is the most spread out.
(a) 8, 21, 29, 36, 54 cm (b) range 46 cm, interquartile range 15 cm (c) about 30 (d) the tallest quarter, from 36 cm to 54 cm
Example 4: Unknowns on a plot
The box-and-whisker plot, not drawn to scale, shows the marks of a class in a quiz. The interquartile range is 13 marks, and the median is 6 marks more than the lower quartile. Find and , and the range.
Solution
The median is and the upper quartile . The median is 6 more than : .
The interquartile range is , so .
Range marks.
, ; range 35 marks
Two Plots on One Scale
To compare two sets of data, draw their box-and-whisker plots one above the other on the same scale. Then compare:
the average: which median is higher, and so which set generally has the larger values;
the spread: which interquartile range (and range) is smaller, and so which set is more consistent, its values closer together.
Say each in a sentence with the numbers. Lesson 3.7 compares sets of data in more ways.
Example 5: By car or by bus
The five-number summaries of the times, in minutes, that 15 pupils took to get to school by car and 15 pupils by bus are: car 13, 18, 22, 28, 43; bus 16, 17, 18, 21, 30. (a) Draw the two box-and-whisker plots on one scale. (b) Which group generally takes less time? (c) Which group's times are more consistent?
Solution
(a) One scale from 10 to 45 minutes covers both sets.
(b) The bus median, 18 minutes, is lower than the car median, 22 minutes. The bus's whole box is below 22 minutes.
(c) The bus interquartile range is minutes, against minutes by car; the ranges are and minutes. The bus box and whiskers are both much shorter.
(b) On average the bus pupils take less time: their median is 18 minutes against 22 by car. (c) The bus times are more consistent: their interquartile range is 4 minutes against 10 (and their range 14 against 30).
Example 6: A plot under a cumulative frequency curve
For the 80 basketball players of lessons 3.1 and 3.2, the lightest has a mass of 71 kg and the heaviest 99 kg. Draw a box-and-whisker plot of their masses on the same scale as the cumulative frequency curve.
Solution
The quartiles come from the curve (lesson 3.2): , median , kg. The least and greatest values cannot be read from a curve, so they must be given: 71 kg and 99 kg.
Draw the plot under the graph, its scale the same as the mass axis, so that each line of the box stands under its reading line.
Five numbers 71, about 83, about 88, about 93, 99 kg, drawn above under the curve.
A Curve or a Box-and-Whisker Plot?
In Secondary 1 you chose among a table, a pictogram, a bar graph, a pie chart and a line graph by the data and the purpose, and in Secondary 2 among dot diagrams, stem-and-leaf diagrams and histograms. A reason for a choice must say what one form shows that the other does not. The two new forms of this chapter compare like this.
| Cumulative frequency curve | Box-and-whisker plot |
|---|---|
| Purpose: Shows how many values are below each value: a running total of grouped data. | Purpose: Shows the five-number summary: where the data lie, the middle, and the middle half. |
| Advantages: Gives an estimate of how many values are below or above any value, and of the median, the quartiles and any percentile. It can be drawn from a grouped frequency table, without the single values. | Advantages: Shows the median, the interquartile range and the range at a glance. Two or more sets drawn on one scale are easy to compare. It is quick to draw, and a very large or very small value shows as a long whisker. |
| Disadvantages: Values read from it are estimates. It does not show the least and greatest values, so the range cannot be found. Comparing the spread of two curves needs readings. | Disadvantages: It shows only five numbers. The single values, the number of values, and how many lie below a value other than the five are lost. From grouped data it needs the least and greatest values to be given. |
Example 7: Choosing for a purpose
For each purpose, say whether a cumulative frequency curve or box-and-whisker plots would be better, and why. (a) A school has the marks of 300 pupils in a grouped frequency table and wants to know how many scored less than 45. (b) A teacher wants to show at a glance how the marks of five classes compare. (c) A competition gives a prize to the top 5% of 2000 entrants, and the organisers want the lowest prize-winning score. (d) A coach wants to see whether one runner's time is far from the others'.
Solution
(a) The curve: up from 45 to the curve and across gives an estimate of the number below 45. A box-and-whisker plot shows only five numbers, and 45 need not be one of them.
(b) Box-and-whisker plots, five of them on one scale: the medians and the lengths of the boxes can be compared at a glance. Five curves on one grid would be crowded and need readings.
(c) The curve: the lowest prize-winning score is the 95th percentile, read across from A box-and-whisker plot shows only the 25th, 50th and 75th percentiles.
(d) A box-and-whisker plot: it shows the least and greatest times, and a least or greatest time far beyond the box shows as a whisker much longer than the other, so the plot flags it. The curve does not show the least and greatest values. The plot cannot show whether the long whisker is one runner or several; a dot diagram or a stem-and-leaf diagram of Secondary 2 would show that.
(a) Curve (b) box-and-whisker plots (c) curve (d) box-and-whisker plot, each for the reason given.
Common Mistakes
- Drawing the plot not to scale, for example with the median in the middle of the box or the whiskers of equal length when the numbers are not. Every line stands at its value on the scale.
- Thinking that a longer box or whisker holds more values. Each whisker and each half of the box holds about a quarter of the data; a longer part means the values in it are more spread out.
- Drawing two plots for comparing on two different scales. They must share one scale.
- Comparing only the medians, or only the spreads. Say which set is generally larger (the medians) and which is more consistent (the interquartile ranges), each with its numbers.
- Reading the least and greatest values from a cumulative frequency curve. A curve does not show them: they must be given.
- Giving "it is clear" or "it is easy to read" as the reason for choosing a diagram. Say what it shows that the other does not.
Practice Questions
Try each question first, then open the solution to check your working. Draw every plot to scale.
Question 1
The number of hours that 40 pupils spent on a hobby in one week has least value 4, lower quartile 9, median 12, upper quartile 16 and greatest value 25. Draw a box-and-whisker plot, and find the range and the interquartile range.
ShowHide solution
A scale from 0 to 30 hours, numbered every 5, covers the data.
Range hours. Interquartile range hours.
Range 21 hours; interquartile range 7 hours. The plot is drawn above.
Question 2
The times, in seconds, of 12 pupils running 400 m are 72, 85, 78, 90, 69, 81, 88, 75, 95, 80, 83, 77. Find the five-number summary and draw a box-and-whisker plot.
ShowHide solution
In order: 69, 72, 75, 77, 78, 80, 81, 83, 85, 88, 90, 95.
: median
Lower half 69, 72, 75, 77, 78, 80:
Upper half 81, 83, 85, 88, 90, 95:
69, 76, 80.5, 86.5, 95 seconds; the plot is drawn above.
Question 3
The box-and-whisker plot shows the marks of 40 pupils in an English test. (a) Write down the median and the interquartile range. (b) About how many pupils scored more than 48 marks? (c) About how many scored from 55 to 62 marks?
ShowHide solution
Reading the scale: least 35, , median 55, , greatest 80.
(a) Median 55 marks; interquartile range marks.
(b) 48 is : about three quarters of the 40 pupils, about 30, scored more.
(c) From the median to is about a quarter of the pupils: about 10.
(a) 55 marks; 14 marks (b) about 30 (c) about 10
Question 4
The box-and-whisker plot, not drawn to scale, shows the masses, in kg, of the dogs in the large-dog class of a dog show. The range is 37 kg and the interquartile range is 18 kg. The lower quartile is 8 kg less than the median. Find , and .
ShowHide solution
Lower quartile: .
Interquartile range: , so .
Range: , so .
, ,
Question 5
The waiting times, in minutes, at two food stalls in a hawker centre were recorded over a week. Stall X: least 3, , median 8, , greatest 20. Stall Y: 5, 7, 8, 9, 13. (a) Draw the two plots on one scale. (b) Compare the waiting times at the two stalls. (c) Which stall's waiting time is easier to predict?
ShowHide solution
(a)
(b) Average: both medians are 8 minutes, so the waits are about the same on average. Spread: stall X has interquartile range minutes and range 17 minutes; stall Y has minutes and 8 minutes.
(c) Stall Y: its waiting times are much more consistent, so a customer can be surer of waiting about 8 minutes.
(b) The same median, 8 minutes; stall Y's times are less spread out (interquartile range 2 against 5 minutes). (c) Stall Y
Question 6
Two classes took the same test. The box of class P's plot is twice as long as the box of class Q's. Dinesh says, "So class P has twice as many pupils with marks in the box." Is he right?
ShowHide solution
No. Each box holds about half of its class, whatever its length. A box twice as long means that the middle half of class P's marks are spread over twice the interval: class P's interquartile range is twice class Q's. It says nothing about how many pupils either class has.
No: the length of the box shows the spread of the middle half (the interquartile range), not the number of values.
Question 7
Aisyah drew the box-and-whisker plot of the five numbers 10, 20, 25, 45, 50 by drawing the box with the median line in its middle and the two whiskers of the same length. What is wrong, and what does the right plot show?
ShowHide solution
She did not draw it to scale. The median, 25, is 5 above but 20 below , so its line is near the left end of the box. The whiskers are 10 long (10 to 20) and 5 long (45 to 50).
Drawn to scale, it shows that the quarter of the values just above the median, from 25 to 45, is spread over far the widest interval.
It is not to scale. The median line belongs near the left of the box, and the left whisker is twice as long as the right.
Question 8
The curve shows the times of the 200 runners in a 10 km run of lessons 3.1 and 3.2. The fastest runner took 41 minutes and the slowest 89 minutes. (a) Write down the quartiles you read from this curve in lesson 3.2, Question 2. (b) Draw the box-and-whisker plot under the curve, on the same scale.
ShowHide solution
(a) From lesson 3.2, Question 2 (read across from 50, 100 and 150, and drawn again below): (a plotted point), median , minutes.
(b)
(a) , median about 67, about 75 minutes (b) the plot 41, 60, 67, 75, 89 drawn above.
Question 9
Give one advantage of a box-and-whisker plot over a cumulative frequency curve, and one disadvantage.
ShowHide solution
Advantage: the median, the interquartile range and the range are seen at a glance, and two or more plots on one scale are easy to compare. With a curve, each must be read with lines and worked out.
Disadvantage: it shows only five numbers. From the curve you can estimate how many values are below any value, or any percentile, such as the 90th; the box-and-whisker plot cannot give these.
For example: advantage, it shows centre and spread at a glance and compares sets easily; disadvantage, it cannot give how many values are below a given value, or other percentiles.
Question 10
For each purpose, choose a cumulative frequency curve or a box-and-whisker plot, with a reason. (a) Comparing the heights of the pupils of Secondary 1, 2, 3 and 4 in a school. (b) Estimating what percentage of 500 households in a town use more than 400 kWh of electricity a month, from a grouped table.
ShowHide solution
(a) Box-and-whisker plots, four of them on one scale: the medians show which level is generally taller and the boxes which level's heights are most alike, at a glance.
(b) A cumulative frequency curve: up from 400 kWh to the curve and across gives about how many households use less; subtract from 500 and divide by 500. A box-and-whisker plot only shows how many lie below its five numbers, and from a grouped table it could not even be drawn without the least and greatest values.
(a) Box-and-whisker plots (b) a cumulative frequency curve
Key Points
- A box-and-whisker plot draws the five-number summary to scale: a box from to with a line at the median, and whiskers to the least and greatest values.
- The box holds about the middle half of the data; its length is the interquartile range. The whole plot is as long as the range.
- Each part (whisker or half-box) holds about a quarter of the data; a longer part means more spread, not more values.
- To compare two sets, draw their plots on one scale and compare the medians (the average) and the interquartile ranges (the spread).
- A plot under a cumulative frequency curve takes its quartiles from the curve; the least and greatest values must be given.
- Use a cumulative frequency curve for how many values lie below a value and for percentiles; use box-and-whisker plots to show and compare centre and spread at a glance.