IB MYP Extended Mathematics · Statistics and probability
Cumulative frequency
1Building a cumulative frequency table
Cumulative frequency is a running total of the frequencies. It tells you how many values are less than or equal to a given point.
It is used with grouped continuous data, where the individual values are unknown.
Times taken by 50 students to finish a puzzle
- $0 < t \le 10$: frequency 5. Cumulative frequency 5.
- $10 < t \le 20$: frequency 12. Cumulative frequency 5 + 12 = 17.
- $20 < t \le 30$: frequency 18. Cumulative frequency 35.
- $30 < t \le 40$: frequency 10. Cumulative frequency 45.
- $40 < t \le 50$: frequency 5. Cumulative frequency 50.
Read the table as: 17 students took 20 minutes or less; 35 took 30 minutes or less.
The last cumulative frequency must equal the total frequency. If it does not, an addition is wrong.
From the table you can answer questions directly: the number who took more than 30 minutes is 50 − 35 = 15.
Check yourself
Frequencies in four classes are 3, 8, 6 and 3. What is the cumulative frequency at the end of the third class?
Show the answer
17
3 + 8 + 6 = 17.
2Drawing the cumulative frequency curve
A cumulative frequency curve (or ogive) plots cumulative frequency against the variable.
Rules:
- Plot each cumulative frequency against the upper boundary of its class, because all the values in the class have been counted by then.
- Add a point at the lower boundary of the first class with cumulative frequency 0.
- Join the points with a smooth curve (or straight lines for a cumulative frequency polygon).
- The vertical axis is cumulative frequency; the horizontal axis is the variable.
For the puzzle data, plot (0, 0), (10, 5), (20, 17), (30, 35), (40, 45) and (50, 50).
Read across from half the total frequency, then down, to estimate the median
The curve has a characteristic S shape: it rises slowly, then steeply where most of the data lie, then levels off. It can never go down, because a running total cannot decrease.
The commonest error is plotting at the midpoint of the class. Midpoints are for estimating the mean, not for cumulative frequency.
Check yourself
At which value of each class is cumulative frequency plotted?
Show the answer
The upper boundary
By the upper boundary, every value in the class has been counted.
3Median, quartiles and interquartile range
The curve gives estimates of the median and quartiles. For a total frequency $n$:
- Median: read across from $\frac{n}{2}$ on the vertical axis to the curve, then down.
- Lower quartile $Q_1$: read from $\frac{n}{4}$.
- Upper quartile $Q_3$: read from $\frac{3n}{4}$.
- Interquartile range = $Q_3 - Q_1$.
The puzzle data, n = 50
- Median: read from 25. It lies in the class 20 to 30, and the graph gives about 24 minutes.
- $Q_1$: read from 12.5. About 16 minutes.
- $Q_3$: read from 37.5. About 32.5 minutes.
- IQR: 32.5 − 16 = 16.5 minutes.
These can be checked by linear interpolation, assuming the values are spread evenly through a class.
Interpolating the median
- The 25th value lies in $20 < t \le 30$, which contains the 18th to the 35th values.
- It is 25 − 17 = 8 values into a class of 18.
- Median ≈ 20 + (8 ÷ 18) × 10 ≈ 24.4 minutes.
Answers from a graph are estimates. Show the reading lines on your graph, and accept small differences from interpolated values.
Check yourself
A cumulative frequency curve represents 80 values. From which cumulative frequency is the upper quartile read?
Show the answer
60
Three quarters of 80.
4Percentiles and other readings
A percentile divides the data into hundredths. The 90th percentile is the value below which 90% of the data lie.
- The median is the 50th percentile; the quartiles are the 25th and 75th.
- To find the $p$th percentile, read from $\frac{p}{100} \times n$.
The 90th percentile of the puzzle times
- 90% of 50 is 45.
- Reading from a cumulative frequency of 45 gives 40 minutes.
- So 10% of students took longer than 40 minutes.
The curve also works the other way: start from a value on the horizontal axis and read up.
How many students took more than 35 minutes?
- Read up from 35 minutes to the curve, then across: about 40.
- So about 40 students took 35 minutes or less.
- More than 35 minutes: 50 − 40 = 10 students, or 20%.
A pass mark
- In a test taken by 200 students, the top 15% receive a distinction.
- 85% of 200 is 170, so read from a cumulative frequency of 170.
- The mark read from the curve is the lowest distinction mark.
For "more than" questions, always subtract from the total.
Check yourself
120 people took a test. From which cumulative frequency would you read the 40th percentile?
Show the answer
48
40% of 120 is 48.
5Box plots and comparing distributions
The five values from a cumulative frequency curve (minimum, $Q_1$, median, $Q_3$, maximum) are exactly what a box plot needs. The two are often drawn on the same horizontal scale.
For grouped data, take the minimum as the lower boundary of the first class and the maximum as the upper boundary of the last, unless told otherwise.
A box plot for the puzzle data
- Minimum 0, $Q_1$ about 16, median about 24, $Q_3$ about 32.5, maximum 50.
- Draw a box from 16 to 32.5 with a line at 24, and whiskers to 0 and 50.
Comparing two distributions: make one comment on the average and one on the spread, with figures and context.
Two schools
- School A: median 24 minutes, IQR 16.5. School B: median 31 minutes, IQR 9.
- Students at School A were quicker on the whole, since their median time is 7 minutes lower.
- Times at School B were more consistent, since its interquartile range is smaller.
Shape shows on both diagrams. If the median is nearer $Q_1$ than $Q_3$, the upper half of the data is more spread out and the distribution has a tail to the right (positive skew). On the curve, steep sections show where the data are concentrated.
Two curves on the same axes can be compared at a glance: the curve further to the left has the smaller values.
Check yourself
Which five values are needed to draw a box plot?
Show the answer
Minimum, lower quartile, median, upper quartile and maximum
These are read from the data or from a cumulative frequency curve.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera