• Practice
  • About 17 min
  • 5 practice questions

Median of grouped data

Make classes continuous, build a 'less than' cumulative frequency table, find the median class and use Median = L + [(N/2 − cf) / f] × h.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Find the median of ungrouped data with an odd or even number of scores.
  • Make classes continuous and write 'less than' cumulative frequencies.
  • Identify the median class and estimate the median by the formula.

The mean can be pulled far away by one extreme value. If meal prices at nine places are ₹40 to ₹100 except one at ₹500, the mean is higher than almost every price. The median, the middle value, is not affected by such extremes, which is why it is often the better 'typical' value.

Median of ungrouped data: a reminder

Arrange the n scores in ascending order. If n is odd, the median is the (n + 1)/2 th score. If n is even, it is the mean of the n/2 th and (n + 2)/2 th scores. For example, for 23, 27, 31, 35, 40, 44 (n = 6), the median is the mean of the 3rd and 4th scores: (31 + 35) ÷ 2 = 33.

Continuous classes

Classes such as 140-144, 145-149 leave a gap: a score of 144.6 fits nowhere. When consecutive classes differ by 1, subtract 0.5 from each lower limit and add 0.5 to each upper limit: 139.5-144.5, 144.5-149.5, and so on. Class marks do not change when classes are made continuous.

The median formula

Median = L + [(N/2 − cf) / f] × h, where L = lower limit of the median class, N = total frequency, cf = cumulative frequency of the class before the median class, f = frequency of the median class, h = class width.

— Median of grouped data

Finding the median of grouped data

  1. Make classes continuous Only if there are gaps.
  2. Write 'less than' cumulative frequencies Keep adding the frequencies down the table.
  3. Find N/2 The position of the middle score.
  4. Find the median class The first class whose cumulative frequency reaches N/2.
  5. Apply the formula Read L, cf, f and h, then calculate.

Worked example 1: marks of 80 students (made-up data)

Invented marks for practice
MarksFrequencyCumulative frequency (less than)
0-1055
10-20914
20-301630
30-402252
40-501870
50-601080

Working: N = 80, so N/2 = 40. The cumulative frequency first reaches 40 in the class 30-40 (30 scores are below 30, 52 are below 40), so 30-40 is the median class. L = 30, cf = 30, f = 22, h = 10. Median = 30 + [(40 − 30) ÷ 22] × 10 = 30 + 100/22 ≈ 30 + 4.55 = 34.55 marks.

Worked example 2: classes with gaps (made-up data)

Heights of 50 students (cm): 140-144: 6, 145-149: 12, 150-154: 18, 155-159: 10, 160-164: 4. Working: continuous classes are 139.5-144.5, 144.5-149.5, 149.5-154.5, 154.5-159.5, 159.5-164.5, and cumulative frequencies are 6, 18, 36, 46, 50. N/2 = 25, so the median class is 149.5-154.5, with L = 149.5, cf = 18, f = 18, h = 5. Median = 149.5 + (7 ÷ 18) × 5 = 149.5 + 1.94 ≈ 151.44 cm. Using 150 instead of 149.5 for L would be a mistake.

Tables given in 'less than' form

Sometimes the table already lists cumulative frequencies, such as 'less than 20: 7, less than 30: 19'. The classes are 10-20, 20-30, ..., and each frequency is the difference of consecutive entries: the class 20-30 has 19 − 7 = 12 scores. Then proceed as usual.

Key takeaways: use continuous classes, write 'less than' cumulative frequencies, locate N/2, and read L, cf, f and h for the median class. cf belongs to the class just before the median class, not to the median class itself. The median of grouped data is an estimate.

Check your understanding

  1. 1. What is the median of 12, 15, 18, 21, 24, 27?

    1. 18
    2. 21
    3. 19.5
    4. 19
    Show answer

    Answer: C. There are 6 scores (even), so the median is the mean of the 3rd and 4th: (18 + 21) ÷ 2 = 19.5.

  2. 2. The classes 30-39, 40-49, 50-59 are made continuous. What does 30-39 become?

    1. 29.5-39.5
    2. 30-40
    3. 30.5-39.5
    4. 29-39
    Show answer

    Answer: A. Consecutive classes differ by 1, so subtract 0.5 from the lower limit and add 0.5 to the upper limit: 29.5-39.5.

  3. 3. Classes 0-10, 10-20, 20-30, 30-40, 40-50 have cumulative frequencies 8, 20, 38, 52, 60. Which is the median class?

    1. 10-20
    2. 30-40
    3. 40-50
    4. 20-30
    Show answer

    Answer: D. N = 60, so N/2 = 30. The cumulative frequency is 20 before the class 20-30 and 38 at its end, so the 30th score lies in 20-30.

  4. 4. For the median class 20-30 in the previous question, f = 18 and cf = 20. What is the median?

    1. 25.56
    2. 30
    3. 23.33
    4. 26.11
    Show answer

    Answer: A. Median = L + [(N/2 − cf) ÷ f] × h = 20 + [(30 − 20) ÷ 18] × 10 = 20 + 100/18 ≈ 20 + 5.56 = 25.56.

  5. 5. A table says 'less than 20: 7' and 'less than 30: 19'. What is the frequency of the class 20-30?

    1. 19
    2. 12
    3. 26
    4. 7
    Show answer

    Answer: B. 19 scores are below 30 and 7 of them are below 20, so 19 − 7 = 12 scores lie in 20-30.

Privacy · Terms · Refunds · Delivery