Statistics · Higher

Histograms, cumulative frequency and box plots

Once data are grouped in classes you can still draw them, read the middle and the spread from a running-total curve, and compare two sets of data with a box plot. Learn to draw each graph from a table, and to read a table back from each graph.

Where you will use this: checking that nine in ten cable cuts are the right length, comparing how quickly two plumbers arrive, and reading a wait-time report at a trade counter.

Units and money

Give the unit in your answer: 12 minutes, 45 m, 3 cm.

When you read a value off a graph, give your answer to the nearest whole number. Answers a little either side are accepted, because nobody can read a curve exactly.

Round money to 2 decimal places. If the question says “1 decimal place”, do that.

Warm-up: what do you already know?

Quick warm-up. No marks. A wrong answer only shows where to look.

Skip to the lesson

Work out 4 + 12 + 28 + 22.

  1. Add the numbers in pairs: 4 + 12 and 28 + 22.
  2. Add the two pair totals.
  • That is one too few. Check 4 + 12 = 16 and 28 + 22 = 50.
  • That is 4 + 12 + 28, with the last number missing.

4 + 12 = 16 and 28 + 22 = 50, so the total is 16 + 50 = 66.

Quick recap of the layer below (skip if you are happy)

Find the median of 3, 5, 8, 9, 12, 14, 20.

  1. The numbers are already in order. How many are there?
  2. The middle of 7 numbers is the 4th one.
  • That looks like the mean. The median is the middle value of the ordered list.
  • That looks like the mean rounded. The median is the middle value of the ordered list.

There are 7 values, so the median is the 4th: 3, 5, 8, 9, 12, 14, 20. The median is 9.

Work out 36 ÷ 8.

  1. How many eights are in 36?
  2. 4 × 8 = 32. What is left over?
  • That ignores the remainder. 36 − 32 = 4 is left, which is half of 8.
  • That looks like rounding up. Carry on dividing to get the decimal part.

8 × 4 = 32 and 4 is left over. 4 ÷ 8 = 0.5, so 36 ÷ 8 = 4.5.

1. Cumulative frequency tables

A Frequency table says how many values are in each class. A cumulative frequency table also keeps a running total: how many values you have counted up to the end of each class.

Delivery times of 80 parcels
t (minutes)Frequency
0 < t ≤ 104
10 < t ≤ 2012
20 < t ≤ 3028
30 < t ≤ 4022
40 < t ≤ 5010
50 < t ≤ 604
  1. The first cumulative frequency is the first frequency.
  2. For each next class, add its frequency to the running total.
  3. The last cumulative frequency is the total number of values. Check that it matches.

Key idea: cumulative frequency means “up to and including”. A cumulative frequency of 44 at the class boundary 30 means that 44 values were 30 or less.

Worked example

Work out the cumulative frequency column for the delivery times above.

  1. The first class: 4, so the running total is 4.
  2. Add 12: 4 + 12 = 16.
  3. Add 28: 16 + 28 = 44.
  4. Add 22: 44 + 22 = 66. Add 10: 66 + 10 = 76. Add 4: 76 + 4 = 80.
  5. The last number is 80, the total number of parcels. ✓
Delivery times of 80 parcels
t (minutes)FrequencyCumulative frequency
0 < t ≤ 1044
10 < t ≤ 201216
20 < t ≤ 302844
30 < t ≤ 402266
40 < t ≤ 501076
50 < t ≤ 60480

Now you finish it

A trainee electrician timed how long it took, in minutes, to test each of 40 circuits.

Time to test a circuit
Time (t minutes)FrequencyCumulative frequency
0 < t ≤ 55___
5 < t ≤ 109___
10 < t ≤ 1514___
15 < t ≤ 208___
20 < t ≤ 254___
  1. The first cumulative frequency is ___.
  2. Add the next frequency: ___ + ___ = ___.
  3. Carry on: ___, ___, ___. The last one should be 40.
Check my answer

The cumulative frequencies are 5, 14, 28, 36, 40. The last one is 40, the total number of circuits.

Check your knowledge: cumulative frequency tables

The table shows the number of jobs finished in each time class. Work out the cumulative frequency for the third class.

Jobs finished
ClassFrequency
1st class3
2nd class7
3rd class12
4th class8
  1. Cumulative frequency means a running total.
  2. Add the frequencies of the first three classes.
  • That is the frequency of the third class. The running total adds the earlier classes too.
  • That is the total of all four classes. Stop at the third class.

3 + 7 + 12 = 22. The cumulative frequency for the third class is 22.

In a cumulative frequency table the first three cumulative frequencies are 4, 15 and 32. What is the frequency of the third class?

  1. The cumulative frequency goes up by the frequency each time.
  2. Find the difference between 32 and the value before it.
  • That is the running total. The frequency is how much it went up by.
  • That looks like 32 − 4. Use the value just before: 15.

The cumulative frequency went from 15 to 32, so the frequency of the third class is 32 − 15 = 17.

The table shows delivery times for 80 deliveries. How many took more than 40 minutes?

Delivery times
t (minutes)Frequency
0 < t ≤ 104
10 < t ≤ 2012
20 < t ≤ 3028
30 < t ≤ 4022
40 < t ≤ 5010
50 < t ≤ 604
  1. More than 40 minutes means the last two classes.
  2. Add their frequencies.
  • That is the number of deliveries that took 40 minutes or less. You need the others.
  • That is only the 40 to 50 class. Add the last class as well.

The last two classes have frequencies 10 and 4. 10 + 4 = 14 deliveries took more than 40 minutes.

What does the last number in a cumulative frequency column tell you?

  • The total number of values
  • The biggest value in the data
  • The frequency of the last class, which is always the biggest
  1. Everything has been added up by the time you reach the end.
  2. Think about what a running total ends as.

The last cumulative frequency is the running total of every class. It is the total number of values.

2. Drawing the cumulative frequency graph

Plot the cumulative frequency (up the vertical axis) against the upper class boundary (along the horizontal axis). We use the upper boundary because the running total has only counted the whole class once you get to its end. Start the graph at the lower boundary of the first class with a cumulative frequency of 0, then join the points with a smooth curve. It rises slowly, then quickly, then slowly: a stretched S.

Cumulative frequency graph of delivery timeA graph of cumulative frequency against delivery time. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.010203040506001020304050607080Delivery time (minutes)Cumulative frequency

Key idea: plot at the end of each class, not the middle. (Midpoints are for estimating a mean, not for this graph.)

Worked example

Write down the points to plot for the delivery times table.

  1. Start: (0, 0), because nothing has been counted at the lowest boundary.
  2. First class ends at 10, with running total 4: (10, 4).
  3. Next: (20, 16), (30, 44), (40, 66), (50, 76).
  4. The last class ends at 60, with running total 80: (60, 80).
  5. Join the points with a smooth curve.

Now you finish it

Use the circuit-testing table from section 1 (cumulative frequencies 5, 14, 28, 36, 40). List the points to plot.

  1. Start: (___, ___).
  2. Then (5, ___), (10, ___), (15, ___).
  3. Then (20, ___) and (___, 40).
Check my answer

The points are (0, 0), (5, 5), (10, 14), (15, 28), (20, 36) and (25, 40).

Check your knowledge: drawing the curve

A class is 30 < t ≤ 40, and its cumulative frequency is 66. At what value of t do you plot the point?

  1. Cumulative frequency counts values up to the end of the class.
  2. Which end of the class is that?
  • That is the midpoint. For a cumulative frequency graph, plot at the end of the class.
  • That is the cumulative frequency, which goes on the vertical axis. The question asks for the horizontal value.

The cumulative frequency counts everything up to the end of the class, so plot at the upper boundary, t = 40. The point is (40, 66).

Where do you plot each point on a cumulative frequency graph?

  • At the upper boundary of the class
  • At the midpoint of the class, halfway across
  • At the lower boundary of the class, where it starts
  1. Think about what “up to and including” means.
  2. You have counted the whole class once you reach its end.

A cumulative frequency is a count of all values up to the end of a class. So each point goes at the upper boundary of the class.

The first class is 0 < t ≤ 10. Before you plot the first class, you plot a starting point at t = 0. What cumulative frequency does it have?

  1. At t = 0, how many values have been counted so far?
  2. You have not reached any of the values yet.
  • That is the frequency of the first class, which belongs at t = 10. At t = 0 nothing has been counted.

Nothing has been counted at the very start, so the cumulative frequency is 0. The curve starts at (0, 0).

The table shows waiting times. Work out the cumulative frequency to plot at the upper boundary 15.

Waiting times
w (minutes)Frequency
0 < w ≤ 53
5 < w ≤ 1012
10 < w ≤ 1516
15 < w ≤ 2011
20 < w ≤ 256
25 < w ≤ 302
  1. The upper boundary 15 is the end of the class 10 < w ≤ 15.
  2. Add the frequencies of every class up to and including that one.
  • That is only the frequency of the 10 to 15 class. Add the classes before it too.
  • That is the cumulative frequency at 10, one class too early.

3 + 12 + 16 = 31. The point to plot is (15, 31).

A cumulative frequency curve ends at a height of 60 on the vertical axis. How many values are in the data?

  1. The curve has counted every value by the time it reaches the end.
  2. What is the last cumulative frequency?
  • That looks like dividing by 10. The height at the end is the total itself.

The highest point of the curve is the total, so there are 60 values.

3. Reading the median, quartiles and percentiles

With n values in total, the curve tells you where the key values are. Read across from the height on the vertical axis, then down to the horizontal axis.

  • The Median is at height n ÷ 2.
  • The lower Quartile is at height n ÷ 4 and the upper quartile is at height 3n ÷ 4.
  • The interquartile range (IQR) = upper quartile − lower quartile. It is the spread of the middle half of the data.
  • A percentile splits the data into hundredths. The 90th percentile is at height 90% of n.

Key idea: the height tells you where to read, and the answer is the value on the horizontal axis. To find how many values are below a given value, do it the other way round: go up from the value, then across.

Worked example: median and quartiles

There are 80 delivery times. Estimate the median, the quartiles and the interquartile range.

Reading the median and quartiles from the delivery times graphThe cumulative frequency graph of delivery times. Three pink dashed lines go from the vertical axis across to the curve and then down to the horizontal axis, at heights 20, 40 and 60.010203040506001020304050607080Delivery time (minutes)Cumulative frequency
  1. Median: 80 ÷ 2 = 40. Across at 40 and down: about 29 minutes.
  2. Lower quartile: 80 ÷ 4 = 20. Across at 20 and down: about 22 minutes.
  3. Upper quartile: 3 × 80 ÷ 4 = 60. Across at 60 and down: about 37 minutes.
  4. Interquartile range = 37 − 22 = 15 minutes.

Worked example: how many?

Estimate how many of the 80 deliveries took more than 45 minutes.

Reading the number of deliveries over 45 minutesThe cumulative frequency graph of delivery times. A pink dashed line goes up from 45 on the horizontal axis to the curve and then across to the vertical axis.010203040506001020304050607080Delivery time (minutes)Cumulative frequency
  1. Go up from 45 minutes to the curve and across: about 72.
  2. So about 72 deliveries took 45 minutes or less.
  3. More than 45 minutes: 80 − 72 = 8.

Now you finish it

The graph shows the lengths of 100 cable cuts. Estimate the median and the upper quartile.

Cumulative frequency graph of cable lengthA graph of cumulative frequency against cable length. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.203040506070800102030405060708090100Length of cable (m)Cumulative frequency
  1. The median is at height 100 ÷ 2 = ___. Across and down: about ___ m.
  2. The upper quartile is at height ___. Across and down: about ___ m.
Check my answer

Median: height 50, which reads as about 48 m. Upper quartile: height 75, which reads as about 56 m. (A reading a metre or two either side is fine.)

Check your knowledge: median, quartiles and spread

The graph shows the marks of 60 students in a test. Use it to estimate the median mark. Give your answer to the nearest whole number.

Cumulative frequency graph of test marksA graph of cumulative frequency against test marks. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.20304050607080901000102030405060Test markCumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of test marks. The horizontal axis is test mark and the vertical axis is cumulative frequency, from 0 to 60. A smooth S-shaped curve rises through these plotted points, each written as (test marks, cumulative frequency): (20, 0), (30, 2), (40, 8), (50, 18), (60, 32), (70, 44), (80, 53), (90, 58), (100, 60). Read other values by going between the points along the smooth curve.

  1. Half of 60 students is how many? Find that height on the vertical axis.
  2. Go across to the curve, then down to the horizontal axis.
  • That is the height on the vertical axis, which is half of 60. The median is the mark you read down on the horizontal axis.

The median is at height 60 ÷ 2 = 30. Across to the curve and down: the median is about 59 marks. Any value within a mark or two of this is accepted.

Use the graph of the 60 test marks to estimate the lower quartile. Give your answer to the nearest whole number.

Cumulative frequency graph of test marksA graph of cumulative frequency against test marks. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.20304050607080901000102030405060Test markCumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of test marks. The horizontal axis is test mark and the vertical axis is cumulative frequency, from 0 to 60. A smooth S-shaped curve rises through these plotted points, each written as (test marks, cumulative frequency): (20, 0), (30, 2), (40, 8), (50, 18), (60, 32), (70, 44), (80, 53), (90, 58), (100, 60). Read other values by going between the points along the smooth curve.

  1. The lower quartile is a quarter of the way up: what is 60 ÷ 4?
  2. Read across at that height, then down.
  • That is the height on the vertical axis. Read the mark on the horizontal axis.

A quarter of 60 is 15. Across at 15 and down: the lower quartile is about 47 marks.

Use the graph of the 60 test marks to estimate the upper quartile. Give your answer to the nearest whole number.

Cumulative frequency graph of test marksA graph of cumulative frequency against test marks. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.20304050607080901000102030405060Test markCumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of test marks. The horizontal axis is test mark and the vertical axis is cumulative frequency, from 0 to 60. A smooth S-shaped curve rises through these plotted points, each written as (test marks, cumulative frequency): (20, 0), (30, 2), (40, 8), (50, 18), (60, 32), (70, 44), (80, 53), (90, 58), (100, 60). Read other values by going between the points along the smooth curve.

  1. The upper quartile is three quarters of the way up. What is 3 × 60 ÷ 4?
  2. Read across at that height, then down.
  • That is the height on the vertical axis. Read the mark on the horizontal axis.

Three quarters of 60 is 45. Across at 45 and down: the upper quartile is about 71 marks.

The graph shows the lengths of 100 cable cuts. Estimate the interquartile range. Give your answer to the nearest whole number.

Cumulative frequency graph of cable lengthA graph of cumulative frequency against cable length. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.203040506070800102030405060708090100Length of cable (m)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of cable length. The horizontal axis is length of cable (m) and the vertical axis is cumulative frequency, from 0 to 100. A smooth S-shaped curve rises through these plotted points, each written as (cable length, cumulative frequency): (20, 0), (30, 6), (40, 24), (50, 58), (60, 86), (70, 96), (80, 100). Read other values by going between the points along the smooth curve.

  1. You need the lower and upper quartiles. They are at heights 25 and 75.
  2. Read each one on the horizontal axis, then subtract: upper minus lower.
  • That looks like adding the two quartiles. The interquartile range is upper minus lower.
  • That is the median height, not a spread. Subtract the quartiles instead.

Lower quartile (height 25): about 40 m. Upper quartile (height 75): about 56 m. Interquartile range = 56 − 40 = 16 m, give or take a metre or two.

A cumulative frequency graph has 120 values. At what height on the vertical axis do you read the median?

  • 60
  • 120
  • 30
  1. The median is the middle value.
  2. Find half of 120.

The median is the middle value, so read at half of 120, which is 60.

Check your knowledge: percentiles and counting values

Use the delivery times graph to estimate how many of the 80 deliveries took 25 minutes or less.

Cumulative frequency graph of delivery timeA graph of cumulative frequency against delivery time. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.010203040506001020304050607080Delivery time (minutes)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of delivery time. The horizontal axis is delivery time (minutes) and the vertical axis is cumulative frequency, from 0 to 80. A smooth S-shaped curve rises through these plotted points, each written as (delivery time, cumulative frequency): (0, 0), (10, 4), (20, 16), (30, 44), (40, 66), (50, 76), (60, 80). Read other values by going between the points along the smooth curve.

  1. Find 25 on the horizontal axis and go up to the curve.
  2. Then go across to the vertical axis and read the cumulative frequency.
  • That is the time you started from. Read the cumulative frequency on the vertical axis.

Up from 25 minutes to the curve, then across: about 30 deliveries took 25 minutes or less.

Use the graph of the 60 test marks to estimate how many students scored more than 60 marks.

Cumulative frequency graph of test marksA graph of cumulative frequency against test marks. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.20304050607080901000102030405060Test markCumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of test marks. The horizontal axis is test mark and the vertical axis is cumulative frequency, from 0 to 60. A smooth S-shaped curve rises through these plotted points, each written as (test marks, cumulative frequency): (20, 0), (30, 2), (40, 8), (50, 18), (60, 32), (70, 44), (80, 53), (90, 58), (100, 60). Read other values by going between the points along the smooth curve.

  1. First read how many scored 60 or fewer, going up from 60.
  2. Then take that away from the total of 60 students.
  • That is how many scored 60 or fewer. The question asks for more than 60.

About 32 students scored 60 or fewer. So the number who scored more than 60 is 60 − 32 = 28.

90% of the 100 cable lengths are shorter than a certain length. Use the graph to estimate that length (the 90th percentile), to the nearest whole number of metres.

Cumulative frequency graph of cable lengthA graph of cumulative frequency against cable length. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.203040506070800102030405060708090100Length of cable (m)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of cable length. The horizontal axis is length of cable (m) and the vertical axis is cumulative frequency, from 0 to 100. A smooth S-shaped curve rises through these plotted points, each written as (cable length, cumulative frequency): (20, 0), (30, 6), (40, 24), (50, 58), (60, 86), (70, 96), (80, 100). Read other values by going between the points along the smooth curve.

  1. 90% of 100 is how many values? Find that height on the vertical axis.
  2. Go across to the curve, then down.
  • That is the height on the vertical axis. Read down to the horizontal axis for the length.

90% of 100 is 90. Across at 90 and down: the 90th percentile is about 63 m.

Use the waiting times graph (50 people) to estimate the 20th percentile, to the nearest whole number of minutes.

Cumulative frequency graph of waiting timeA graph of cumulative frequency against waiting time. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.05101520253001020304050Waiting time (minutes)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of waiting time. The horizontal axis is waiting time (minutes) and the vertical axis is cumulative frequency, from 0 to 50. A smooth S-shaped curve rises through these plotted points, each written as (waiting time, cumulative frequency): (0, 0), (5, 3), (10, 15), (15, 31), (20, 42), (25, 48), (30, 50). Read other values by going between the points along the smooth curve.

  1. 20% of 50 is how many people?
  2. Go across at that height to the curve, then down.
  • That looks like using 20 as the height. 20% of 50 is a different number.
  • That is the height you read across at. Read the time on the horizontal axis.

20% of 50 is 10. Across at 10 and down: the 20th percentile is about 8 minutes.

4. Box plots

A box plot shows five numbers on one scale: the smallest value, the lower quartile, the median, the upper quartile and the largest value. The box runs from the lower quartile to the upper quartile, with a line at the median. The lines out of the box (the whiskers) go to the smallest and largest values. Each quarter of the data lies between two neighbouring numbers.

A box plot of eleven valuesA box plot drawn above a scale from 0 to 25. A box with a line inside it has a whisker out of each end.0510152025Value

From a list. Put the values in order. With 7 or 11 values, the median is the middle value, the lower quartile is the middle value of the lower half, and the upper quartile is the middle value of the upper half.

Key idea: the box shows the middle half of the data, and its width is the interquartile range. The range is the distance between the ends of the whiskers.

Worked example: from a list

Find the five numbers for a box plot of 4, 6, 7, 9, 10, 12, 13, 15, 18, 19, 23.

  1. There are 11 values, already in order. The smallest is 4 and the largest is 23.
  2. The median is the 6th value: 12.
  3. The lower half is 4, 6, 7, 9, 10. Its middle (3rd) value is 7, so the lower quartile is 7.
  4. The upper half is 13, 15, 18, 19, 23. Its middle value is 18, so the upper quartile is 18.
  5. The five numbers are 4, 7, 12, 18, 23, as in the box plot above.

Worked example: from the curve

Use the delivery times graph (80 values) to draw a box plot. The quickest delivery was 3 minutes and the slowest was 58 minutes.

Box plot of delivery timesA box plot of delivery times in minutes, drawn above a scale from 0 to 60. A box with a line inside it has a whisker out of each end.0102030405060Delivery time (minutes)
  1. Median: about 29. Lower quartile: about 22. Upper quartile: about 37 (read from the curve in section 3).
  2. Smallest 3 and largest 58 come from the question.
  3. Draw the box from 22 to 37, a line at 29, and whiskers to 3 and 58.

Now you finish it

Find the five numbers for a box plot of 12, 5, 8, 3, 11, 6, 14.

  1. In order: 3, 5, 6, ___, 11, 12, 14.
  2. The median is the 4th value: ___.
  3. The lower quartile is the middle of 3, 5, 6, which is ___. The upper quartile is the middle of 11, 12, 14, which is ___.
Check my answer

In order: 3, 5, 6, 8, 11, 12, 14. The five numbers are 3, 5, 8, 12, 14: smallest 3, lower quartile 5, median 8, upper quartile 12 and largest 14.

Check your knowledge: box plots

Find the lower quartile of 12, 5, 8, 3, 11, 6, 9.

  1. Put the seven numbers in order first.
  2. The median is the 4th. The lower quartile is the middle of the three below it.
  • That is the median, the 4th value. The lower quartile is the middle of the lower half.
  • That is the smallest value. The lower quartile is the 2nd value.

In order: 3, 5, 6, 8, 9, 11, 12. The median is 8. The lower half is 3, 5, 6, and its middle is 5. The lower quartile is 5.

Find the interquartile range of 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 20.

  1. There are 11 values. The median is the 6th. The quartiles are the 3rd and the 9th.
  2. Interquartile range = upper quartile minus lower quartile.
  • That is the range, 20 − 2. The interquartile range uses the quartiles.
  • That is 14 + 5. Subtract the quartiles, do not add them.

The lower quartile is the 3rd value, 5. The upper quartile is the 9th value, 14. Interquartile range = 14 − 5 = 9.

The box plot shows the lengths of cable offcuts. Work out the interquartile range, in metres.

Box plot of cable lengthsA box plot drawn above a scale from 10 to 90 metres. A box has a line inside it, and a line, called a whisker, reaches out from each end of the box. Grid lines help you read the values.102030405060708090Length of cable (m)

