Lantern Tutor Sign in

Maths · 10 Statistics

10.8 Cumulative frequency diagrams

Before you start

  • Reading a grouped frequency table whose classes are written as inequalities, such as 10<t≤20 (10.1 and 10.3).
  • The median, quartiles and interquartile range of a list of values (10.4).
  • Choosing a scale, plotting points and reading values off a graph.
  • Finding a percentage of an amount, and writing one number as a percentage of another.
Syllabus objectives covered (2)
  • Draw and interpret cumulative frequency tables and diagrams.
  • Estimate and interpret the median, percentiles, quartiles and interquartile range from cumulative frequency diagrams.

Part 1 of 6

Cumulative frequency is a running total

  1. Start with an ordinary grouped frequency table. These are the times, in minutes, that 80 people took to finish a puzzle.
    Time, t minutesFrequency0<t≤10610<t≤201420<t≤302430<t≤402040<t≤501150<t≤605
  2. The cumulative frequency of a class is the frequency of that class added to the frequencies of all the classes before it. You get it by keeping a running total down the frequency column.
  3. Add each new frequency to the total so far. The first class gives 6. The second adds 14 to make 20, and so on.
    6,6+14=20,20+24=44,44+20=64,64+11=75,75+5=80
  4. Each cumulative frequency answers one question: how many values are less than or equal to the upper end of that class? The 44 says that 44 people took 30 minutes or less. That is why a cumulative frequency table uses headings such as t≤30.
    Time, t minutest≤10t≤20t≤30t≤40t≤50t≤60Cumulative frequency62044647580
  5. Check the last entry. The final cumulative frequency must equal the total number of values, here 80. If it does not, there is an adding error somewhere in the column.
  6. You can also go backwards. The frequency of one class is the difference between two neighbouring cumulative frequencies: 64−44=20 people took more than 30 minutes but no more than 40 minutes.

Part 2 of 6

Drawing the diagram: upper bounds, crosses, a smooth curve

  1. Put the variable, here time, on the horizontal axis. Put cumulative frequency on the vertical axis, with a scale that reaches the total, 80.
  2. Plot each cumulative frequency above the upper bound of its class. For the puzzle that gives (10,6), (20,20), (30,44), (40,64), (50,75) and (60,80).
  3. Why the upper bound and not the midpoint? The 20 means that 20 people took 20 minutes or less. You only know that all 14 people in the class 10<t≤20 have finished when you reach t=20, the end of the class. At the midpoint, t=15, some of them may still be working.
  4. Add a starting point. Nobody took 0 minutes or less, so plot (0,0). The start point is always the lower bound of the first class, with cumulative frequency 0. If the first class were 5<t≤10, the curve would start at (5,0), not at the origin.
  5. Mark each point clearly with a small cross (×). Then join the crosses with a smooth curve that passes through every one of them. The syllabus asks for a smooth curve, so do not join the points with ruled straight lines, and do not draw a line that misses some of the points.
    graph diagram — not drawn yet

    Cumulative frequency diagram with horizontal axis 'Time (t minutes)' from 0 to 60 in steps of 10 and vertical axis 'Cumulative frequency' from 0 to 80 in steps of 10, with small crosses at (0, 0), (10, 6), (20, 20), (30, 44), (40, 64), (50, 75), (60, 80) joined by one smooth S-shaped curve through every cross.

    Each cross sits above the upper bound of its class, the curve starts at (0, 0), and it is steepest between 20 and 30 minutes, where the most people are.
  6. The curve never goes down as you move to the right, because a running total cannot get smaller. When most of the data are bunched in the middle, the curve has an S shape: flat at the ends, steep in the middle.
  7. The steepness tells you where the values are crowded. The steepest part here is between 20 and 30 minutes, which is the class with the largest frequency, 24. A flat part means few values in that stretch.

Part 3 of 6

Reading the curve: how many, more than, between

  1. To find how many values are less than or equal to a given value, start on the horizontal axis. Go up to the curve, then across to the vertical axis, and read the number there.
  2. How many people took 35 minutes or less? Go up from 35 to the curve and across. The reading is about 55. It must lie between 44 (at 30 minutes) and 64 (at 40 minutes), which is a quick check on your reading.
  3. For more than, subtract the reading from the total. The curve always counts from the bottom, so it gives '35 or less'. People who took more than 35 minutes:
    80−55=25
  4. For between, take two readings and subtract. At 25 minutes the curve gives about 32, so about 55−32=23 people took between 25 and 35 minutes.
  5. Draw the reading lines on the graph with a ruler every time: up and across, or across and down. They show your method, and they stop you reading off the wrong axis.
  6. Every answer you read from the curve is an estimate. The grouped table does not say exactly where the values lie inside each class; the curve is a sensible guess at how they are spread. That is why a question asks you to 'find an estimate', and why two careful people can get readings that differ slightly.

Part 4 of 6

The median and the quartiles: read across from the side

  1. The median is the middle value. On a cumulative frequency diagram, find half of the total frequency on the vertical axis. Go across to the curve, then down to the horizontal axis, and read the value there.
  2. For the puzzle, n=80, so read across at 12×80=40. Across from 40 and down gives a median of about 28 minutes.
  3. This is the reverse of the last section. A number of people starts on the vertical axis; a time is read on the horizontal axis. Before you read, say which axis your answer belongs on.
  4. For a list of values you used the n+12th value (10.4). For a cumulative frequency diagram, use n2. The curve treats the data as spread smoothly along the scale, and for a large data set the two positions are too close to tell apart on a graph: 40 and 40.5 here.
  5. The lower quartile (LQ) is read across at a quarter of the total, and the upper quartile (UQ) at three quarters of the total.
    LQ: 14×80=20,median: 12×80=40,UQ: 34×80=60
  6. Across from 20, the line meets the curve at the plotted point (20,20), so the LQ is 20 minutes. Across from 60, the line meets the curve between the points (30,44) and (40,64), and the UQ is about 38 minutes.
    graph diagram — not drawn yet

    The puzzle-time cumulative frequency curve through (0, 0), (10, 6), (20, 20), (30, 44), (40, 64), (50, 75), (60, 80), with three dashed horizontal lines from the vertical axis at 20, 40 and 60 to the curve and dashed vertical lines down to the time axis at 20, 28 and 38, labelled LQ, median and UQ.

    Each reading goes across from the cumulative frequency axis to the curve, then down to the time axis; the IQR is the gap between 20 and 38 on the time axis.
  7. The interquartile range (IQR) is the upper quartile minus the lower quartile. Subtract the two times, not the cumulative frequencies 60 and 20.
    IQR=UQ−LQ≈38−20=18 minutes
  8. Check that the results make sense: the median must lie between the two quartiles, and all three must lie inside the range of the data. Here 20<28<38, all between 0 and 60.

Part 5 of 6

Percentiles

  1. A percentile splits the data by percentage. The pth percentile is the value that has p% of the data at or below it.
  2. To find it, read across at p% of the total frequency, then down.
    pth percentile: read across at p100×n
  3. For the 90th percentile of the puzzle times, read across at 90100×80=72. Across and down gives about 47 minutes. So about 90% of the people finished within 47 minutes, and the slowest 10% took longer than that.
  4. The quartiles and the median are percentiles with their own names: the LQ is the 25th percentile, the median is the 50th and the UQ is the 75th.
  5. Watch the wording. 'The slowest 10%', 'the heaviest 10%' and 'the top 10% of marks' all point to the 90th percentile, because 90% of the values lie below it. Think about which end of the scale the words mean: with times, 'the fastest 15%' are the smallest values, so they point to the 15th percentile.
  6. The question can also run the other way: what percentage of the people took 35 minutes or less? Read up from 35 to get about 55, then write 55 as a percentage of the total.
    5580×100=68.75%≈69%

Part 6 of 6

