Cumulative frequency and histograms
When data are grouped into classes, cumulative frequency (a running total) lets you estimate the median and quartiles from a graph. Histograms show grouped continuous data. The AREA of each bar is the frequency, so the classes can have different widths.
Key facts
- Cumulative frequency is the running total of the frequencies.
- Plot each cumulative frequency at the upper end of its class and join the points.
- Median ≈ the value at n/2 on the cumulative frequency axis. Q1 is at n/4 and Q3 at (3n)/4.
- Frequency density = frequency ÷ class width. So frequency = frequency density × class width.
- Estimated mean of grouped data = Σ(f × midpoint) ÷ Σf.
- The modal class has the highest frequency density, which is not always the highest frequency.
Worked examples
Example 1
The times 40 people spent in a shop were grouped: 0–10 min: 4, 10–20: 10, 20–30: 14, 30–40: 8, 40–50: 4. Estimate the median time.
- Cumulative frequencies: 4, 14, 28, 36, 40.
- Half of 40 is 20. Go across from 20 to the line, then down. median ≈ 24 minutes
Answer: About 24.3 minutes
Example 2
In a histogram, the bar for 20 < a ≤ 40 has a frequency density of 1.5. How many values are in that class? Estimate how many are between 25 and 40.
- Find the class width. 40 − 20 = 20
- Frequency: 1.5 × 20 = 30
- From 25 to 40 is a width of 15. 1.5 × 15 = 22.5
Answer: 30; about 22.5
Example 3
Estimate the mean time for the shop data in the first example.
- Midpoints: 5, 15, 25, 35, 45.
- Multiply by the frequencies and add. Σfx = 4×5 + 10×15 + 14×25 + 8×35 + 4×45 = 980
- Divide by the total frequency. 980 ÷ 40 = 24.5
Answer: About 24.5 minutes
Example 4
A cumulative frequency graph shows 80 values. Where do you read the median?
- The median is the middle value.
- Half of 80 is 40: read across from 40 to the curve, then down. 80 ÷ 2 = 40
Answer: At a cumulative frequency of 40
Example 5
40 people were timed. The cumulative frequency at 30 minutes is 26. How many people took longer than 30 minutes?
- 26 people took 30 minutes or less.
- Subtract from the total. 40 − 26 = 14
Answer: 14