Text version of the picture, for people who cannot see it (it may give away the answer): a box plot of cable lengths, with a scale labelled length of cable (m). Minimum 20, lower quartile 35, median 45, upper quartile 55, maximum 80. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  1. The box runs from the lower quartile to the upper quartile.
  2. Read the two ends of the box and subtract.
  • That is the range, from the end of one whisker to the other. The interquartile range is the width of the box.
  • That is the median, the line inside the box.

The box runs from 35 m to 55 m. Interquartile range = 55 − 35 = 20 m.

Use the same box plot to work out the range of the lengths, in metres.

Box plot of cable lengthsA box plot drawn above a scale from 10 to 90 metres. A box has a line inside it, and a line, called a whisker, reaches out from each end of the box. Grid lines help you read the values.102030405060708090Length of cable (m)

Text version of the picture, for people who cannot see it (it may give away the answer): a box plot of cable lengths, with a scale labelled length of cable (m). Minimum 20, lower quartile 35, median 45, upper quartile 55, maximum 80. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  1. The range is the whole spread, from the smallest to the biggest.
  2. Read the two ends of the whiskers.
  • That is the interquartile range, the width of the box. The range uses the whiskers.

The whiskers go from 20 m to 80 m. Range = 80 − 20 = 60 m.

There are 80 values in a data set. How many of them lie between the lower quartile and the upper quartile?

  1. The quartiles split the data into four equal quarters.
  2. The box covers the two middle quarters.
  • That is one quarter. The box covers two quarters.
  • That is three quarters. The box covers the middle two.

Each quarter is 80 ÷ 4 = 20 values. The box covers two quarters, so 2 × 20 = 40 values.

5. Outliers

An Outlier is a value far away from the rest. One common rule says a value is an outlier if it is more than 1.5 × the interquartile range above the upper quartile, or more than 1.5 × the interquartile range below the lower quartile. In an exam you will be told the rule to use. On a box plot an outlier is shown as a cross, and the whisker stops at the biggest or smallest value that is not an outlier.

A box plot with two crossesA box plot drawn above a scale from 0 to 90. A box with a line inside it has a whisker out of each end. Two separate crosses sit beyond the whiskers, one on each side.0102030405060708090Time (minutes)

Key idea: the upper limit is upper quartile + 1.5 × IQR, and the lower limit is lower quartile − 1.5 × IQR. A value beyond a limit is an outlier.

Worked example

The quartiles are 30 and 46. Are 5 and 82 outliers (rule: 1.5 × IQR)?

  1. IQR = 46 − 30 = 16, and 1.5 × 16 = 24.
  2. Lower limit: 30 − 24 = 6. Upper limit: 46 + 24 = 70.
  3. 5 is less than 6, so it is an outlier. 82 is more than 70, so it is an outlier too.

Now you finish it

The quartiles are 12 and 20. Is 35 an outlier (rule: 1.5 × IQR)?

  1. IQR = ___ − ___ = ___, and 1.5 × ___ = ___.
  2. Upper limit = 20 + ___ = ___.
  3. 35 is ___ than the limit, so it ___ an outlier.
Check my answer

IQR = 20 − 12 = 8 and 1.5 × 8 = 12. Upper limit = 20 + 12 = 32. 35 is more than 32, so it is an outlier.

Check your knowledge: outliers

The lower quartile is 18 and the upper quartile is 30. A value is an outlier if it is more than 1.5 × the interquartile range above the upper quartile. Work out the upper limit.

  1. Find the interquartile range first.
  2. Work out 1.5 times it, then add it to the upper quartile.
  • That is 1.5 × 12, the extra bit. Add it to the upper quartile.
  • That looks like 30 + half of the IQR. Use 1.5 times the IQR.

Interquartile range = 30 − 18 = 12. 1.5 × 12 = 18. Upper limit = 30 + 18 = 48.

The lower quartile is 40 and the upper quartile is 60. A value is an outlier if it is more than 1.5 × the interquartile range below the lower quartile. Work out the lower limit.

  1. Interquartile range = upper quartile minus lower quartile.
  2. Work out 1.5 times it, then take it away from the lower quartile.
  • That adds the 30 instead of taking it away. The lower limit is below the lower quartile.
  • That is the interquartile range. Work out 1.5 times it first.

Interquartile range = 60 − 40 = 20. 1.5 × 20 = 30. Lower limit = 40 − 30 = 10.

The lower quartile is 40 and the upper quartile is 60. A value is an outlier if it is more than 1.5 × the interquartile range above the upper quartile. Is a value of 95 an outlier?

  • Yes, because 95 is above the upper limit of 90
  • No, because 95 is less than the upper quartile plus the interquartile range
  • No, because it is closer to the upper quartile than to the maximum
  1. Interquartile range = 60 − 40 = 20.
  2. Upper limit = 60 + 1.5 × 20. Compare it with 95.

Interquartile range = 20. 1.5 × 20 = 30. Upper limit = 60 + 30 = 90. Since 95 is more than 90, it is an outlier.

One value in a data set is an outlier. What happens to the median and the mean if it is removed?

  • The median hardly changes, but the mean can
  • The median and the mean change by the same amount
  • Neither the median nor the mean changes at all
  1. Which average uses every value when it is worked out?
  2. Which one only looks at the middle of an ordered list?

The mean adds every value, so an outlier pulls it. The median only needs the middle of the ordered list, so it hardly moves.

6. Comparing two distributions

To compare two sets of data, use one average and one spread, and write your comparison in words, in the context of the question. Use the median for the average and the interquartile range for the spread (outliers change the range a lot).

Key idea: a lower median means quicker (or smaller) on average. A smaller interquartile range means more consistent. Always say it in the context: “Plumber A is quicker on average and more consistent.”

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Worked example

Compare the two plumbers’ arrival times in the box plots.

  1. Medians: A is 20 minutes and B is 25 minutes. A is quicker on average, by 5 minutes.
  2. Interquartile ranges: A is 30 − 15 = 15 minutes and B is 45 − 15 = 30 minutes.
  3. A has the smaller interquartile range, so A’s arrival times are more consistent.

Now you finish it

Boiler A has a median repair time of 40 minutes and an IQR of 10 minutes. Boiler B has a median of 55 minutes and an IQR of 25 minutes. Compare them.

  1. The medians are 40 and ___, so Boiler ___ is quicker on average.
  2. The IQRs are 10 and ___, so Boiler ___ is more ___.
Check my answer

Boiler A has the lower median (40 against 55), so it is quicker to repair on average. Boiler A also has the smaller IQR (10 against 25), so its repair times are more consistent.

Check your knowledge: comparing

The box plots show the time two plumbers take to arrive. How much longer is the median time for Plumber B than for Plumber A, in minutes?

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Text version of the picture, for people who cannot see it (it may give away the answer): two box plots of arrival times, on the same scale, labelled time to arrive (minutes). Plumber A: minimum 5, lower quartile 15, median 20, upper quartile 30, maximum 40. Plumber B: minimum 5, lower quartile 15, median 25, upper quartile 45, maximum 60. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  1. The median is the line inside each box.
  2. Read both medians and subtract.
  • That is the median of Plumber B. Subtract the median of Plumber A from it.
  • That is the interquartile range of Plumber A. Use the lines inside the boxes.

The median for A is 20 minutes and for B is 25 minutes. 25 − 20 = 5 minutes.

Use the box plots to work out the interquartile range for Plumber B, in minutes.

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Text version of the picture, for people who cannot see it (it may give away the answer): two box plots of arrival times, on the same scale, labelled time to arrive (minutes). Plumber A: minimum 5, lower quartile 15, median 20, upper quartile 30, maximum 40. Plumber B: minimum 5, lower quartile 15, median 25, upper quartile 45, maximum 60. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  1. The box for B runs from the lower quartile to the upper quartile.
  2. Subtract the two ends of the box.
  • That is the range, 60 − 5. The interquartile range is the width of the box.
  • That is the median minus the lower quartile. Use the whole width of the box.

