- Foundation
- About 20 min
- 5 practice questions
Cumulative frequency and the median of grouped data
Build less-than and more-than cumulative frequency tables, find the median class, and calculate the median with Median = l + [(n/2 − cf) ÷ f] × h.
If something looks wrong, please tell us.
By the end of this lesson you can
- Make a cumulative frequency table of the 'less than' and 'more than' types.
- Locate the median class using n/2.
- Calculate the median of grouped data and interpret it.
The median is the middle value when the data is arranged in order: half the observations are below it and half above. For grouped data we cannot list the values in order, so we first build a running total of frequencies, called the cumulative frequency, to find the class that contains the middle observation.
Cumulative frequency
The cumulative frequency (cf) of a class is the sum of the frequencies of that class and all the classes before it. It answers 'how many observations are less than the upper limit of this class?'. A more than table counts from the other end: how many observations are at least the lower limit.
| Time (minutes) | 0-20 | 20-40 | 40-60 | 60-80 | 80-100 |
|---|---|---|---|---|---|
| Number of students | 4 | 10 | 14 | 8 | 4 |
| Less than | Cumulative frequency | More than or equal to | Cumulative frequency |
|---|---|---|---|
| 20 | 4 | 0 | 40 |
| 40 | 4 + 10 = 14 | 20 | 40 − 4 = 36 |
| 60 | 14 + 14 = 28 | 40 | 36 − 10 = 26 |
| 80 | 28 + 8 = 36 | 60 | 26 − 14 = 12 |
| 100 | 36 + 4 = 40 | 80 | 12 − 8 = 4 |
Notice that the last 'less than' figure and the first 'more than' figure both equal n, the total number of observations.
The median class and the formula
Find n/2. The median class is the class whose cumulative frequency is greater than and nearest to n/2.
Median = l + [(n/2 − cf) ÷ f] × h, where l = lower limit of the median class, n = number of observations, cf = cumulative frequency of the class BEFORE the median class, f = frequency of the median class, h = class size.
Finding the median of grouped data
- Add a cf column Running totals of the frequencies
- Find n/2 Half the total number of observations
- Find the median class First class whose cf is greater than n/2
- Read l, cf, f, h cf belongs to the class before the median class
- Substitute l + [(n/2 − cf) ÷ f] × h
Worked example 1: median homework time
- n = 40, so n/2 = 20.
- The cumulative frequencies are 4, 14, 28, 36, 40. The first one greater than 20 is 28, so the median class is 40-60.
- l = 40, cf = 14 (class before), f = 14, h = 20.
- Median = 40 + [(20 − 14) ÷ 14] × 20 = 40 + (6 ÷ 14) × 20 = 40 + 8.57 = 48.57 minutes (approximately).
So about half the students spend less than 48.57 minutes on homework. Compare with the mean of 49 minutes: they are close because the data is fairly balanced.
Worked example 2: median electricity bill
| Bill (₹) | 200-300 | 300-400 | 400-500 | 500-600 | 600-700 |
|---|---|---|---|---|---|
| f | 4 | 12 | 15 | 10 | 9 |
| cf | 4 | 16 | 31 | 41 | 50 |
- n = 50, n/2 = 25. The first cf greater than 25 is 31, so the median class is 400-500.
- l = 400, cf = 16, f = 15, h = 100.
- Median = 400 + [(25 − 16) ÷ 15] × 100 = 400 + 0.6 × 100 = ₹460.
Key takeaways
Key takeaways: cumulative frequency is a running total; the median class is the first with cf greater than n/2; in the formula, cf is the cumulative frequency of the class before the median class and f is the median class's own frequency; the median must lie inside the median class.
Check your understanding
-
1. Four classes have frequencies 3, 7, 10 and 5. What is the cumulative frequency of the third class?
- 10
- 20
- 17
- 25
Show answer
Answer: B. Cumulative frequency of the third class = 3 + 7 + 10 = 20.
-
2. For 50 observations, the cumulative frequencies of classes 0-10, 10-20, 20-30, 30-40, 40-50 are 8, 20, 34, 45, 50. Which is the median class?
- 10-20
- 30-40
- 20-30
- 40-50
Show answer
Answer: C. n/2 = 25. The first cumulative frequency greater than 25 is 34, which belongs to 20-30, so 20-30 is the median class.
-
3. For a median class 20-30, n = 50, the cumulative frequency before it is 20 and its frequency is 14. Find the median.
- 25
- 21.43
- 27.14
- 23.57
Show answer
Answer: D. Median = 20 + [(25 − 20) ÷ 14] × 10 = 20 + 50/14 = 20 + 3.57 = 23.57 (approximately).
-
4. In a 'more than' cumulative frequency table, what is the first entry (for the lowest class limit)?
- The total number of observations
- The frequency of the first class
- Zero
- Half the number of observations
Show answer
Answer: A. Every observation is more than or equal to the lowest limit, so the first entry of a 'more than' table is the total n.
-
5. Assertion (A): In the median formula, cf is the cumulative frequency of the median class. Reason (R): The median class is the class whose cumulative frequency is greater than and nearest to n/2.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true but R is false
- A is false but R is true
Show answer
Answer: D. R is true: that is how the median class is chosen. A is false: in the formula, cf is the cumulative frequency of the class just before the median class.
Sign in to keep track of the lessons you finish.