Skip to the page
Home Campus
Start free

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 Q1Q_1, the median, the upper quartile Q3Q_3 and the greatest value. For the 15 driving times of 3.3 it is 13, 18, 22, 28 and 43 minutes: range 43−13=3043 - 13 = 30 minutes, interquartile range 28−18=1028 - 18 = 10 minutes.
  • From lesson 3.2: on a cumulative frequency curve, Q1Q_1, the median and Q3Q_3 are read across from n4\dfrac{n}{4}, n2\dfrac{n}{2} and 3n4\dfrac{3n}{4}.

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 Q1Q_1 to Q3Q_3, 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, Q1=18Q_1 = 18, median 22, Q3=28Q_3 = 28, 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.

A box-and-whisker plot of the 15 driving times: least 13, lower quartile 18, median 22, upper quartile 28, greatest 43 minutes, with dashed guides down to the scale13182228431020304050Time (minutes)

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.

n=11n = 11: the median is the 6th value, 114. Leave it out. Lower half 98, 101, 105, 108, 112: Q1=105Q_1 = 105. Upper half 117, 120, 125, 131, 140: Q3=125Q_3 = 125.

Five-number summary: 98, 105, 114, 125, 140. A scale from 90 to 150 cm, numbered every 10, covers it.

A box-and-whisker plot of the heights of 11 sunflowers: least 98, lower quartile 105, median 114, upper quartile 125, greatest 140 cm9810511412514090100110120130140150Height (cm)

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?

A box-and-whisker plot of the heights of 60 plants on a scale from 0 to 60 cm, with a light line at every 10 cm0102030405060Height (cm)

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.

The same plot with its five numbers written: 8, 21, 29, 36, 54 cm8212936540102030405060Height (cm)

(b) Range =54−8=46= 54 - 8 = 46 cm. Interquartile range =36−21=15= 36 - 21 = 15 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 (88 to 2121), 8 cm (2121 to 2929), 7 cm (2929 to 3636) and 18 cm (3636 to 5454). 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 pp and qq, and the range.

A box-and-whisker plot, not to scale, with least value 12, lower quartile 20, median p, upper quartile q and greatest value 471220pq47

Solution

The median is pp and the upper quartile qq. The median is 6 more than Q1=20Q_1 = 20: p=20+6=26p = 20 + 6 = 26.

The interquartile range is q−20=13q - 20 = 13, so q=33q = 33.

Range =47−12=35= 47 - 12 = 35 marks.

p=26p = 26, q=33q = 33; 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.

Two box-and-whisker plots on one scale: car times least 13, Q₁ 18, median 22, Q₃ 28, greatest 43 minutes; bus times 16, 17, 18, 21, 30CarBus1015202530354045Time (minutes)

(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 21−17=421 - 17 = 4 minutes, against 28−18=1028 - 18 = 10 minutes by car; the ranges are 30−16=1430 - 16 = 14 and 43−13=3043 - 13 = 30 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): Q1≈83Q_1 \approx 83, median ≈88\approx 88, Q3≈93Q_3 \approx 93 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.

The cumulative frequency curve of the 80 masses with its quartile lines, and under it the box-and-whisker plot on the same scale: least 71, Q₁ about 83, median about 88, Q₃ about 93, greatest 99 kg7075808590951000102030405060708020406071≈ 83≈ 88≈ 9399Mass (kg)Cumulative frequency

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 curveBox-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 95100×2000=1900.\dfrac{95}{100} \times 2000 = 1900\text{.} 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.

A box-and-whisker plot of the hours of 40 pupils: least 4, lower quartile 9, median 12, upper quartile 16, greatest 2549121625051015202530Time (hours)

Range =25−4=21= 25 - 4 = 21 hours. Interquartile range =16−9=7= 16 - 9 = 7 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.

n=12n = 12: median =80+812=80.5.= \dfrac{80 + 81}{2} = 80.5\text{.}

Lower half 69, 72, 75, 77, 78, 80: Q1=75+772=76.Q_1 = \dfrac{75 + 77}{2} = 76\text{.}

Upper half 81, 83, 85, 88, 90, 95: Q3=85+882=86.5.Q_3 = \dfrac{85 + 88}{2} = 86.5\text{.}

A box-and-whisker plot of the 12 times: least 69, lower quartile 76, median 80.5, upper quartile 86.5, greatest 95 seconds697680.586.59565707580859095100Time (s)

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?

A box-and-whisker plot of the marks of 40 pupils on a scale from 30 to 90, with a light line at every 10 marks30405060708090Marks
ShowHide solution

Reading the scale: least 35, Q1=48Q_1 = 48, median 55, Q3=62Q_3 = 62, greatest 80.

The same plot with its five numbers written: 35, 48, 55, 62, 80354855628030405060708090Marks

(a) Median 55 marks; interquartile range 62−48=1462 - 48 = 14 marks.

(b) 48 is Q1Q_1: about three quarters of the 40 pupils, about 30, scored more.

(c) From the median to Q3Q_3 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 aa, bb and cc.

A box-and-whisker plot, not to scale, with least value 15, lower quartile a, median 30, upper quartile b and greatest value c15a30bc
ShowHide solution

Lower quartile: a=30−8=22a = 30 - 8 = 22.

Interquartile range: b−a=18b - a = 18, so b=22+18=40b = 22 + 18 = 40.

Range: c−15=37c - 15 = 37, so c=52c = 52.

a=22a = 22, b=40b = 40, c=52c = 52

Question 5

The waiting times, in minutes, at two food stalls in a hawker centre were recorded over a week. Stall X: least 3, Q1=6Q_1 = 6, median 8, Q3=11Q_3 = 11, 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)

Two box-and-whisker plots on one scale: stall X least 3, Q₁ 6, median 8, Q₃ 11, greatest 20 minutes; stall Y 5, 7, 8, 9, 13Stall XStall Y02468101214161820Waiting time (minutes)

(b) Average: both medians are 8 minutes, so the waits are about the same on average. Spread: stall X has interquartile range 11−6=511 - 6 = 5 minutes and range 17 minutes; stall Y has 9−7=29 - 7 = 2 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 Q1=20Q_1 = 20 but 20 below Q3=45Q_3 = 45, 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).

The plot drawn to scale: least 10, lower quartile 20, median 25, upper quartile 45, greatest 5010202545500102030405060

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.

A cumulative frequency curve of the times of 200 runners, from 40 to 90 minutes, through (40, 0), (50, 12), (60, 50), (70, 120), (80, 172) and (90, 200)405060708090020406080100120140160180200Time (minutes)Cumulative frequency
ShowHide solution

(a) From lesson 3.2, Question 2 (read across from 50, 100 and 150, and drawn again below): Q1=60Q_1 = 60 (a plotted point), median ≈67\approx 67, Q3≈75Q_3 \approx 75 minutes.

(b)

The curve of the 200 runners with its quartile lines, and under it the box-and-whisker plot on the same scale: least 41, Q₁ 60, median about 67, Q₃ about 75, greatest 89 minutes4050607080900204060801001201401601802005060100≈ 67150≈ 754160≈ 67≈ 7589Time (minutes)Cumulative frequency

(a) Q1=60Q_1 = 60, median about 67, Q3Q_3 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 Q1Q_1 to Q3Q_3 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.

Previous lesson3.3 Quartiles and Interquartile Range Next lesson3.5 Standard Deviation

All Secondary 4 (Grade 10) lessons

Home Campus has lessons for Primary 3 to Secondary 4, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 2. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 4 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.