The box for B runs from 15 to 45. Interquartile range = 45 − 15 = 30 minutes.

Which statement compares the two plumbers properly?

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Text version of the picture, for people who cannot see it (it may give away the answer): two box plots of arrival times, on the same scale, labelled time to arrive (minutes). Plumber A: minimum 5, lower quartile 15, median 20, upper quartile 30, maximum 40. Plumber B: minimum 5, lower quartile 15, median 25, upper quartile 45, maximum 60. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  • A is quicker and more consistent: its median and IQR are smaller
  • B is quicker, because its whisker reaches the furthest on the scale
  • They are the same, because both of them start at 5 minutes exactly
  1. Compare the medians for the typical time. Which is lower?
  2. Compare the interquartile ranges for the spread. Which box is narrower?

A has the lower median (20 against 25), so A is quicker on average. A also has the smaller interquartile range (15 against 30), so A is more consistent.

Fitter A has a median job time of 34 minutes with an interquartile range of 8 minutes. Fitter B has a median of 29 minutes with an interquartile range of 15 minutes. Who is more consistent?

  • Fitter A, because the interquartile range is smaller
  • Fitter B, because the median is lower
  • Neither, because you cannot tell from these two numbers
  1. Consistency is about spread, not about the average.
  2. A smaller interquartile range means the middle half of the times are closer together.

Fitter A has the smaller interquartile range (8 against 15), so A is more consistent. B is quicker on average (29 against 34), but less predictable.

7. Histograms with different class widths Higher

A Histogram looks like a bar chart, but the bars touch and the classes can have different widths. The height of a bar is the frequency density, so the area of the bar shows the frequency.

frequency density = frequency ÷ class width

frequency = frequency density × class width (the area of the bar)

Waiting times at a trade counter
t (minutes)FrequencyClass widthFrequency density
0 < t ≤ 1015101.5
10 < t ≤ 2040104
20 < t ≤ 4070203.5
40 < t ≤ 6030201.5
60 < t ≤ 10020400.5
Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Key idea: in a histogram, area means frequency. To find a frequency from a bar, multiply its height by its width. For part of a bar, multiply the height by the width of that part.

Worked example: drawing

Work out the bar heights (the frequency densities) for the waiting times table.

Waiting times at a trade counter
t (minutes)FrequencyClass widthFrequency density
0 < t ≤ 101510?
10 < t ≤ 204010?
20 < t ≤ 407020?
40 < t ≤ 603020?
60 < t ≤ 1002040?
  1. 0 to 10: width 10, so 15 ÷ 10 = 1.5.
  2. 10 to 20: width 10, so 40 ÷ 10 = 4.
  3. 20 to 40: width 20, so 70 ÷ 20 = 3.5.
  4. 40 to 60: width 20, so 30 ÷ 20 = 1.5. Then 60 to 100: width 40, so 20 ÷ 40 = 0.5.
  5. Draw each bar with that height and the width of its class, with no gaps.

Now you finish it

Work out the bar heights (the frequency densities) for the cable lengths table.

Cable lengths tested
l (m)FrequencyClass widthFrequency density
0 < l ≤ 5105___
5 < l ≤ 10255___
10 < l ≤ 203010___
20 < l ≤ 301510___
30 < l ≤ 501020___
  1. 0 to 5: 10 ÷ 5 = ___.
  2. 5 to 10: 25 ÷ ___ = ___.
  3. 10 to 20: 30 ÷ ___ = ___. Then 20 to 30 and 30 to 50.
Check my answer

The heights are 10 ÷ 5 = 2, 25 ÷ 5 = 5, 30 ÷ 10 = 3, 15 ÷ 10 = 1.5 and 10 ÷ 20 = 0.5.

Check your knowledge: frequency density Higher

A class has frequency 24 and class width 8. Work out the frequency density.

  1. Frequency density = frequency ÷ class width.
  2. Divide 24 by 8.
  • That multiplies. Frequency density is frequency divided by class width.
  • That adds 24 + 8. Divide instead.

Frequency density = 24 ÷ 8 = 3.

The class 20 < l ≤ 50 has frequency 45. Work out the frequency density.

  1. First find the class width: upper boundary minus lower boundary.
  2. Then divide the frequency by the class width.
  • That divides by 20, the lower boundary. The class width is 50 − 20.
  • That divides by 50, the upper boundary. Use the width, 50 − 20.

Class width = 50 − 20 = 30. Frequency density = 45 ÷ 30 = 1.5.

The class 5 < x ≤ 15 has frequency 36. Work out the frequency density.

  1. What is the width of the class 5 to 15?
  2. Frequency ÷ class width.
  • That divides by 5, the lower boundary. The class width is 15 − 5 = 10.
  • That divides by 15, the upper boundary. Use the width.

Class width = 15 − 5 = 10. Frequency density = 36 ÷ 10 = 3.6.

Why do we use frequency density, not frequency, for the heights of the bars when the class widths are different?

  • Class widths differ, so wide bars would look too big
  • It makes every bar taller so that the graph is easier to read
  • Frequency is too hard to read directly from the height of a bar
  1. Imagine one class twice as wide as another with the same frequency.
  2. Which bar would look as if it held more?

Wider classes catch more values just because they are wider. Frequency density divides by the width, so the area of each bar (not its height) shows the frequency.

Check your knowledge: reading a histogram Higher

The histogram shows how long customers waited at a trade counter. Work out the frequency of the class 10 to 20 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. Read the height of the bar for 10 to 20. That is the frequency density.
  2. Frequency = frequency density × class width.
  • That is the height of the bar, the frequency density. Multiply by the class width.
  • That is the class width. Multiply the height by it.

The bar for 10 to 20 has height 4, and the class width is 10. Frequency = 4 × 10 = 40.

Use the same histogram to work out the frequency of the class 20 to 40 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. Read the height of the bar for 20 to 40.
  2. Multiply it by the class width.
  • That is the height of the bar. Multiply it by the class width.
  • That multiplies 3.5 by 2. Use the class width 40 − 20.

The height is 3.5 and the class width is 40 − 20 = 20. Frequency = 3.5 × 20 = 70.

Use the same histogram to work out how many customers waited less than 20 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. Less than 20 minutes means the first two bars.
  2. Work out each frequency (height × width), then add.
  • That is only the 10 to 20 bar. Add the 0 to 10 bar too.
  • That adds the heights. Multiply each by its own class width first.

0 to 10: 1.5 × 10 = 15. 10 to 20: 4 × 10 = 40. Total = 15 + 40 = 55 customers.

Use the same histogram. Which class is the modal class?

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  • 10 to 20 minutes
  • 20 to 40 minutes, because it holds the most customers
  • 0 to 10 minutes, because it is the first class listed
  1. In a histogram, the height of a bar is the frequency density.
  2. The modal class is the one with the tallest bar.

The tallest bar is the one from 10 to 20, with height 4. The modal class is 10 to 20 minutes. (The 20 to 40 class has the most customers, but its bar is wider, so it is lower.)

Use the same histogram to work out the total number of customers.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. Find the frequency of every bar.
  2. Add the five frequencies.
  • That adds the heights of the bars. Multiply each height by its class width first.

15 + 40 + 70 + 30 + 20 = 175. The frequencies are 1.5 × 10, 4 × 10, 3.5 × 20, 1.5 × 20 and 0.5 × 40.

Check your knowledge: estimating from part of a bar Higher

Use the histogram of waiting times to estimate how many customers waited between 10 and 15 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. The bar for 10 to 20 has height 4. How wide is the part from 10 to 15?
  2. Estimate = height × the width of the part you want.
  • That is the whole bar, 10 to 20. You only want half of it.
  • That is the height, not a count. Multiply by the width 5.

