Cumulative frequency and box plots
Studying this course? Keep your progress in one place.
Key facts
- Cumulative frequency is a running total, plotted at the upper class boundary.
- Read the median at , the quartiles at and .
- IQR is the spread of the middle half and ignores outliers.
- A box plot shows the five-number summary; the box runs from to .
- Compare data with a median comment and a spread comment.
Cumulative frequency
Cumulative frequency is a running total, plotted against the upper class boundary and joined with a smooth curve.
Cumulative frequency is a running total of the frequencies. It tells you how many values are less than or equal to the upper end of each class.
To draw a cumulative frequency graph, plot each total against the upper class boundary. Start at the lowest value with cumulative frequency , then join the points with a smooth curve (or straight lines if you are told to).
The last point has cumulative frequency equal to the total frequency.
Worked example
Masses: : 4, : 11, : 17, : 8. Find the cumulative frequencies.
- 1
.
- 2
.
- 3
.
- 4
, the total frequency.
Cumulative frequency is plotted at which part of each class?
Median and quartiles
Read the graph at , and on the cumulative frequency axis.
For values, read the graph at these heights on the cumulative frequency axis:
- lower quartile at
- median at
- upper quartile at
Go across from the height to the curve, then down to the horizontal axis and read the value. The quartiles split the data into four equal parts.
- Lower quartile at
- Medianat
- Upper quartile at
Worked example
For the masses above, where do you read the median and quartiles, and roughly what are they?
- 1
at , median at and at .
- 2
Joining points with straight lines, height lies between and , giving a median of about .
- 3
Similarly and .
A cumulative frequency graph has . At what height is the upper quartile read?
Range and interquartile range
The IQR is and ignores extreme values, so it is often better than the range.
The range is the largest value minus the smallest value.
The interquartile range (IQR) is and measures the spread of the middle half of the data.
The IQR is not affected by extreme values, so it is often a better measure of spread than the range. A smaller IQR means the data is more consistent.
- Rangelargest − smallest
- IQR
Worked example
and minutes. Find the IQR.
- 1
IQR minutes.
and . What is the IQR?
Drawing a box plot
A box plot uses the five-number summary: a box from to with a line at the median, and whiskers to the extremes.
A box-and-whisker plot uses a number line and the five-number summary: minimum, lower quartile, median, upper quartile, maximum.
- Draw a scale that covers all values.
- Draw a box from to .
- Draw a vertical line inside the box at the median.
- Draw whiskers from the box out to the minimum and the maximum.
The box contains the middle 50% of the data. Each whisker and each half of the box holds about 25% of the data.
Where does the box of a box plot start and end?
Comparing box plots
Compare the medians for average and the IQRs for spread, always in context.
Compare two data sets using one measure of average and one of spread, always in context.
- Average: the median. A higher median means higher typical values.
- Spread: the IQR or the range. A smaller spread means more consistent values.
About 75% of values lie below , and about 25% lie above it.
- Median
- IQR
| Restaurant X | Restaurant Y | |
|---|---|---|
| Median | 25 min | 26 min |
| IQR | 16 min | 8 min |
Restaurant X
- Median:
- 25 min
- IQR:
- 16 min
Restaurant Y
- Median:
- 26 min
- IQR:
- 8 min
Worked example
Restaurant X has median min and IQR min. Restaurant Y has median min and IQR min. Compare them.
- 1
Average: X has the lower median (), so X is slightly quicker.
- 2
Spread: Y has the smaller IQR (), so Y is more consistent.
Which two measures should a comparison use?
Try an exam question
Journey times have minimum , lower quartile , median , upper quartile and maximum minutes. Work out the interquartile range and the range.
[3 marks]
- [1]IQR .
- [1]IQR minutes.
- [1]Range minutes.
That's the notes covered.
Carry on to the next subtopic.
Try a question
How many students spent more than 50 minutes on homework?
1 mark, marked against the mark scheme
How many students spent more than 50 minutes on homework?
1 mark, marked against the mark scheme