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.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
- Start with an ordinary grouped frequency table. These are the times, in minutes, that people took to finish a puzzle.
- 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.
- Add each new frequency to the total so far. The first class gives . The second adds to make , and so on.
- Each cumulative frequency answers one question: how many values are less than or equal to the upper end of that class? The says that people took minutes or less. That is why a cumulative frequency table uses headings such as .
- Check the last entry. The final cumulative frequency must equal the total number of values, here . If it does not, there is an adding error somewhere in the column.
- You can also go backwards. The frequency of one class is the difference between two neighbouring cumulative frequencies: people took more than minutes but no more than minutes.
Part 2 of 6
Drawing the diagram: upper bounds, crosses, a smooth curve
- Put the variable, here time, on the horizontal axis. Put cumulative frequency on the vertical axis, with a scale that reaches the total, .
- Plot each cumulative frequency above the upper bound of its class. For the puzzle that gives , , , , and .
- Why the upper bound and not the midpoint? The means that people took minutes or less. You only know that all people in the class have finished when you reach , the end of the class. At the midpoint, , some of them may still be working.
- Add a starting point. Nobody took minutes or less, so plot . The start point is always the lower bound of the first class, with cumulative frequency . If the first class were , the curve would start at , not at the origin.
- 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. - 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.
- The steepness tells you where the values are crowded. The steepest part here is between and minutes, which is the class with the largest frequency, . A flat part means few values in that stretch.
Part 3 of 6
Reading the curve: how many, more than, between
- 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.
- How many people took minutes or less? Go up from to the curve and across. The reading is about . It must lie between (at minutes) and (at minutes), which is a quick check on your reading.
- For more than, subtract the reading from the total. The curve always counts from the bottom, so it gives ' or less'. People who took more than minutes:
- For between, take two readings and subtract. At minutes the curve gives about , so about people took between and minutes.
- 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.
- 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
- 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.
- For the puzzle, , so read across at . Across from and down gives a median of about minutes.
- 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.
- For a list of values you used the th value (10.4). For a cumulative frequency diagram, use . 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: and here.
- The lower quartile (LQ) is read across at a quarter of the total, and the upper quartile (UQ) at three quarters of the total.
- Across from , the line meets the curve at the plotted point , so the LQ is minutes. Across from , the line meets the curve between the points and , and the UQ is about 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. - The interquartile range (IQR) is the upper quartile minus the lower quartile. Subtract the two times, not the cumulative frequencies and .
- 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 , all between and .
Part 5 of 6
Percentiles
- A percentile splits the data by percentage. The th percentile is the value that has of the data at or below it.
- To find it, read across at of the total frequency, then down.
- For the th percentile of the puzzle times, read across at . Across and down gives about minutes. So about of the people finished within minutes, and the slowest took longer than that.
- The quartiles and the median are percentiles with their own names: the LQ is the th percentile, the median is the th and the UQ is the th.
- Watch the wording. 'The slowest ', 'the heaviest ' and 'the top of marks' all point to the th percentile, because of the values lie below it. Think about which end of the scale the words mean: with times, 'the fastest ' are the smallest values, so they point to the th percentile.
- The question can also run the other way: what percentage of the people took minutes or less? Read up from to get about , then write as a percentage of the total.
Part 6 of 6
What the median and the IQR tell you
- The median is an average: a typical value. 'The median time is about minutes' means that about half of the people took minutes or less, and about half took longer.
- 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.
- 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.
- 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.
- 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 less' without saying what it means does not compare the data.
Worked examples
Example 1. The heights, cm, of plants are shown in the table. (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
- Keep a running total down the frequency column.
- Check: the last cumulative frequency is , the number of plants. Write the table with 'less than or equal to' headings.
- Plot each cumulative frequency above the upper bound of its class: , , , , , .
- Now the starting point. The first class is , so no plant is cm or less. The curve starts at , not at the origin. The trap here is a first class that does not begin at .
- Choose axes: height from to cm along the bottom, cumulative frequency from to 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 . (b) Plot , , , , , , as crosses and join them with a smooth curve.
Example 2. Use the cumulative frequency diagram for the 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 cm.
Show the working
- Work out where to read across. With : the median is at , the LQ at and the UQ at .
- (a) Across from , the line meets the curve at the plotted point . Down to the axis: the median is cm.
- (b) Across from , the line meets the curve at the point , so the LQ is cm.
- Across from : this lies between the cumulative frequencies (at cm) and (at cm), so the UQ is between and cm. It is of the steps up from , roughly seven tenths of the way, so expect a reading roughly seven tenths of the way from to cm. Across and down from the curve gives about cm.
- Subtract the heights, not the cumulative frequencies.
- (c) 'Taller than cm' is a 'more than' question. The curve gives the number cm or less: , at a plotted point. Subtract from the total.
Answer: (a) cm. (b) About cm (UQ about cm, LQ cm). (c) plants.
Example 3. A courier weighs parcels. The cumulative frequency diagram of their masses, kg, is a smooth curve through the points , , , , and . (a) The heaviest of the parcels get a 'heavy' label. Find an estimate of the mass above which a parcel gets the label. (b) Parcels heavier than 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 kg or less.
Show the working
- (a) The heaviest lie above the th percentile, because of the parcels are below it. Read across at of the total.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. - Across from , the line meets the curve at the plotted point . So the label goes on parcels heavier than about kg.
- (b) Now you start from a mass, so go up from kg to the curve and across. The reading lies between (at kg) and (at kg), and the curve gives about . That is the number of parcels of kg or less.
- 'Heavier than' needs the subtraction from the total.
- (c) At kg the cumulative frequency is , a plotted point, so parcels have a mass of kg or less. Write that as a percentage of .
Answer: (a) About kg. (b) About parcels. (c) .
Example 4. Ravi records the waiting times, in minutes, of patients at each of two clinics. He draws a cumulative frequency diagram for each clinic and reads these values from them. (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
- (a) The IQR is UQ minus LQ for each clinic.
- (b) Compare the medians first and say what they mean. Clinic X has the lower median, minutes against , so on average patients at Clinic X wait less time.
- Then compare the IQRs and say what they mean. Clinic Y has the smaller IQR, minutes against , so the waiting times at Clinic Y are more consistent: the middle half of its patients all wait between and minutes.
- (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.
- The upper quartiles back this up: a quarter of the patients at Clinic X waited more than minutes, but at Clinic Y only a quarter waited more than minutes. The typical wait at Y is only minutes longer.
Answer: (a) X: minutes; Y: 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 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: , not .
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, , or leaving out the starting point.
Instead: Start at the lower bound of the first class with cumulative frequency : here .
No value is less than the lower bound of the first class, so the count there is . The curve has nothing to say about values below .
Mistake: Finding the median by halving the horizontal axis, for example saying the median time is minutes because the axis goes from to .
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 people took more than minutes.
Instead: Subtract the reading from the total: took more than 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 .
Instead: Read the two quartiles on the horizontal axis and subtract those: minutes.
The IQR is a spread of values (minutes, cm, kg). The numbers and are just the positions where you read across, and their difference is always half of the total.
Check yourself
- The frequencies of five classes, in order, are . Write down the cumulative frequencies.
Answer
. The last one, , equals the total frequency. - In a cumulative frequency table, the class has a cumulative frequency of . Write down the point you plot for it, and say what the means.
Answer
, above the upper bound. It means values are or less. - The first class in a grouped table is . Where does the cumulative frequency curve start?
Answer
At : the lower bound of the first class, with cumulative frequency . - A curve for people gives a reading of at minutes. How many people took more than minutes, and what percentage of the people is that?
Answer
people, and . - A cumulative frequency diagram shows values. At which cumulative frequencies do you read across for the lower quartile, the median and the upper quartile?
Answer
LQ at , median at , UQ at (a quarter, a half and three quarters of ). - A cumulative frequency diagram shows values. At which cumulative frequency do you read across for the th percentile?
Answer
. - On a curve for bags, the LQ is kg and the UQ is kg, read across at and . Ali says the interquartile range is . Is he right?
Answer
No. The IQR is kg. Ali subtracted the cumulative frequencies, , instead of the masses.
Exam questions
Try each part first. Open the mark scheme after you have written your answer.
Question 1. The masses, kg, of suitcases checked in for a flight are shown in the table.
(a) Complete the cumulative frequency table. 2 marks
Mark scheme
- B2 4, 16, 42, 75, 93, 100. B1 for four or five correct values
(b) On a grid with on the horizontal axis and cumulative frequency from to 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 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, minutes, of runners in a km race. No runner took minutes or less.
(a) Find an estimate of the th percentile of the finishing times. 2 marks No calculator
Mark scheme
- M1 oe, or 128 seen
- A1 60 minutes
(b) Calculate the percentage of the runners who took more than minutes. 2 marks No calculator
Mark scheme
- M1 oe, or 60 runners seen
- A1 37.5%
(c) Without drawing the cumulative frequency diagram, explain why the median time is between and 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 batteries of brand P and 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.
(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 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 for the median, for the LQ and 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 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 in . 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 th percentile. Read across at .
- Upper quartile (UQ)
- The value with three quarters of the data at or below it; the th percentile. Read across at .
- 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 th percentile is the value with of the data at or below it. Read across at .