The part from 10 to 15 is 5 minutes wide and the height is 4. Estimate = 4 × 5 = 20 customers.

Use the histogram of waiting times to estimate how many customers waited between 30 and 50 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. 30 to 50 crosses two bars: 20 to 40 and 40 to 60.
  2. Find the part of each bar (height × width), then add.
  • That uses both whole bars. Only the part from 30 to 50 is wanted.
  • That is the whole 20 to 40 bar. Use only 30 to 40, then add the 40 to 50 part.

30 to 40: 3.5 × 10 = 35. 40 to 50: 1.5 × 10 = 15. Total = 35 + 15 = 50 customers.

The histogram shows the lengths of cable tested. Estimate how many lengths were between 5 m and 15 m.

Histogram of cable lengths testedA histogram of cable lengths tested in metres, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.051020305000.511.522.533.544.555.56Length of cable tested (m)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of cable lengths tested. The horizontal axis is length of cable tested (m) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 5, height 2; 5 to 10, height 5; 10 to 20, height 3; 20 to 30, height 1.5; 30 to 50, height 0.5.

  1. 5 to 15 covers all of the bar from 5 to 10, and half of the bar from 10 to 20.
  2. Find each part (height × width), then add.
  • That uses the whole bar from 10 to 20. Only 10 to 15 is wanted.
  • That is only the 5 to 10 bar. Add the 10 to 15 part too.

5 to 10: 5 × 5 = 25. 10 to 15: 3 × 5 = 15. Total = 25 + 15 = 40 lengths.

Flip it: run it backwards

So far you drew each graph from a table. Now go the other way: read a table back from the graph.

Forwards

Forwards: frequency to bar heightA bar from 10 to 20 on a time axis. A table box says 40 customers and the height of the bar is a question mark.102040?frequency ÷ widthgives the height

Table: 40 waited 10 to 20 minutes. Class width 10.

Frequency density = 40 ÷ 10 = 4, so the bar is 4 tall.

Backwards

Backwards: bar height to frequencyA bar from 10 to 20 on a time axis with a height of 4. The area of the bar, the number of customers, is a question mark.1020?4height × widthgives the area

Graph: a bar from 10 to 20 is 4 tall. How many waited 10 to 20 minutes?

Frequency = 4 × 10 = 40 customers (the area of the bar).

Key idea: a histogram bar’s area is the frequency. A cumulative frequency curve rises by the frequency of each class. So the table can be rebuilt from either graph.

Worked example

The curve for the delivery times rises from 16 at 20 minutes to 44 at 30 minutes. How many deliveries took between 20 and 30 minutes?

  1. The running total went from 16 to 44.
  2. The frequency is the rise: 44 − 16 = 28.
  3. So 28 deliveries are in the class 20 < t ≤ 30.

Now you finish it

A histogram bar has a class width of 6 and a frequency density of 2.5. How many values does it show?

  1. Frequency = height × width.
  2. Frequency = ___ × ___ = ___.
Check my answer

2.5 × 6 = 15 values.

Check your knowledge: running it backwards

Backwards: the histogram shows the cable lengths tested. Work out the frequency of the class 30 to 50 m.

Histogram of cable lengths testedA histogram of cable lengths tested in metres, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.051020305000.511.522.533.544.555.56Length of cable tested (m)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of cable lengths tested. The horizontal axis is length of cable tested (m) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 5, height 2; 5 to 10, height 5; 10 to 20, height 3; 20 to 30, height 1.5; 30 to 50, height 0.5.

  1. Read the height of the bar for 30 to 50.
  2. Frequency = height × class width.
  • That is the height, which is the frequency density. Multiply by the class width.

The height is 0.5 and the class width is 50 − 30 = 20. Frequency = 0.5 × 20 = 10.

A bar in a histogram has a class width of 8 and a frequency density of 2.25. How many values does it show?

  1. The area of a histogram bar is the frequency.
  2. Multiply the height by the width.
  • That adds 8 + 2.25. Multiply instead.
  • That divides 8 by 2.25. Multiply height by width.

Frequency = frequency density × class width = 2.25 × 8 = 18.

Backwards from the curve: the cumulative frequency graph of the cable lengths shows 24 lengths of 40 m or less and 58 lengths of 50 m or less (read from the points). How many lengths are in the class 40 < l ≤ 50?

Cumulative frequency graph of cable lengthA graph of cumulative frequency against cable length. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.203040506070800102030405060708090100Length of cable (m)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of cable length. The horizontal axis is length of cable (m) and the vertical axis is cumulative frequency, from 0 to 100. A smooth S-shaped curve rises through these plotted points, each written as (cable length, cumulative frequency): (20, 0), (30, 6), (40, 24), (50, 58), (60, 86), (70, 96), (80, 100). Read other values by going between the points along the smooth curve.

  1. Cumulative frequency is a running total. The class frequency is the amount it goes up by.
  2. Subtract the two cumulative frequencies.
  • That is the running total at 50 m, not the class on its own. Subtract the total at 40 m.

The running total went from 24 to 58, so the class frequency is 58 − 24 = 34.

The box plot for 80 delivery times shows an upper quartile of 37 minutes. How many deliveries took 37 minutes or less?

  1. The upper quartile has three quarters of the values below it.
  2. Find three quarters of 80.
  • That is the time, not the number of deliveries. Work out three quarters of 80.
  • That is the number above the upper quartile. The question asks how many are at or below it.

Three quarters of the 80 deliveries are at or below the upper quartile. 80 ÷ 4 = 20, and 3 × 20 = 60.

Spot the mistake

Finding an error in someone else’s working helps you learn. For each one, decide what went wrong.

Ali says: to plot a cumulative frequency graph, I plot each cumulative frequency at the midpoint of its class. What went wrong?

  • Points should go at the upper boundary, not the midpoint
  • Nothing is wrong, because midpoints are always right for graphs
  • They should go at the lower boundary of each class, where it starts
  1. What does the running total count up to?
  2. Where in the class is the count complete?

Each cumulative frequency counts the values up to the end of its class, so it is plotted at the upper class boundary.

Bea says: there are 80 deliveries, so the median is 40 minutes. What went wrong?

  • The median is the time at height 40, not the value 40
  • It should be half of 40, which is 20
  • Nothing is wrong, because the median is always half the total
  1. Which axis shows the number of deliveries and which shows the time?
  2. Go across from 40 to the curve and down.

40 is the height halfway up, which tells you where to read. You then go across to the curve and down to find the time on the horizontal axis.

Cal says: in a histogram a bar has a class width of 20 and a height of 3.5, so its frequency is 3.5. What went wrong?

  • Height is frequency density, so frequency is height × width
  • The bars are fine, because a histogram always shows frequency as height
  • The wide bar should be shorter, because it is wide
  1. Which part of a histogram bar shows the frequency?
  2. Use the area: height × width.

The height is the frequency density. The frequency is the area: 3.5 × 20 = 70, not 3.5.

Dee says: the lower quartile is 18 and the upper quartile is 42, so the interquartile range is 42. What went wrong?

  • It is upper quartile minus lower quartile: 42 − 18 = 24
  • The interquartile range is the biggest value in the data, so they are right
  • The interquartile range is the middle value of the data, which is 30
  1. Is the interquartile range a value in the data or a spread?
  2. It is the width of the box in a box plot.

Interquartile range = upper quartile − lower quartile = 42 − 18 = 24.

Check your knowledge: mixed review

Mixed up on purpose, like a real paper. Work out which method fits.

A cumulative frequency table has frequencies 6, 14, 20 in its first three classes. What is the cumulative frequency of the third class?

  1. Cumulative frequency is a running total.
  2. Add the three frequencies.
  • That is the frequency of the third class. Add the earlier classes too.

