Cumulative Frequency
When data come in a grouped frequency table, you no longer know the individual values, so you can’t line them up and count to the middle. A cumulative frequency graph gets around this: it shows how many values lie below each point, so you can read off the median, the quartiles, any percentile, and how many values are above or below a cut-off. It’s the standard IB tool for summarizing large grouped data sets, and it feeds straight into a box-and-whisker diagram.
Key ideas
Section titled “Key ideas”Cumulative frequency
Section titled “Cumulative frequency”The cumulative frequency of a class is the running total of the frequencies up to and including that class. It tells you how many values are less than or equal to the upper end of the class.
In IB questions, classes are written as inequalities with no gaps, like . The upper end of each class ( here) is its upper class boundary.
| Commute time (min) | Frequency | Upper boundary | Cumulative frequency |
|---|---|---|---|
The last cumulative frequency is always the total, . Here .
Drawing the graph
Section titled “Drawing the graph”Plot each cumulative frequency against its upper class boundary, because that’s the point by which all those values have been counted. Start at the lower boundary of the first class with a cumulative frequency of (here, the point ). Then join the points with a smooth curve or with straight line segments. The graph never goes down, and it often has a stretched S shape. Some books call it an ogive.
Reading values off the graph
Section titled “Reading values off the graph”To find the value below which a certain number of data lie, go across from the cumulative frequency axis to the graph, then down to the horizontal axis.
| Statistic | Go across from |
|---|---|
| Lower quartile | |
| Median | |
| Upper quartile | |
| th percentile |
For a large grouped data set, use for the median (not , which is for listing individual values). Then .
To go the other way (how many values are below a given ), go up from to the graph, then across. The number above is minus that reading.
Values read from a graph are estimates. Different smooth curves give slightly different readings, and IB mark schemes accept a small range. On this page the points are joined with straight segments, so the readings can be checked with a little proportion (linear interpolation).
The range is the largest value minus the smallest. From grouped data you don’t know these exactly, so a question will either give you the minimum and maximum, or you can only say the range is at most the largest upper boundary minus the smallest lower boundary.
From the graph to a box-and-whisker diagram
Section titled “From the graph to a box-and-whisker diagram”A box-and-whisker diagram needs the five-number summary: minimum, , median, , maximum. The cumulative frequency graph gives the middle three; the question supplies the minimum and maximum. Outliers (more than below or above , see quartiles and percentiles) are marked with a cross, and the whisker stops at the most extreme value that isn’t an outlier.
If the box and whiskers are roughly symmetric about the median, the data may be normally distributed. A clearly lopsided box plot suggests they aren’t. (See the normal distribution.)
Worked examples
Section titled “Worked examples”Example 1: Building the table and the points
Section titled “Example 1: Building the table and the points”The commute times of students are in the table in Key ideas. Write down the points you would plot for the cumulative frequency graph.
Solution. Plot (upper boundary, cumulative frequency), starting at :
Check: the last cumulative frequency, , matches the number of students.
Example 2: Median, quartiles and IQR
Section titled “Example 2: Median, quartiles and IQR”Use the graph to estimate the median, the quartiles and the interquartile range of the commute times.
Solution. With :
- Median: go across from . The graph reaches at about .
- : go across from . This is exactly the plotted point , so .
- : go across from . This gives .
Check the median by proportion: in the class the cumulative frequency goes from to , so reaching means going of the way through that class’s students:
Example 3: Percentiles and counting above a value
Section titled “Example 3: Percentiles and counting above a value”Use the graph to estimate:
- (a) the th percentile of the commute times;
- (b) the number of students whose commute is longer than minutes;
- (c) the number of students whose commute is between and minutes.
Solution.
(a) Go across from . That’s in the segment from to :
So of the students commute for minutes or less.
(b) Go up from : halfway between and , the cumulative frequency is about . So about students take minutes or less, and
take longer than minutes.
(c) Up from : about students. Up from : about students. So about students commute for between and minutes.
Example 4: Drawing the box-and-whisker diagram
Section titled “Example 4: Drawing the box-and-whisker diagram”For the same students, the shortest commute was minutes and the longest was minutes. Draw a box-and-whisker diagram, check for outliers, and comment on whether the commute times could be normally distributed.
Solution. Five-number summary: , , , , .
Outliers. With , :
No value is below or above , so there are no outliers. The whiskers run from to and from to .
The diagram. On a number line from to , draw a box from to with a line at , and whiskers out to and .
Symmetry. The two halves of the box are and minutes wide, and the whiskers are and minutes long. That’s close to symmetric, so the commute times could be roughly normally distributed (a box plot can only suggest this, not prove it).
Common mistakes
Section titled “Common mistakes”Plotting at the class midpoint. Midpoints are for estimating the mean. A cumulative frequency counts everything up to the end of the class, so plot it at the upper boundary.
Forgetting the starting point. The graph starts at the lower boundary of the first class with cumulative frequency . Without it, you can’t read anything in the first class.
Reading the wrong axis. The median is a value of the variable (minutes), not a frequency. Go across from on the cumulative frequency axis and read the answer on the horizontal axis.
Answering “how many are above” with the graph reading. The graph gives the number below a value. For “more than minutes”, subtract the reading from the total: , not .
Giving the IQR as a pair of numbers. The IQR is a single number, . “From to ” describes the box, but the IQR is .
Calling the range “60 minus 0”. That’s only the widest the range could be. Use the actual minimum and maximum if they’re given ( minutes in Example 4).
Practice
Section titled “Practice”1. (Warm-up) The heights of students are recorded.
| Height (cm) | |||||
|---|---|---|---|---|---|
| Frequency |
Write down the cumulative frequencies and the points you would plot.
Solution
Cumulative frequencies: , , , , .
Points (upper boundary, cumulative frequency), starting at the lower boundary of the first class:
2. (Warm-up) For the heights in question 1, which cumulative frequency do you go across from to find (a) the median, (b) , (c) the th percentile? Then estimate the median, assuming the points are joined with straight lines.
Solution
(a) . (b) . (c) .
The median is in the class, where the cumulative frequency goes from to :
(More precisely cm.) Notice that the th percentile is exactly the point , so it’s cm.
3. (Core) The masses of eggs from a farm are shown.
| Mass (g) | ||||||
|---|---|---|---|---|---|---|
| Frequency |
Write down the cumulative frequencies. Then, joining the points with straight lines, estimate the median and the lower quartile.
Solution
Cumulative frequencies: , , , , , .
Median: go across from . It lies between and :
: go across from . It lies between and :
4. (Core) For the eggs in question 3, estimate the upper quartile and the interquartile range.
Solution
: go across from , between and :
5. (Core) Eggs heavier than g are sold as “extra large”. Estimate how many of the eggs are extra large.
Solution
Go up from . It’s of the way from to :
So about eggs are g or lighter, and about eggs are extra large.
6. (Core) For the eggs, estimate (a) the th percentile, and (b) the percentage of eggs lighter than g.
Solution
(a) Go across from , between and :
(b) Go up from , which is of the way from to :
, so about of the eggs are lighter than g.
7. (Core) The lightest egg in question 3 was g and the heaviest was g. Using , median and , decide whether there are any outliers and describe the box-and-whisker diagram. Is the distribution roughly symmetric?
Solution
, and . The fences are and . Both and are inside, so there are no outliers.
The box runs from to with the median at ; the whiskers run to and .
The halves of the box are and g wide and the whiskers are and g long, so the distribution is roughly symmetric (slightly longer on the left). The masses could be roughly normally distributed.
8. (Challenge) The table shows the scores of players in an online game.
| Score | |||||
|---|---|---|---|---|---|
| Frequency |
Joining the points of the cumulative frequency graph with straight lines gives a median of . Find and .
Solution
The frequencies add to : , so .
The median, , is in the class. The cumulative frequency at is , and across that class it rises by . Going of the units into the class adds , and this must reach :
Then .
Check: cumulative frequencies ; median . ✓
9. (Challenge) At a second school, a cumulative frequency graph of students’ commute times gives , median and minutes. The shortest commute is minutes, the longest is minutes, and the second longest is minutes.
- (a) Show that the longest commute is an outlier, and describe how the box-and-whisker diagram is drawn.
- (b) Compare the commute times at this school with those in Example 4 (median , IQR , range ).
Solution
(a) and . The upper fence is . Since , the longest commute is an outlier. (The lower fence is , so there are no low outliers.)
Draw the box from to with the median at . The left whisker goes to . The right whisker stops at , the largest value that isn’t an outlier, and is marked with a cross.
(b) The median at the second school ( min) is lower than in Example 4 ( min), so its students typically have shorter commutes. Its IQR ( min) is smaller than min, so the middle half of its commute times are more consistent. (Its range, min, is also smaller than min, though the range is affected by the outlier.)