• 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 spent on homework by 40 students
Time (minutes)0-2020-4040-6060-8080-100
Number of students4101484
Both types of cumulative frequency for the homework data
Less thanCumulative frequencyMore than or equal toCumulative frequency
204040
404 + 10 = 142040 − 4 = 36
6014 + 14 = 284036 − 10 = 26
8028 + 8 = 366026 − 14 = 12
10036 + 4 = 408012 − 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

  1. Add a cf column Running totals of the frequencies
  2. Find n/2 Half the total number of observations
  3. Find the median class First class whose cf is greater than n/2
  4. Read l, cf, f, h cf belongs to the class before the median class
  5. Substitute l + [(n/2 − cf) ÷ f] × h

Worked example 1: median homework time

  1. n = 40, so n/2 = 20.
  2. The cumulative frequencies are 4, 14, 28, 36, 40. The first one greater than 20 is 28, so the median class is 40-60.
  3. l = 40, cf = 14 (class before), f = 14, h = 20.
  4. 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-300300-400400-500500-600600-700
f41215109
cf416314150
  1. n = 50, n/2 = 25. The first cf greater than 25 is 31, so the median class is 400-500.
  2. l = 400, cf = 16, f = 15, h = 100.
  3. 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. 1. Four classes have frequencies 3, 7, 10 and 5. What is the cumulative frequency of the third class?

    1. 10
    2. 20
    3. 17
    4. 25
    Show answer

    Answer: B. Cumulative frequency of the third class = 3 + 7 + 10 = 20.

  2. 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?

    1. 10-20
    2. 30-40
    3. 20-30
    4. 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. 3. For a median class 20-30, n = 50, the cumulative frequency before it is 20 and its frequency is 14. Find the median.

    1. 25
    2. 21.43
    3. 27.14
    4. 23.57
    Show answer

    Answer: D. Median = 20 + [(25 − 20) ÷ 14] × 10 = 20 + 50/14 = 20 + 3.57 = 23.57 (approximately).

  4. 4. In a 'more than' cumulative frequency table, what is the first entry (for the lowest class limit)?

    1. The total number of observations
    2. The frequency of the first class
    3. Zero
    4. 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. 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.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true but R is false
    4. 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.

Privacy · Terms · Refunds · Delivery