6 + 14 + 20 = 40.

The class 0 < x ≤ 4 has frequency 10. Work out the frequency density.

  1. Class width = 4 − 0.
  2. Frequency density = frequency ÷ class width.
  • That multiplies. Divide the frequency by the class width.

Class width = 4. Frequency density = 10 ÷ 4 = 2.5.

The cumulative frequency graph of waiting times shows 50 people. Estimate the upper quartile, to the nearest whole number of minutes.

Cumulative frequency graph of waiting timeA graph of cumulative frequency against waiting time. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.05101520253001020304050Waiting time (minutes)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of waiting time. The horizontal axis is waiting time (minutes) and the vertical axis is cumulative frequency, from 0 to 50. A smooth S-shaped curve rises through these plotted points, each written as (waiting time, cumulative frequency): (0, 0), (5, 3), (10, 15), (15, 31), (20, 42), (25, 48), (30, 50). Read other values by going between the points along the smooth curve.

  1. The upper quartile is three quarters of 50. What is that?
  2. Go across at that height to the curve, then down.
  • That is the height on the vertical axis. Read the time on the horizontal axis.

Three quarters of 50 is 37.5. Across at 37.5 and down: the upper quartile is about 18 minutes.

A box plot has a lower quartile of 14 and an upper quartile of 29. Work out the interquartile range.

  1. Interquartile range = upper quartile − lower quartile.
  2. Subtract the two.
  • That adds the quartiles. Subtract instead.

29 − 14 = 15.

A value is an outlier if it is more than 1.5 × the interquartile range above the upper quartile. The upper quartile is 60 and the interquartile range is 20. What is the upper limit?

  1. Work out 1.5 × 20 first.
  2. Add it to the upper quartile.
  • That adds only the interquartile range. Use 1.5 times it.
  • That is 1.5 × 20, the extra bit. Add it to 60.

1.5 × 20 = 30. Upper limit = 60 + 30 = 90.

Check your knowledge: on the job

Real jobs, real numbers.

An electrician’s wholesaler cut 100 lengths of cable. Use the graph to estimate how many of the lengths were longer than 60 m.

Cumulative frequency graph of cable lengthA graph of cumulative frequency against cable length. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.203040506070800102030405060708090100Length of cable (m)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of cable length. The horizontal axis is length of cable (m) and the vertical axis is cumulative frequency, from 0 to 100. A smooth S-shaped curve rises through these plotted points, each written as (cable length, cumulative frequency): (20, 0), (30, 6), (40, 24), (50, 58), (60, 86), (70, 96), (80, 100). Read other values by going between the points along the smooth curve.

  1. Go up from 60 on the horizontal axis to the curve, then across.
  2. That reading is how many were 60 m or shorter. Take it from 100.
  • That is how many were 60 m or shorter. Take it from 100 to get the longer ones.

The curve reads 86 at 60 m, so 86 lengths were 60 m or shorter. Longer than 60 m: 100 − 86 = 14.

Customers want a plumber who turns up at about the same time on every visit. Using the two box plots of arrival times, who should they choose?

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Text version of the picture, for people who cannot see it (it may give away the answer): two box plots of arrival times, on the same scale, labelled time to arrive (minutes). Plumber A: minimum 5, lower quartile 15, median 20, upper quartile 30, maximum 40. Plumber B: minimum 5, lower quartile 15, median 25, upper quartile 45, maximum 60. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  • Plumber A: its box is narrower
  • Plumber B, because the maximum is higher
  • Neither, because their minimum times are the same
  1. Consistent means a small spread.
  2. Compare the widths of the two boxes.

Plumber A has an interquartile range of 15 minutes and Plumber B has 30. A smaller interquartile range means more consistent, so Plumber A.

A carpenter sorts timber offcuts into classes for a histogram. In the class 20 < l ≤ 50 (lengths in cm) there are 36 offcuts. Work out the frequency density of that class.

  1. What is the class width, in cm?
  2. Frequency density = frequency ÷ class width.
  • That divides by 50. The class width is 50 − 20 = 30.
  • That divides by 20. The class width is 50 − 20 = 30.

Class width = 50 − 20 = 30. Frequency density = 36 ÷ 30 = 1.2.

A plumber cuts 11 pipe lengths (in cm): 62, 64, 65, 68, 70, 72, 75, 78, 80, 84, 120. Find the interquartile range.

  1. The list is in order. The quartiles are the 3rd and 9th of 11 values.
  2. Subtract the lower quartile from the upper quartile.
  • That is the range, 120 − 62. Use the quartiles instead.
  • That adds the quartiles. Subtract instead.

The 3rd value is 65 and the 9th value is 80. Interquartile range = 80 − 65 = 15 cm.

For the plumber’s pipe lengths, the upper quartile is 80 cm and the interquartile range is 15 cm. A length is an outlier if it is more than 1.5 × the interquartile range above the upper quartile. Work out the upper limit.

  1. Work out 1.5 × 15 first.
  2. Add it to 80.
  • That adds only the interquartile range. Use 1.5 times it.
  • That is 1.5 × 15, the extra bit. Add it to 80.

1.5 × 15 = 22.5. Upper limit = 80 + 22.5 = 102.5 cm. The 120 cm length is above this, so it is an outlier.

The trade counter gives a £5 voucher to each customer who waits more than 40 minutes. In a waiting times table, 30 customers waited 40 to 60 minutes and 20 waited 60 to 100 minutes. How much do the vouchers cost, in pounds?

  1. How many customers waited more than 40 minutes?
  2. Multiply by £5.
  • That is the number of customers. Multiply by £5 each.
  • That is only the first group, 30 × £5. Add the second group.

30 + 20 = 50 customers. 50 × 5 = £250.

Exam style

Use these like a real paper. The marks tell you how much to write. A calculator is fine here.

Not sure what a question word means? Question words explained.

Write your working on paper, then type the answer.

[3 marks] The cumulative frequency graph shows the delivery times of 80 parcels. Estimate the interquartile range, in minutes, to the nearest whole number.

Cumulative frequency graph of delivery timeA graph of cumulative frequency against delivery time. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.010203040506001020304050607080Delivery time (minutes)Cumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of delivery time. The horizontal axis is delivery time (minutes) and the vertical axis is cumulative frequency, from 0 to 80. A smooth S-shaped curve rises through these plotted points, each written as (delivery time, cumulative frequency): (0, 0), (10, 4), (20, 16), (30, 44), (40, 66), (50, 76), (60, 80). Read other values by going between the points along the smooth curve.

  1. Which two heights do you need?
  2. Read each across to the curve and down, then subtract.
  • That is the total number of parcels. The interquartile range is a difference in times.

Lower quartile: 80 ÷ 4 = 20, which reads as about 22 minutes. Upper quartile: 3 × 80 ÷ 4 = 60, which reads as about 37 minutes. Interquartile range = 37 − 22 = 15 minutes.

  • M1 for reading the lower quartile at height 20 (about 22)
  • M1 for reading the upper quartile at height 60 (about 37)
  • A1 for 15 (accept a small range either side)

[3 marks] The graph shows the test marks of 60 students. A student passes by scoring more than 70 marks. Estimate how many students passed.

Cumulative frequency graph of test marksA graph of cumulative frequency against test marks. The cumulative frequency is on the vertical axis and a smooth S-shaped curve rises from the bottom left to the top right through plotted points. Light grid lines help you read values.20304050607080901000102030405060Test markCumulative frequency

Text version of the picture, for people who cannot see it (it may give away the answer): a cumulative frequency graph of test marks. The horizontal axis is test mark and the vertical axis is cumulative frequency, from 0 to 60. A smooth S-shaped curve rises through these plotted points, each written as (test marks, cumulative frequency): (20, 0), (30, 2), (40, 8), (50, 18), (60, 32), (70, 44), (80, 53), (90, 58), (100, 60). Read other values by going between the points along the smooth curve.

  1. Read up from 70 marks to the curve, then across.
  2. That tells you how many did not pass. Take it from 60.
  • That is how many scored 70 or fewer. Take it from 60 to find the passes.

At 70 marks the curve reads 44, so 44 students scored 70 or fewer. Passed: 60 − 44 = 16 students.

  • M1 for reading the cumulative frequency at 70 marks (44)
  • M1 for 60 − 44
  • A1 for 16 (accept 15 to 17)

[4 marks] The box plots show the arrival times of two plumbers. Compare the arrival times of Plumber A and Plumber B.

Two box plots of arrival timesTwo box plots drawn one above the other on the same scale from 0 to 60 minutes, labelled Plumber A and Plumber B. Each has a box with a line inside it and a whisker out of each end.0102030405060Time to arrive (minutes)Plumber APlumber B

Text version of the picture, for people who cannot see it (it may give away the answer): two box plots of arrival times, on the same scale, labelled time to arrive (minutes). Plumber A: minimum 5, lower quartile 15, median 20, upper quartile 30, maximum 40. Plumber B: minimum 5, lower quartile 15, median 25, upper quartile 45, maximum 60. The box runs from the lower quartile to the upper quartile with a line at the median, and the whiskers run to the minimum and maximum.

  1. Compare an average and a spread.
  2. Use the median and the interquartile range, and say what they mean for the customer.

Median: Plumber A is 20 minutes and Plumber B is 25 minutes, so on average A arrives 5 minutes sooner. Interquartile range: A is 30 − 15 = 15 minutes and B is 45 − 15 = 30 minutes, so the arrival times of A are more consistent.

  • M1 for comparing the medians: 20 for A and 25 for B
  • M1 for comparing the interquartile ranges: 15 for A and 30 for B
  • C1 for a comment in context on the medians: A is quicker on average
  • C1 for a comment in context on the spread: A is more consistent

[4 marks] The histogram shows the waiting times of 175 customers. Estimate how many customers waited between 15 and 50 minutes.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. Split 15 to 50 into three parts, one for each bar it touches.
  2. For each part, multiply the height by the width of the part.
  • That is only the 20 to 40 bar. Add the other two parts.
  • That is every customer. Only 15 to 50 minutes is wanted.

15 to 20: 4 × 5 = 20. 20 to 40: 3.5 × 20 = 70. 40 to 50: 1.5 × 10 = 15. Total = 20 + 70 + 15 = 105 customers.

  • M1 for 5 × 4 = 20 (the part of the 10 to 20 bar from 15 to 20)
  • M1 for 20 × 3.5 = 70 (the 20 to 40 bar)
  • M1 for 10 × 1.5 = 15 (the part of the 40 to 60 bar from 40 to 50)
  • A1 for 105

[3 marks] In a histogram, the class 20 < x ≤ 50 has frequency 63. Work out the frequency density for this class.

  1. What is the class width?
  2. Frequency density = frequency ÷ class width.
  • That divides by 50, the upper boundary. The class width is 30.
  • That divides by 20, the lower boundary. The class width is 30.

Class width = 50 − 20 = 30. Frequency density = 63 ÷ 30 = 2.1.

  • M1 for class width 50 − 20 = 30
  • M1 for 63 ÷ 30
  • A1 for 2.1

[4 marks] A data set has a lower quartile of 24 and an upper quartile of 40. A value is an outlier if it is more than 1.5 × the interquartile range above the upper quartile. Show that a value of 70 is an outlier.

  1. Find the interquartile range first.
  2. Then work out the upper limit and compare 70 with it.

Interquartile range = 40 − 24 = 16. 1.5 × 16 = 24. Upper limit = 40 + 24 = 64. Since 70 is more than 64, it is an outlier.

  • M1 for interquartile range = 40 − 24 = 16
  • M1 for 1.5 × 16 = 24
  • M1 for the upper limit 40 + 24 = 64
  • C1 for a conclusion: 70 is more than 64, so it is an outlier

Why it works

  • A running total never goes down. That is why the curve never dips, and why every point sits at the end of its class.
  • The quartiles split the data into four equal quarters. So the box holds the middle half, and the interquartile range ignores the extreme values at both ends.
  • Area is frequency. A wide class collects more values just by being wide, so we divide by the width to make bars comparable. Multiply by the width to get the frequency back.
  • You compare with an average and a spread. Two sets of data can have the same median but very different spreads.

Common traps

  • Plotting cumulative frequency at the midpoint instead of the upper boundary.
  • Giving the height (such as 40) as the median instead of reading down to the value.
  • Adding the quartiles instead of subtracting them to get the interquartile range.
  • Using frequency as the bar height when the class widths are different.
  • Forgetting to take the reading away from the total when a question asks for the number of values more than a given value.
  • Writing a comparison with numbers only and no words about the context.

Going further

Use the waiting times histogram (175 customers). The median is the 87.5th value, so work out which bar it is in and how far along. Estimate the median waiting time, to 1 decimal place.

Histogram of waiting timesA histogram of waiting times at a trade counter in minutes, with five bars of different widths. The vertical axis is frequency density with grid lines every half a unit. The bars touch each other, with no gaps.01020406010000.511.522.533.544.55Waiting time (minutes)Frequency density

Text version of the picture, for people who cannot see it (it may give away the answer): a histogram of waiting times. The horizontal axis is waiting time (minutes) and the vertical axis is frequency density. The bars touch, with no gaps. The classes and the heights of their bars (frequency densities) are: 0 to 10, height 1.5; 10 to 20, height 4; 20 to 40, height 3.5; 40 to 60, height 1.5; 60 to 100, height 0.5.

  1. The first two bars hold 15 + 40 = 55 customers. The median is the 87.5th, so it is in the next bar.
  2. You need 87.5 − 55 more customers from that bar. How wide a slice has that many, at the bar’s height?
  • That is the position of the median in the list, not a time. Find which bar it is in first.
  • That is half way along the bar. The median is a little before it, so work it out.

The first two bars hold 15 + 40 = 55 customers, so the median is in the 20 to 40 bar. It needs 87.5 − 55 = 32.5 more customers. The bar has height 3.5, so 32.5 ÷ 3.5 = 9.29 minutes along. The median is about 20 + 9.29 = 29.29 ≈ 29.3 minutes.

On a histogram, 1 cm² of area stands for 5 people. A bar is 2 cm wide and 3 cm tall. How many people does it show?

  1. The area of the bar stands for the frequency.
  2. Work out the area, then see how many people each cm² stands for.
  • That is the area in cm². Each cm² stands for 5 people.
  • That is the number of people for one cm². Multiply it by the area.

Area = 2 × 3 = 6 cm². Each cm² is 5 people, so 6 × 5 = 30 people.

The delivery times have a median of 29 minutes and an interquartile range of 15 minutes. Every time is first increased by 5 minutes and then doubled (for the return trip). What is the new interquartile range?

  1. Adding 5 to every value moves the whole data set, but how does the spread change?
  2. Doubling every value doubles the spread.
  • That treats the interquartile range as if 5 was added, then doubled. Adding the same amount to every value does not change the spread.
  • That ignores the doubling. Doubling every value doubles the spread.

Adding 5 to every value moves the quartiles by 5 each, so the difference between them stays 15. Doubling every value doubles the difference: 2 × 15 = 30 minutes. (The median becomes 2 × (29 + 5) = 68.)

I can…

Come back in a week and tick again, without looking.

Back to the pyramid Glossary

What next?

Next in the 12-week route: Conditional probability See all the routes