What the median and the IQR tell you

  1. The median is an average: a typical value. 'The median time is about 28 minutes' means that about half of the people took 28 minutes or less, and about half took longer.
  2. The interquartile range measures spread. The middle half of the data lie between the LQ and the UQ, so the IQR is the width of the stretch that holds the middle half. A small IQR means the values are close together, or consistent. A large IQR means they are spread out.
  3. The IQR leaves out the lowest quarter and the highest quarter of the data. One very slow person can change the range a lot, because the range uses the most extreme value, but that person hardly moves the IQR.
  4. To compare two sets of data, write two sentences. One compares the medians and says what that means for a typical value. The other compares the IQRs and says what that means for consistency. Each sentence names which group is higher and uses the context.
  5. For example: 'Group B has the lower median, so on average Group B finished the puzzle faster. Group A has the smaller IQR, so Group A's times were more consistent.' A sentence such as 'B is 4 less' without saying what it means does not compare the data.

Worked examples

Example 1. The heights, h cm, of 120 plants are shown in the table. Height, h cmFrequency10<h≤15815<h≤202220<h≤253025<h≤304230<h≤351435<h≤404 (a) Complete a cumulative frequency table. (b) Write down the points you would plot for a cumulative frequency diagram, and describe how to draw it.

Show the working
  1. Keep a running total down the frequency column.
    8,8+22=30,30+30=60,60+42=102,102+14=116,116+4=120
  2. Check: the last cumulative frequency is 120, the number of plants. Write the table with 'less than or equal to' headings.
    Height, h cmh≤15h≤20h≤25h≤30h≤35h≤40Cumulative frequency83060102116120
  3. Plot each cumulative frequency above the upper bound of its class: (15,8), (20,30), (25,60), (30,102), (35,116), (40,120).
  4. Now the starting point. The first class is 10<h≤15, so no plant is 10 cm or less. The curve starts at (10,0), not at the origin. The trap here is a first class that does not begin at 0.
  5. Choose axes: height from 10 to 40 cm along the bottom, cumulative frequency from 0 to 120 up the side. Mark all seven points with small crosses and join them with one smooth curve through every cross.
    graph diagram — not drawn yet

    Cumulative frequency diagram with horizontal axis 'Height (h cm)' from 10 to 40 in steps of 5 and vertical axis 'Cumulative frequency' from 0 to 120 in steps of 20, with crosses at (10, 0), (15, 8), (20, 30), (25, 60), (30, 102), (35, 116), (40, 120) joined by a smooth curve.

    The curve starts at (10, 0), the lower bound of the first class, and is steepest between 25 and 30 cm, the class with the largest frequency.

Answer: (a) Cumulative frequencies 8,30,60,102,116,120. (b) Plot (10,0), (15,8), (20,30), (25,60), (30,102), (35,116), (40,120) as crosses and join them with a smooth curve.

Example 2. Use the cumulative frequency diagram for the 120 plants in the previous worked example to find an estimate of (a) the median height, (b) the interquartile range, (c) the number of plants taller than 30 cm.

Show the working
  1. Work out where to read across. With n=120: the median is at 12×120=60, the LQ at 14×120=30 and the UQ at 34×120=90.
  2. (a) Across from 60, the line meets the curve at the plotted point (25,60). Down to the axis: the median is 25 cm.
  3. (b) Across from 30, the line meets the curve at the point (20,30), so the LQ is 20 cm.
  4. Across from 90: this lies between the cumulative frequencies 60 (at 25 cm) and 102 (at 30 cm), so the UQ is between 25 and 30 cm. It is 30 of the 42 steps up from 60, roughly seven tenths of the way, so expect a reading roughly seven tenths of the way from 25 to 30 cm. Across and down from the curve gives about 28.5 cm.
  5. Subtract the heights, not the cumulative frequencies.
    IQR≈28.5−20=8.5 cm
  6. (c) 'Taller than 30 cm' is a 'more than' question. The curve gives the number 30 cm or less: 102, at a plotted point. Subtract from the total.
    120−102=18

Answer: (a) 25 cm. (b) About 8.5 cm (UQ about 28.5 cm, LQ 20 cm). (c) 18 plants.

Example 3. A courier weighs 200 parcels. The cumulative frequency diagram of their masses, m kg, is a smooth curve through the points (0,0), (2,12), (4,46), (6,118), (8,180) and (10,200). (a) The heaviest 10% of the parcels get a 'heavy' label. Find an estimate of the mass above which a parcel gets the label. (b) Parcels heavier than 5 kg cost extra to send. Find an estimate of the number of parcels that cost extra. (c) Find the percentage of the parcels with a mass of 6 kg or less.

