How do you find the mode and median of grouped data?
Answer in short
For the mode, find the modal class (highest frequency) and use Mode = l + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h. For the median, add a cumulative frequency column, find the first class whose cumulative frequency exceeds n/2, and use Median = l + (n/2 − cf) ÷ f × h.
Stuck on a question? Take a photo and Lagnever AI explains it step by step. Try it for 7 days for ₹2. Get it on Google Play
Mode: the most common value
For ungrouped data, the mode is the value that occurs most often. In Example 4 of the book a bowler’s wickets in 10 matches are listed, and 2 wickets occurs three times, more than any other, so the mode is 2.
For grouped data we can only see which class has the highest frequency. That class is the modal class, and the mode is estimated inside it:
Mode = l + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h
- l = lower limit of the modal class, h = class size
- f₁ = frequency of the modal class
- f₀ = frequency of the class just before it, f₂ = frequency of the class just after it
The formula pushes the mode towards the taller neighbour. If f₀ and f₂ are equal, the mode sits exactly in the middle of the modal class.
Example 6: for the marks of 30 students, the modal class is 40-55 (7 students), with f₀ = 3 and f₂ = 6: Mode = 40 + (7 − 3) ÷ (14 − 3 − 6) × 15 = 40 + (4 ÷ 5) × 15 = 52. So most students scored around 52, while the average was 62. Which one matters depends on the question being asked.
Cumulative frequency
To find the median we need to know how many observations lie below each point. The cumulative frequency of a class is the total frequency of all classes up to and including it. For the marks of 53 students in classes 0-10, 10-20, …, 90-100:
| Marks | f | cf (less than type) |
|---|---|---|
| 0-10 | 5 | 5 |
| 10-20 | 3 | 8 |
| 20-30 | 4 | 12 |
| 30-40 | 3 | 15 |
| 40-50 | 3 | 18 |
| 50-60 | 4 | 22 |
| 60-70 | 7 | 29 |
| 70-80 | 9 | 38 |
| 80-90 | 7 | 45 |
| 90-100 | 8 | 53 |
Read the cf column as “less than 10: 5 students, less than 20: 8 students”, and so on. A more than or equal to table counts down instead: 53 students have 0 or more, 48 have 10 or more, 45 have 20 or more, down to 8 with 90 or more.
Median: the middle value
The median class is the first class whose cumulative frequency is greater than n/2. Here n = 53, so n/2 = 26.5, and the first cf above 26.5 is 29, for the class 60-70.
Median = l + (n/2 − cf) ÷ f × h
- l = lower limit of the median class, h = class size
- cf = cumulative frequency of the class before the median class
- f = frequency of the median class
Median = 60 + (26.5 − 22) ÷ 7 × 10 = 60 + 45/7 = 66.4. About half the students scored below 66.4 and half above. The formula assumes the 7 students of the median class are spread evenly across it, and counts 4.5 of them in.
Two harder patterns
- Data given as a cumulative table. In Example 7, heights of 51 girls are given as “less than 140: 4, less than 145: 11, …”. Subtract to get the frequencies 4, 7, 18, 11, 6, 5. Then n/2 = 25.5 falls in 145-150 and the median is 145 + (25.5 − 11) ÷ 18 × 5 = 149.03 cm.
- A missing frequency. In Example 8, the median 525 is given and two frequencies x and y are unknown. The total gives x + y = 24, and the median formula with l = 500, cf = 36 + x, f = 20, h = 100 gives 525 = 500 + (14 − x) × 5, so x = 9 and y = 15.
Mean, median or mode?
The mean uses every value and is good for comparing groups, but extreme values pull it. The median suits data with extremes, such as a typical wage. The mode answers “which is most common?”. The book adds the empirical relationship 3 Median = Mode + 2 Mean, which is only approximately true for real data.
Read next: mean of grouped data. Exercises 13.2 and 13.3 are fully solved in the NCERT solutions, and the chapter notes give the full picture.
Practice
-
The modal class is 20-30 with f₁ = 12; the class before has 8 and the class after has 6. The mode is:
Show answer
Answer: (b) 24
-
For n = 60, the median class is the first class whose cumulative frequency is greater than:
Show answer
Answer: (a) 30
-
Median class 40-50, n = 50, cf before it = 20, f = 10. The median is:
Show answer
Answer: (b) 45
-
A 'less than' table reads: less than 10: 4, less than 20: 9, less than 30: 15. Write the frequencies of 0-10, 10-20 and 20-30.
Show answer
Answer: Subtract consecutive cumulative frequencies: 0-10: 4, 10-20: 9 − 4 = 5, 20-30: 15 − 9 = 6.
-
A distribution has mean 30 and median 28. Use the empirical relationship to estimate its mode.
Show answer
Answer: 3 Median = Mode + 2 Mean, so Mode = 3 × 28 − 2 × 30 = 84 − 60 = 24.
Questions students ask
Why can't we read the mode straight from a grouped table?
The table shows only how many observations fall in each class, not which exact value repeats most. So we find the modal class and use the formula to estimate the mode inside it, leaning towards the taller neighbouring class.
What is the difference between 'less than' and 'more than' cumulative frequency?
A less than table adds frequencies from the top and pairs them with upper limits: less than 10, less than 20, and so on. A more than or equal to table starts from n and subtracts, paired with lower limits. Either can be used to find the median.
What if n is odd when finding the median of grouped data?
Use n/2 as it is, even if it is not a whole number. In Example 7 of the book, n = 51 and n/2 = 25.5. The median formula estimates a value inside the class, so no averaging of two observations is needed.
Do mode and median need equal class sizes?
The formulas in this chapter assume equal class sizes. The book says both can be found for unequal classes too, but does not teach how. A class like 'below 20' at the edge is fine as long as the median or modal class is a regular one.
Stuck on a question?
Take a photo and Lagnever AI explains it step by step. Try it for 7 days for ₹2.
Get it on Google Play Open in browser
For parents: after the trial, the plan renews monthly by UPI or card autopay. You can cancel anytime in the app.