GCSE Mathematics · Chapter 35 · Statistics · Higher
Cumulative frequency graphs, box plots and histograms show the shape and spread of large sets of grouped data.
This chapter covers running totals and the graphs drawn from them, then box plots for comparing two sets of data. It ends with histograms, where the area of each bar shows the frequency.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- build a cumulative frequency table and draw its graph
- read the median, quartiles and interquartile range from a cumulative frequency graph
- draw box plots and use them to compare two distributions
- draw a histogram with unequal class widths using frequency density
- read frequencies and estimates from a histogram
Time: two sessions, about 2 hours. Session 1 covers sections 1 to 3. Session 2 covers sections 4 and 5 and the practice ladder.
Before you start, check you can do three things. Find the median and range of a list. Read grouped frequency tables with inequalities. Find the area of a rectangle.
Two interactive figures sit inside the teaching. Figure 35.1 is a cumulative frequency graph in section 1. Figure 35.2 is a histogram in section 4.
Section 1
Cumulative frequency graphs
A cumulative frequency is a running total. It tells you how many values are less than or equal to the end of each class. Adding a column of running totals to a grouped frequency table gives a cumulative frequency table.
For example, 80 runners completed a fun run. Of these, 8 took over 20 and up to 30 minutes, and 20 took over 30 and up to 40. Another 24 took over 40 and up to 50, and 20 took over 50 and up to 60. The last 8 took over 60 and up to 70.
| Time, t minutes | Frequency | Cumulative frequency |
|---|---|---|
| 8 | 8 | |
| 20 | 28 | |
| 24 | 52 | |
| 20 | 72 | |
| 8 | 80 |
The last cumulative frequency always equals the total number of values. Here it is 80. That is a useful check on your adding.
To draw the graph, plot each cumulative frequency against the upper boundary of its class. The point (40, 28) means 28 runners took 40 minutes or less. Start the graph at the lower end of the first class with a cumulative frequency of 0, here (20, 0).
Cumulative frequency is most useful for large sets of grouped data. With a short list, it is easier to find the median directly. With 80 or 200 values in classes, the graph is the quickest route to the median and quartiles.
Choose sensible scales before you plot. The value axis must cover every class, from the lowest lower boundary to the highest upper boundary. The cumulative frequency axis must reach the total.
Join the points with a smooth curve or with straight lines. The graph always rises or stays level, because a running total can never go down. Many cumulative frequency graphs have a stretched S shape.
Figure 35.1 draws the graph for the runners. Choose a reading to see the lines drawn across and down. The button shows what happens if the points are plotted in the wrong place.
Cumulative frequency graph
Read across from 40 (which is n/2 for n = 80), then down to the time axis.
The median is 45 minutes. Interquartile range = 54 − 36 = 18 minutes.
The steepest part of the graph shows where the data is most crowded. Here the graph climbs fastest between 40 and 50 minutes, because 24 runners finished in that class. Flat parts show classes with few values.
Plotting each total at the middle of its class is plotting at the midpoints. The point (25, 8) would mean 8 runners took 25 minutes or less. But some of those 8 took up to 30 minutes. The running total includes the whole class, so it belongs at the upper boundary.
Worked example 1: a cumulative frequency table
Complete the cumulative frequency table for the 80 runners and give the points to plot.
| Working | Reason |
|---|---|
| , , | Add each frequency to the running total so far. |
| , | The final total matches the 80 runners, which checks the adding. |
| Points (20, 0), (30, 8), (40, 28), (50, 52) | Plot each total at the upper boundary of its class, starting at 0. |
| Then (60, 72) and (70, 80) | Join all the points with a smooth curve or straight lines. |
Check yourself. Frequencies of 5, 12, 18, 10 and 5 are given in order. Write down the cumulative frequencies.
Show the answer
Add each frequency to the total so far. The cumulative frequencies are 5, 17, 35, 45 and 50, and the last one matches the total of 50.
Common mistake: plotting at the midpoints. A student plots the runners' totals at 25, 35, 45, 55 and 65 minutes. Every point is 5 minutes too early. The median read from that graph comes out 5 minutes too small.
Section 2
Median, quartiles and interquartile range
A cumulative frequency graph lets you estimate the median of grouped data. For n values, read across from n/2 on the cumulative frequency axis to the curve. Then read down to the value axis.
For the 80 runners, n/2 is 40. Reading across from 40 meets the graph at 45 minutes. So the median time is about 45 minutes.
The lower quartile is a quarter of the way through the data. Read across from n/4, which is 20, to get 36 minutes. The upper quartile is three quarters of the way through. Read across from 3n/4, which is 60, to get 54 minutes.
The interquartile range is the upper quartile minus the lower quartile. Here it is minutes. It measures the spread of the middle half of the data, so extreme values do not affect it.
Giving the number you read across from is reading the cumulative frequency instead of the value. A student gives the median as 40, because they read across from 40. But 40 is a number of runners. The median is a time, 45 minutes, read from the other axis.
The graph also answers questions such as how many runners took longer than 55 minutes. Read up from 55 to the curve and across, giving 62 runners at or under 55 minutes. So about runners took longer.
The graph can also find a percentage. To find the time beaten by the fastest 10% of runners, read across from 10% of 80, which is 8. The graph gives 30 minutes, so the fastest 10% took 30 minutes or less.
Questions sometimes ask for a value from the top. For the slowest 20 runners, read across from . The graph gives 54 minutes, so the slowest 20 took longer than 54 minutes.
All these readings are estimates. The graph assumes the values are spread evenly within each class. Show your reading lines on the graph so the examiner can follow your method.
Worked example 2: readings from a cumulative frequency graph
Use the runners' graph to estimate the median, the interquartile range and the number who took longer than 55 minutes.
| Working | Reason |
|---|---|
| Median: across from 40, down to 45 minutes | For 80 runners the median is read at n/2, which is 40. |
| LQ at 20 gives 36, UQ at 60 gives 54 | Read across from n/4 and 3n/4 in the same way. |
| IQR minutes | Subtract the lower quartile from the upper quartile. |
| Up to 55 reads 62, so runners | Read up from 55, then subtract from the total for longer times. |
Check yourself. For the same runners, estimate how many took 35 minutes or less.
Show the answer
Read up from 35 minutes to the graph, then across. The graph is halfway between 8 and 28 there, which gives about 18 runners.
Common mistake: reading the cumulative frequency instead of the value. A student reads across from 60 for the upper quartile and writes 60. That is the position. The upper quartile is the time it reaches, 54 minutes.
Section 3
Box plots and comparing distributions
A box plot shows five numbers: the lowest value, the lower quartile, the median, the upper quartile and the highest value. It is drawn above a scale. The box runs from the lower quartile to the upper quartile, with a line at the median.
Lines called whiskers run from the box out to the lowest and highest values. The length of the box shows the interquartile range. The whole width shows the range.
Box plots hide the individual values, but they make the key features easy to see at a glance. They are especially useful when two groups have different numbers of values, because the scale is the same for both.
For a list of data, find the quartiles from the ordered list. For n values, the lower quartile is at position (n + 1)/4. The upper quartile is at position 3(n + 1)/4. For 11 values, these are the 3rd and 9th values.
A box plot can be drawn from a cumulative frequency graph too. Read off the median and both quartiles. Take the lowest and highest values from the question, or use the ends of the first and last classes if they are not given.
The shape of a box plot shows how the data is spread. If the median is near the middle of the box, the middle half is spread evenly. If one whisker is much longer, the data has a long tail on that side.
Box plots are ideal for comparing two sets of data. Draw them on the same scale, one above the other. Then compare an average and a measure of spread.
Saying only which median is higher is comparing only the averages. A full comparison has two parts. Compare the medians to say which is higher on average. Then compare the interquartile ranges to say which is more consistent.
Always write comparisons in the context of the question. Saying Group B has a higher median is not enough. Say that Group B's runners were slower on average, because their median time was higher.
A good comparison quotes the numbers. Write the two medians and the two interquartile ranges, then say what each comparison means. Two clear sentences are usually enough for full marks.
Use the interquartile range rather than the range to compare spread. The range depends only on the two most extreme values, which might be unusual. The interquartile range ignores them.
Worked example 3: comparing two box plots
Group A has median 45 minutes and IQR 18 minutes. Group B has median 48 minutes and IQR 12 minutes. Compare the two groups' times.
| Working | Reason |
|---|---|
| B's median 48 is higher than A's 45 | Compare an average first, using the medians. |
| Group B was slower on average | Say what the higher median means in context. |
| B's IQR 12 is less than A's 18 | Compare a measure of spread, using the interquartile ranges. |
| Group B's times were more consistent | A smaller interquartile range means less spread in the middle half. |
Check yourself. Find the median and quartiles of 3, 5, 6, 8, 9, 10, 12, 14, 15, 18, 21.
Show the answer
There are 11 values, already in order. The median is the 6th value, 10. The lower quartile is the 3rd value, 6, and the upper quartile is the 9th value, 15.
Common mistake: comparing only the averages. A student writes that Class X did better because its median was 62 against Class Y's 55. That is only half a comparison. The interquartile ranges, 20 and 10, show Class Y was more consistent.
Section 4
Histograms and frequency density
A histogram looks like a bar chart for continuous data, with no gaps between the bars. When all the classes have the same width, the heights can show the frequencies. When the widths differ, the heights must change.
In a histogram, the area of each bar represents the frequency. To make this work, the height is the frequency density. Frequency density is frequency divided by class width.
For example, 75 people recorded their journey times in classes of different widths. The class has width 5 and frequency 15. Its frequency density is . The class has width 20 and frequency 12, so its density is .
| Time, t minutes | Frequency | Class width | Frequency density |
|---|---|---|---|
| 10 | 10 | 1 | |
| 15 | 5 | 3 | |
| 20 | 5 | 4 | |
| 18 | 10 | 1.8 | |
| 12 | 20 | 0.6 |
Figure 35.2 draws this histogram. Move the sliders to shade part of it and estimate how many people are in that range. The button shows the misleading picture you get from plotting frequency.
Histogram
Frequency densities: 0–10: 1, 10–15: 3, 15–20: 4, 20–30: 1.8, 30–50: 0.6.
Estimated number from 12 to 18 minutes: about 21 of 75
Plotting frequency on the vertical axis is using frequency as the height. The wide class from 30 to 50 minutes would be drawn 12 units tall, taller than the 0 to 10 class. That makes long journeys look common. The density, 0.6, shows they are spread thinly.
Think of frequency density as how crowded a class is. A density of 4 means about 4 people for every minute of that class. A density of 0.6 means fewer than one person per minute. Tall bars show crowded parts of the data.
The vertical axis must be labelled frequency density, not frequency. Mark schemes often give a mark for the label alone. Choose a scale that makes the tallest bar fill most of the grid.
When the classes all have the same width, a histogram looks the same shape whether you plot frequency or frequency density. Only the scale changes. That is why the difference matters only when the widths are unequal.
The horizontal axis is a continuous scale. Bars sit side by side with no gaps, and each bar starts and ends exactly at its class boundaries. Wide classes give wide bars.
Worked example 4: frequency densities
Work out the frequency densities for the classes , and in the journey table.
| Working | Reason |
|---|---|
| Divide the frequency by the class width of 5 minutes. | |
| This class is 10 minutes wide, so divide by 10. | |
| The widest class has the lowest density, even with a fair frequency. | |
| Heights 3, 1.8 and 0.6 | These are the bar heights on the frequency density axis. |
Check yourself. A class of width 8 has frequency 24. What is its frequency density?
Show the answer
Frequency density is the frequency divided by the class width. So it is .
Common mistake: using frequency as the height. A student draws a bar of height 30 for a class from 0 to 30 with frequency 30. Its width is 30, so its density is 1. The bar should be 1 unit tall.
Section 5
Reading frequencies from a histogram
Many histogram questions mix reading and drawing. You might be given a partly drawn histogram and a partly completed table. Use whichever class has both pieces of information to fix the scale, then fill in the rest.
To find a frequency from a histogram, reverse the calculation. Frequency equals frequency density multiplied by class width. This is the area of the bar.
For the class , the bar is 1.8 high and 10 wide. So its frequency is . Reading the height alone would give 1.8 people, which makes no sense.
Questions often ask how many values lie in part of a class. Assume the values are spread evenly across the class. Then take the area of just that part of the bar.
For example, how many people took between 12 and 18 minutes? From 12 to 15 is 3 minutes of a bar with density 3, giving 9 people. From 15 to 18 is 3 minutes of a bar with density 4, giving 12 people. The estimate is .
Taking the bar height as a number of people is reading the bar height as the frequency. A student says 4 people took between 15 and 20 minutes. The height 4 is a density, in people per minute. Over 5 minutes, that is 20 people.
The total frequency is the total area of all the bars. Adding the areas is a good check that you have read the histogram correctly. For the journey data, the areas add up to 75 people.
You may be given a histogram with one frequency known. Use that bar to work out the scale. If a bar 10 wide has frequency 18, its height must represent a density of 1.8.
You can also estimate the median from a histogram. Find the class containing the middle value by adding frequencies. Then work out how far into that class the median lies, assuming the values are spread evenly.
When estimating within a class, say that it is an estimate. The histogram cannot show exactly where in the class each value lies. The even-spread assumption is the best you can do.
Worked example 5: estimating from a histogram
Use the journey histogram to estimate how many people took between 12 and 18 minutes.
| Working | Reason |
|---|---|
| From 12 to 15: | Three minutes of the bar with frequency density 3. |
| From 15 to 18: | Three minutes of the bar with frequency density 4. |
| Add the two parts of the area. | |
| About 21 people | This is an estimate, assuming even spread within each class. |
Check yourself. A bar in a histogram has frequency density 0.6 and width 20. What frequency does it represent?
Show the answer
Frequency is the area of the bar, which is density times width. So the frequency is .
Common mistake: reading the bar height as the frequency. A student says the class from 30 to 50 minutes holds 0.6 people. The height is a density per minute. Multiplying by the width of 20 gives 12 people.
Practice
Practice ladder
Work down the ladder. Try each question before you open its solution.
Rung 1: Fluency
Q1. The frequencies for five classes from 0 to 50, each 10 wide, are 5, 12, 18, 10 and 5. Write down the points to plot for a cumulative frequency graph.
Worked solution to Q1
Add the running totals: 5, 17, 35, 45 and 50. Plot each at the upper boundary, starting from (0, 0). The points are (10, 5), (20, 17), (30, 35), (40, 45) and (50, 50).
Q2. A cumulative frequency graph shows 80 values. From which cumulative frequency do you read the lower quartile?
Worked solution to Q2
The lower quartile is a quarter of the way through the data. For 80 values, read across from .
Q3. Work out the frequency density for a class of width 8 with frequency 24.
Worked solution to Q3
Frequency density is frequency divided by class width. So the density is , which is the height of the bar.
Q4. The lower quartile is 36 and the upper quartile is 54. Find the interquartile range.
Worked solution to Q4
The interquartile range is the upper quartile minus the lower quartile. So it is , the spread of the middle half of the data.
Rung 2: Reasoning
Q5. Find the five values needed to draw a box plot for 3, 5, 6, 8, 9, 10, 12, 14, 15, 18, 21.
Worked solution to Q5
The lowest value is 3 and the highest is 21. With 11 values, the lower quartile is the 3rd value, 6, and the median is the 6th, 10. The upper quartile is the 9th, 15.
Q6. A histogram bar has frequency density 1.8 and width 10. Find the frequency.
Worked solution to Q6
The frequency is the area of the bar, found by multiplying the density by the width. So the frequency is .
Q7. Using the runners' cumulative frequency graph, estimate how many took 35 minutes or less.
Worked solution to Q7
At 35 minutes the graph is halfway between the points (30, 8) and (40, 28). Reading across gives about 18 runners who took 35 minutes or less.
Q8. Explain why cumulative frequencies are plotted at the upper boundaries of the classes.
Worked solution to Q8
A cumulative frequency counts every value up to the end of its class. Only at the upper boundary are all those values included, so plotting anywhere earlier overstates the total.
Rung 3: Problem solving
Q9. Class X has median 62 and IQR 20. Class Y has median 55 and IQR 10. Compare the two classes' test marks.
Worked solution to Q9
Class X did better on average, because its median of 62 is higher than 55. Class Y's marks were more consistent, because its interquartile range of 10 is smaller than 20.
Q10. Use the journey histogram to estimate how many people took between 25 and 40 minutes.
Worked solution to Q10
From 25 to 30 minutes is 5 minutes at density 1.8, giving 9 people. From 30 to 40 minutes is 10 minutes at density 0.6, giving 6 people. The estimate is people.
Exam practice
Exam technique and worked answer workshop
These questions reward careful reading of graphs. Draw your reading lines, label axes, and always compare in context.
- Plot at upper boundaries when drawing a cumulative frequency graph.
- Read across from n/4, n/2 and 3n/4, then read down for the value.
- Compare a median and an IQR when comparing box plots.
- Label the axis frequency density on a histogram.
- Use area for frequency: density times width.
In the mark guidance, M marks are for method, A marks are for accuracy and B marks are independent of method.
Exam question 1 (2 marks · non-calculator · about 2 minutes · Higher)
The times of 80 runners are grouped into classes 10 minutes wide from 20 to 70 minutes. The frequencies are 8, 20, 24, 20 and 8. Work out the cumulative frequencies.
Mark guidance for exam question 1
- M1 for at least three correct running totals.
- A1 for 8, 28, 52, 72 and 80.
Exam question 2 (3 marks · calculator allowed · about 3 minutes · Higher)
Use a cumulative frequency graph of these 80 times to estimate how many runners took longer than 55 minutes.
Mark guidance for exam question 2
- M1 for reading the graph at 55 minutes, giving about 62.
- M1 for subtracting the reading from 80.
- A1 for about 18 runners.
Exam question 3 (3 marks · non-calculator · about 3 minutes · Higher)
Group A's times have median 45 minutes and interquartile range 18 minutes. Group B's times have median 48 minutes and interquartile range 12 minutes. Compare the distributions of the two groups' times.
Mark guidance for exam question 3
- B1 for comparing the medians, such as group B was slower on average.
- B1 for comparing the interquartile ranges, such as group B was more consistent.
- B1 for both comparisons made in the context of running times.
Annotated model answer: exam question 3
| Working | What the marker sees |
|---|---|
| Group B's median, 48, is higher than group A's, 45 | The averages are compared, with values quoted. |
| So group B's runners were slower on average | The comparison is in context. First mark. |
| Group B's IQR, 12, is smaller than group A's, 18 | The spreads are compared, using the interquartile range. |
| So group B's times were more consistent | Spread is interpreted in context. Second and third marks. |
Exam question 4 (3 marks · calculator allowed · about 4 minutes · Higher)
A histogram shows journey times. The class has frequency 15 and the class has frequency 20. Estimate how many people took between 12 and 18 minutes.
Mark guidance for exam question 4
- M1 for frequency densities of 3 and 4.
- M1 for .
- A1 for 21.
Recap
Recap and next step
- Cumulative frequency is a running total, plotted at the upper boundary of each class.
- Read the median at n/2 and the quartiles at n/4 and 3n/4, then read down for the value.
- A box plot shows the five-number summary, and comparisons need a median and an IQR.
- In a histogram the height is frequency density, frequency divided by class width.
- The area of a histogram bar is the frequency, so estimate part of a class by part of its area.
Next chapter: this is the last chapter of the course. Revisit the quizzes and exam questions in earlier chapters to bring every topic together.
For your exam board
Cumulative frequency, box plots and histograms with unequal class widths are examined on Higher papers only.
- Pearson Edexcel 1MA1: specification references S3 and S4.
- AQA 8300: specification references S3 and S4.
- OCR J560: specification sections 12.02, interpreting and representing data, and 12.03, analysing data.