Show the working
  1. (a) The heaviest 10% lie above the 90th percentile, because 90% of the parcels are below it. Read across at 90% of the total.
    90100×200=180
    graph diagram — not drawn yet

    Cumulative frequency diagram with horizontal axis 'Mass (m kg)' from 0 to 10 and vertical axis 'Cumulative frequency' from 0 to 200, a smooth curve through crosses at (0, 0), (2, 12), (4, 46), (6, 118), (8, 180), (10, 200), with a dashed line across from 180 to the curve and down to 8, and a dashed line up from 5 to the curve and across to about 80.

    A percentile starts on the vertical axis and ends on the mass axis; a 'heavier than 5 kg' count starts on the mass axis and ends on the vertical axis, then is taken from 200.
  2. Across from 180, the line meets the curve at the plotted point (8,180). So the label goes on parcels heavier than about 8 kg.
  3. (b) Now you start from a mass, so go up from 5 kg to the curve and across. The reading lies between 46 (at 4 kg) and 118 (at 6 kg), and the curve gives about 80. That is the number of parcels of 5 kg or less.
  4. 'Heavier than' needs the subtraction from the total.
    200−80=120
  5. (c) At 6 kg the cumulative frequency is 118, a plotted point, so 118 parcels have a mass of 6 kg or less. Write that as a percentage of 200.
    118200×100=59%

Answer: (a) About 8 kg. (b) About 120 parcels. (c) 59%.

Example 4. Ravi records the waiting times, in minutes, of 100 patients at each of two clinics. He draws a cumulative frequency diagram for each clinic and reads these values from them. Lower quartileMedianUpper quartileClinic X121831Clinic Y152024 (a) Work out the interquartile range for each clinic. (b) Compare the waiting times at the two clinics. (c) Mr Osei must catch a bus soon after his appointment, so he wants a wait he can predict. Comment on which clinic suits him better.

Show the working
  1. (a) The IQR is UQ minus LQ for each clinic.
    X: 31−12=19 minutes,Y: 24−15=9 minutes
  2. (b) Compare the medians first and say what they mean. Clinic X has the lower median, 18 minutes against 20, so on average patients at Clinic X wait less time.
  3. Then compare the IQRs and say what they mean. Clinic Y has the smaller IQR, 9 minutes against 19, so the waiting times at Clinic Y are more consistent: the middle half of its patients all wait between 15 and 24 minutes.
  4. (c) A Comment needs an opinion and a reason from the data. Mr Osei cares about predictability, which is spread, so the IQR decides it. Clinic Y has the smaller IQR, so he should choose Clinic Y.
  5. The upper quartiles back this up: a quarter of the patients at Clinic X waited more than 31 minutes, but at Clinic Y only a quarter waited more than 24 minutes. The typical wait at Y is only 2 minutes longer.

Answer: (a) X: 19 minutes; Y: 9 minutes. (b) Clinic X has the lower median, so its patients wait less time on average; Clinic Y has the smaller IQR, so its waiting times are more consistent. (c) Clinic Y: its smaller IQR means his wait is more predictable, and its median is only 2 minutes longer.

Where people go wrong

Mistake: Plotting each cumulative frequency above the midpoint of its class, as you would for a frequency polygon.

Instead: Plot above the upper bound of the class: (20,20), not (15,20).

A cumulative frequency counts the values less than or equal to the upper bound. Only at the end of the class do you know that all of that class has been counted.

Mistake: Starting the curve at the origin when the first class is, say, 10<h≤15, or leaving out the starting point.

Instead: Start at the lower bound of the first class with cumulative frequency 0: here (10,0).

No value is less than the lower bound of the first class, so the count there is 0. The curve has nothing to say about values below 10.

Mistake: Finding the median by halving the horizontal axis, for example saying the median time is 30 minutes because the axis goes from 0 to 60.

Instead: Halve the total frequency on the vertical axis, go across to the curve, then down to read the median.

The median is the value of the middle person. Halfway along the scale is only the middle of the axis; it says nothing about where the middle person is.

Mistake: Answering a 'more than' question with the reading itself, for example saying 55 people took more than 35 minutes.

