• Advanced
  • About 18 min
  • 5 practice questions

Median of grouped data: the cumulative frequency formula

Find the median of a grouped frequency distribution with the interpolation formula, handle inclusive classes and cumulative (less-than and more-than) tables, and sanity-check the answer.

If something looks wrong, please tell us.

When data come in classes such as 300-350, you cannot point to the middle observation, because the exact values inside each class are unknown. Instead you locate the class that holds the middle observation, the median class, and then estimate how far into that class the median lies, assuming the observations are spread evenly across it. This lesson is the heart of most hard median questions.

The formula

Median = l + ((N ÷ 2 − cf) ÷ f) × h, where:

  • N is the total frequency and N ÷ 2 the middle position. For grouped data use N ÷ 2, not (N + 1) ÷ 2.
  • The median class is the first class whose cumulative frequency is equal to or greater than N ÷ 2.
  • l is the lower boundary of the median class, f its frequency and h its width.
  • cf is the cumulative frequency of the class before the median class.

The bracket (N ÷ 2 − cf) ÷ f is the fraction of the median class you must walk through to reach the middle position, so it always lies between 0 and 1. If it does not, you have chosen the wrong class.

Worked example 1: daily wages

Wage (₹)fcf
200-25066
250-3001016
300-3501531
350-4001243
400-450750

Working: N = 50, so N ÷ 2 = 25. The first cf to reach 25 is 31, so the median class is 300-350, with l = 300, cf = 16, f = 15, h = 50. Median = 300 + ((25 − 16) ÷ 15) × 50 = 300 + 0.6 × 50 = ₹330. The fraction 0.6 lies between 0 and 1, as it must.

Worked example 2: inclusive classes

Marks of 40 students: 10-19: 4, 20-29: 9, 30-39: 14, 40-49: 8, 50-59: 5. The classes have gaps (19 to 20), so first convert to class boundaries by moving each limit half a unit: 9.5-19.5, 19.5-29.5, 29.5-39.5 and so on. Working: N ÷ 2 = 20; cf = 4, 13, 27, … so the median class is 30-39, with l = 29.5 (not 30), cf = 13, f = 14, h = 10. Median = 29.5 + (7 ÷ 14) × 10 = 29.5 + 5 = 34.5. Using 30 as l would give the wrong answer 35.

Worked example 3: a less-than cumulative table

Sometimes the data arrive already cumulated: marks less than 10: 3, less than 20: 11, less than 30: 26, less than 40: 34, less than 50: 40. The frequencies are the differences: 3, 8, 15, 8, 6. Working: N = 40, N ÷ 2 = 20. The cf passes 20 in the class 20-30 (from 11 to 26), so l = 20, cf = 11, f = 15, h = 10. Median = 20 + (9 ÷ 15) × 10 = 20 + 6 = 26. A more-than table (more than 0: 40, more than 10: 37, …) is handled the same way: take differences to recover the frequencies, then proceed.

Speed checks

  • The median must lie inside the median class.
  • If N ÷ 2 equals a cf exactly, the median is the upper boundary of that class, and the formula applied to the next class gives the same value.
  • The median is the x-coordinate where the less-than ogive (cumulative frequency curve) reaches N ÷ 2; where the less-than and more-than ogives cross is also the median.

Median = l + ((N ÷ 2 − cf) ÷ f) × h. Median class: first class with cumulative frequency ≥ N ÷ 2. Use class boundaries for inclusive classes.

Key takeaways: find N ÷ 2, find the median class with the cumulative frequencies, read off l, cf, f and h with care (cf belongs to the class before), and check that the fraction lies between 0 and 1 and the answer lies inside the class.

Check your understanding

  1. 1. Classes 0-10, 10-20, 20-30, 30-40 and 40-50 have frequencies 5, 9, 12, 9 and 5. What is the median?

    1. 24
    2. 25
    3. 26
    4. 20
    Show answer

    Answer: B. N = 40, N ÷ 2 = 20. cf = 5, 14, 26, … so the median class is 20-30 with cf = 14, f = 12. Median = 20 + ((20 − 14) ÷ 12) × 10 = 20 + 5 = 25.

  2. 2. Classes 10-20, 20-30, 30-40, 40-50 and 50-60 have frequencies 7, 11, 16, 9 and 7. Which is the median class?

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

    Answer: C. N = 50, N ÷ 2 = 25. Cumulative frequencies: 7, 18, 34, … The first to reach 25 is 34, which belongs to 30-40.

  3. 3. For a grouped distribution, l = 40, N = 60, cf = 22, f = 16 and h = 10. What is the median?

    1. 45
    2. 43.75
    3. 46.25
    4. 48
    Show answer

    Answer: A. N ÷ 2 = 30. Median = 40 + ((30 − 22) ÷ 16) × 10 = 40 + 0.5 × 10 = 45.

  4. 4. Classes 1-10, 11-20, 21-30 and 31-40 have frequencies 6, 8, 15 and 11. What is the median?

    1. 25
    2. 24.5
    3. 24
    4. 25.5
    Show answer

    Answer: B. N = 40, N ÷ 2 = 20. cf = 6, 14, 29, … so the median class is 21-30, whose lower boundary is 20.5; cf = 14, f = 15, h = 10. Median = 20.5 + (6 ÷ 15) × 10 = 20.5 + 4 = 24.5.

  5. 5. Less than 100: 8, less than 200: 20, less than 300: 40, less than 400: 50. What is the median?

    1. 250
    2. 212.5
    3. 230
    4. 225
    Show answer

    Answer: D. N = 50, N ÷ 2 = 25. The cf passes 25 between 200 and 300 (from 20 to 40), so l = 200, cf = 20, f = 20, h = 100. Median = 200 + (5 ÷ 20) × 100 = 225.

Privacy · Terms · Refunds · Delivery