- Foundation
- About 15 min
- 5 practice questions
Median and mode from a frequency table using cumulative frequency
Read the mode straight from a frequency table, build a cumulative frequency column, and use it to find the median for an odd or an even total.
If something looks wrong, please tell us.
You can already find the mean of a frequency table. Exams just as often ask for the median or the mode of the same table. The mode is almost immediate. The median needs one new tool, the cumulative frequency, which tells you how many observations have been counted up to each row. With it you can find the middle observation without writing out the whole list.
Mode from a frequency table
The mode is the value x with the highest frequency. Look down the f column, find the biggest number, and read across to its x. The classic trap is to answer with the frequency itself. If the value 20 occurs 15 times and that is the most, the mode is 20, not 15.
Cumulative frequency
The cumulative frequency (cf) of a row is the sum of the frequencies of that row and all rows above it, a running total. The last cf always equals N, the total frequency, which is a useful check. If the frequencies are 6, 9, 11 and 4, the cumulative frequencies are 6, 15, 26 and 30.
Frequencies 6, 9, 11 and 4 as a running total
- cf = 6
- cf = 15 6 + 9
- cf = 26 15 + 11
- cf = 30 = N 26 + 4; the last cf equals N.
Median from a frequency table
- Make sure the x values are in ascending order and write the cf column.
- Find N = Σf. If N is odd, you need the observation in position (N + 1) ÷ 2. If N is even, you need the observations in positions N ÷ 2 and N ÷ 2 + 1.
- Go down the cf column to the first cf that is equal to or greater than the position you need. The x in that row is that observation.
- For an even N, average the two observations you found (they are often, but not always, the same).
Worked example 1: an odd total
A hockey team's goals in 25 matches are shown below. Find the median and the mode.
| Goals (x) | Matches (f) | Cumulative frequency (cf) |
|---|---|---|
| 0 | 3 | 3 |
| 1 | 6 | 9 |
| 2 | 8 | 17 |
| 3 | 4 | 21 |
| 4 | 3 | 24 |
| 5 | 1 | 25 |
Working: N = 25 is odd, so the median is the observation in position (25 + 1) ÷ 2 = 13. The cf reaches 9 after the row x = 1, so observations 10 to 17 are all 2. The 13th observation is therefore 2: median = 2 goals. The highest frequency is 8, in the row x = 2, so mode = 2 goals.
Worked example 2: an even total
Thirty students scored the following marks in a test. Find the median and the mode.
| Marks (x) | Students (f) | Cumulative frequency (cf) |
|---|---|---|
| 10 | 4 | 4 |
| 20 | 6 | 10 |
| 30 | 5 | 15 |
| 40 | 9 | 24 |
| 50 | 6 | 30 |
Working: N = 30 is even, so we need the 15th and 16th observations. The cf is exactly 15 at x = 30, so the 15th observation is 30. The 16th is the first one in the next row, so it is 40. Median = (30 + 40) ÷ 2 = 35 marks. The highest frequency is 9, at x = 40, so mode = 40 marks. For comparison the mean is 970 ÷ 30 ≈ 32.3 marks: the three measures need not agree.
Median of 30 marks
- N = 30 is even Need the 15th and 16th observations.
- 15th observation = 30 The cf is exactly 15 at x = 30.
- 16th observation = 40 The first one in the next row.
- Median = 35 marks (30 + 40) ÷ 2
- When a cf equals the position exactly, that observation is the last one of that row, not the first of the next.
- Check that the last cf equals N; if not, you have added wrongly.
- The median and mode are values of x, never frequencies or cumulative frequencies.
Mode = the x with the largest f. Median: build the cf column; find position (N + 1) ÷ 2 for odd N, or positions N ÷ 2 and N ÷ 2 + 1 for even N; read the x of the first row whose cf reaches that position.
Key takeaways: read the mode from the largest frequency; the cumulative frequency column turns a table into an ordered list you can count through; and watch the exact-equality case, where the two middle observations sit in different rows.
Check your understanding
-
1. Values 2, 3, 4, 5 and 6 have frequencies 5, 9, 12, 7 and 3. What is the mode?
- 12
- 4
- 3
- 5
Show answer
Answer: B. The largest frequency is 12, and it belongs to x = 4. So the mode is 4, not 12 (which is its frequency).
-
2. Values 1, 2, 3, 4 and 5 have frequencies 3, 7, 5, 4 and 2. What is the median?
- 2
- 4
- 2.5
- 3
Show answer
Answer: D. N = 21 (odd), so the median is the 11th observation. The cf column is 3, 10, 15, 19, 21. The first cf to reach 11 is 15, at x = 3. Median = 3.
-
3. Frequencies down a table are 6, 9, 11 and 4. What is the cumulative frequency of the third row?
- 26
- 11
- 20
- 30
Show answer
Answer: A. Cumulative frequency of row 3 = 6 + 9 + 11 = 26.
-
4. Values 15, 20, 25 and 30 have frequencies 5, 8, 7 and 6. What is the median?
- 20
- 25
- 22.5
- 21.5
Show answer
Answer: C. N = 26 (even), so we need the 13th and 14th observations. The cf column is 5, 13, 20, 26. The 13th observation is 20 (cf reaches 13 exactly at x = 20) and the 14th is 25. Median = (20 + 25) ÷ 2 = 22.5.
-
5. Values 10, 20, 30 and 40 have frequencies 7, 15, 11 and 9. What is the mode?
- 20
- 15
- 25
- 40
Show answer
Answer: A. The largest frequency is 15, which belongs to x = 20. So the mode is 20.
Sign in to keep track of the lessons you finish.