Instead: Subtract the reading from the total: 80−55=25 took more than 35 minutes.

The curve always counts from the bottom, so a reading gives 'less than or equal to'. 'More than' is everyone else.

Mistake: Working out the IQR by subtracting the cumulative frequencies, such as 60−20=40.

Instead: Read the two quartiles on the horizontal axis and subtract those: 38−20=18 minutes.

The IQR is a spread of values (minutes, cm, kg). The numbers 60 and 20 are just the positions where you read across, and their difference is always half of the total.

Check yourself

  1. The frequencies of five classes, in order, are 5,9,14,8,4. Write down the cumulative frequencies.
    Answer5,14,28,36,40. The last one, 40, equals the total frequency.
  2. In a cumulative frequency table, the class 20<t≤30 has a cumulative frequency of 44. Write down the point you plot for it, and say what the 44 means.
    Answer(30,44), above the upper bound. It means 44 values are 30 or less.
  3. The first class in a grouped table is 50<h≤60. Where does the cumulative frequency curve start?
    AnswerAt (50,0): the lower bound of the first class, with cumulative frequency 0.
  4. A curve for 80 people gives a reading of 55 at 35 minutes. How many people took more than 35 minutes, and what percentage of the people is that?
    Answer80−55=25 people, and 2580×100=31.25%.
  5. A cumulative frequency diagram shows 240 values. At which cumulative frequencies do you read across for the lower quartile, the median and the upper quartile?
    AnswerLQ at 60, median at 120, UQ at 180 (a quarter, a half and three quarters of 240).
  6. A cumulative frequency diagram shows 150 values. At which cumulative frequency do you read across for the 70th percentile?
    Answer70100×150=105.
  7. On a curve for 120 bags, the LQ is 34 kg and the UQ is 52 kg, read across at 30 and 90. Ali says the interquartile range is 60. Is he right?
    AnswerNo. The IQR is 52−34=18 kg. Ali subtracted the cumulative frequencies, 90−30, instead of the masses.

Exam questions

Try each part first. Open the mark scheme after you have written your answer.

Question 1. The masses, m kg, of 100 suitcases checked in for a flight are shown in the table. Mass, m kgFrequency0<m≤545<m≤101210<m≤152615<m≤203320<m≤251825<m≤307

(a) Complete the cumulative frequency table. Mass, m kgm≤5m≤10m≤15m≤20m≤25m≤30Cumulative frequency0000000000000 2 marks

Mark scheme
  • B2 4, 16, 42, 75, 93, 100. B1 for four or five correct values

(b) On a grid with 0≤m≤30 on the horizontal axis and cumulative frequency from 0 to 100 on the vertical axis, draw a cumulative frequency diagram for these masses. 3 marks

Mark scheme
  • B2 all six points plotted correctly at the upper bounds: (5, 4), (10, 16), (15, 42), (20, 75), (25, 93), (30, 100), FT their table. B1 for four or five correct points
  • B1 a smooth increasing curve through all their points, starting at (0, 0)

(c) Use your diagram to find an estimate of the median mass. 1 mark

Mark scheme
  • B1 16 to 16.5 kg (read across at 50)

(d) Use your diagram to find an estimate of the interquartile range. 2 marks

Mark scheme
  • M1 UQ in the range 19.8 to 20.2 and LQ in the range 11.5 to 12.2 seen, or readings at cumulative frequencies 75 and 25 shown on the diagram
  • A1 7.8 to 8.5 kg

(e) Suitcases with a mass of more than 23 kg pay an extra charge. Use your diagram to find an estimate of the number of suitcases that pay the extra charge. 2 marks

Mark scheme
  • M1 a reading of 85 to 88 at m = 23, or 100 − their reading seen
  • A1 12 to 15

Question 2. The cumulative frequency table shows the finishing times, t minutes, of 160 runners in a 10 km race. No runner took 35 minutes or less. Time, t minutest≤40t≤45t≤50t≤55t≤60t≤65t≤70Cumulative frequency82456100128148160

(a) Find an estimate of the 80th percentile of the finishing times. 2 marks No calculator

Mark scheme
  • M1 0.8×160 oe, or 128 seen
  • A1 60 minutes

(b) Calculate the percentage of the runners who took more than 55 minutes. 2 marks No calculator

Mark scheme
  • M1 160−100160×100 oe, or 60 runners seen
  • A1 37.5%

(c) Without drawing the cumulative frequency diagram, explain why the median time is between 50 and 55 minutes. 1 mark No calculator

Mark scheme
  • B1 half of 160 is 80, and 80 lies between the cumulative frequencies 56 (at 50 minutes) and 100 (at 55 minutes) oe

Question 3. Lucia tests 200 batteries of brand P and 200 batteries of brand Q. She draws a cumulative frequency diagram of the lifetimes, in hours, for each brand, and reads these values from her diagrams. Lower quartileMedianUpper quartileBrand P414650Brand Q384957

(a) Calculate the interquartile range of the lifetimes for each brand. 2 marks No calculator

Mark scheme
  • B1 brand P: 9 hours
  • B1 brand Q: 19 hours

(b) Compare the lifetimes of the two brands. 2 marks No calculator

Mark scheme
  • B1 brand Q has the higher median, so brand Q batteries last longer on average oe
  • B1 brand P has the smaller IQR, so brand P lifetimes are more consistent / less spread out oe

(c) Write down an estimate of the number of brand P batteries that lasted more than 50 hours. 1 mark No calculator

Mark scheme
  • B1 50 (50 hours is the upper quartile, so a quarter of the 200 lasted longer)

How this is examined

  • Turning a frequency table into a cumulative frequency table, then drawing the curve: a cumulative frequency table to complete, followed by drawing the diagram on a grid Running totals that end at the total frequency. Points plotted at the upper bound of each class, not the midpoint, marked as small crosses. A starting point at the lower bound of the first class with cumulative frequency 0. One smooth increasing curve through every plotted point.
  • Reading the median, the quartiles and the interquartile range from the curve: a run of short parts: 'Use your diagram to find an estimate of the median', then of the lower quartile, the upper quartile or the interquartile range Reading across at 12n for the median, 14n for the LQ and 34n for the UQ, then down to the value axis. The IQR is UQ − LQ worked out with the two values from the horizontal axis. Draw the reading lines on the diagram so your method is visible.
  • Counting how many values are more than (or between) given values: a two-mark part: a threshold such as a price band, a pass mark or a weight limit, and 'find an estimate of the number of …' A reading up from the threshold on the horizontal axis and across to the cumulative frequency. For 'more than', the total minus that reading; for 'between', the difference of two readings. The reading alone answers 'at most', not 'more than'.
  • Percentiles given in words, such as 'the top 10%' or 'the fastest 15%': a two-mark part in context, worded with a percentage such as 'the top 10%' instead of the word percentile Turning the words into a percentile (top 10% means the 90th percentile), then p100×n seen as the cumulative frequency to read across at, and the value read from the curve.
  • Comparing two groups with the median and the interquartile range: a two-mark Compare or Comment after you have found the median and IQR of two groups One sentence on the medians (which group has the higher typical value, in the context) and one on the IQRs (which group is more consistent or more spread out). Name the group and say what the difference means; listing the numbers is not a comparison.

Words to know

Cumulative frequency
A running total of the frequencies. The cumulative frequency at a value is the number of data values less than or equal to it.
Cumulative frequency diagram
A graph of cumulative frequency (vertical axis) against the variable (horizontal axis), with points plotted at the upper bounds of the classes and joined by a smooth curve.
Upper bound of a class
The largest value a class can contain, such as 20 in 10<t≤20. Cumulative frequencies are plotted above it.
Median
The middle value. On a cumulative frequency diagram, read across at half of the total frequency.
Lower quartile (LQ)
The value with a quarter of the data at or below it; the 25th percentile. Read across at 14n.
Upper quartile (UQ)
The value with three quarters of the data at or below it; the 75th percentile. Read across at 34n.
Interquartile range (IQR)
UQ − LQ. The width of the stretch that holds the middle half of the data; a measure of spread that extreme values hardly affect.
Percentile
The pth percentile is the value with p% of the data at or below it. Read across at p100×n.