ExamShortcut

Statistics

Log in to track
high importance~3 Q in Tier 131 formulasโšก 10 shortcuts5 subtopics
All subtopicsยทSubtopic 3 of 5

Median and mode of grouped data

Log in to track
โฑ 5 min read๐Ÿงฉ 5 question types๐ŸŽฏ 11 practice Q

By Vinay ยท How we check content ยท Spotted a mistake? Tell us

The idea in one minute

Grouped data gives class intervals and frequencies instead of individual observations. Use class midpoints to estimate the mean and cumulative frequencies to locate the median class. The grouped median and mode interpolate within a class; they need not equal the exact values of the ungrouped data.

Use continuous class boundaries. Intervals 10โ€“20, 20โ€“30, โ€ฆ already meet. For integer-valued inclusive classes 10โ€“19, 20โ€“29, โ€ฆ use boundaries 9.5โ€“19.5, 19.5โ€“29.5, โ€ฆ before interpolating.

01

Reading a frequency table

A grouped table only says how many values lie in each band, like 20-30 with frequency 10.

Two columns do all the work:

  • Midpoint xx: the middle of the band, 2020-30โ†’2530 \rightarrow 25.
  • Cumulative frequency (cf): a running total of frequencies down the table.

Tip: Build the cf column once. Median questions, quartile questions and distribution questions all read from it.

02

Mean by midpoints

Treat every value in a class as if it sat at the midpoint.

xห‰=โˆ‘fxโˆ‘f\bar{x} = \frac{\sum f x}{\sum f}

Classes 0-10 and 10-20 with frequencies 4 and 6: โˆ‘fx=4ร—5+6ร—15=110\sum fx = 4 \times 5 + 6 \times 15 = 110, โˆ‘f=10\sum f = 10, mean =11= 11.

Watch: Midpoints, not class limits. Using 10 for the class 10-20 (instead of 15) is the classic slip.

03

Median from the cumulative column

Half the values lie below the median, so find the class whose cumulative frequency first reaches n2\dfrac{n}{2}.

Median=L+n2โˆ’cfร—h\text{Median} = L + \frac{\frac{n}{2} - c}{f} \times h

LL is the lower limit of that class, cc the cumulative frequency before it, ff its frequency, hh its width.

Table: classes 0-10, 10-20, 20-30, 30-40, 40-50 with frequencies 4, 6, 10, 8, 2. Then n=30n = 30, n2=15\dfrac{n}{2} = 15. The cf column runs 4, 10, 20, 28, 30; the first cf to reach 15 is 20, so the median class is 20-30.

Median=20+15โˆ’1010ร—10=25\text{Median} = 20 + \frac{15 - 10}{10} \times 10 = 25

Rule: The median class is where cf crosses n/2n/2, never simply the biggest frequency.

04

Mode from the tallest bar

The modal class has the highest frequency. Then interpolate inside it:

Mode=L+fmโˆ’f12fmโˆ’f1โˆ’f2ร—h\text{Mode} = L + \frac{f_m - f_1}{2f_m - f_1 - f_2} \times h

fmf_m is the modal class frequency, f1f_1 and f2f_2 the frequencies just before and after.

Same classes with frequencies 5, 8, 12, 6, 3: modal class 20-30, so L=20L = 20, fm=12f_m = 12, f1=8f_1 = 8, f2=6f_2 = 6, h=10h = 10:

Mode=20+12โˆ’82ร—12โˆ’8โˆ’6ร—10=20+4=24\text{Mode} = 20 + \frac{12 - 8}{2 \times 12 - 8 - 6} \times 10 = 20 + 4 = 24

Tip: Equal neighbours (f1=f2f_1 = f_2) put the mode exactly at L+h/2L + h/2.

05

A missing frequency from the median

Give the unknown a letter, extend the cf column through it, and apply the median rule.

Classes 10-20, 20-30, 30-40, 40-50 with frequencies 7, 8, xx, 12 and median 32. Then n=27+xn = 27 + x, n2\dfrac{n}{2} must land in 30-40, where c=15c = 15:

30+27+x2โˆ’15xร—10=32โ‡’x=530 + \frac{\frac{27+x}{2} - 15}{x} \times 10 = 32 \Rightarrow x = 5
06

A missing frequency from the mean

The mean fixes โˆ‘fx\sum fx. Let the unknown be ff and expand both sides.

Classes 0-10, 10-20, 20-30, 30-40, 40-50 with frequencies 5, ff, 11, 9, 5 and mean 25:

840+15f30+f=25โ‡’840+15f=750+25fโ‡’f=9\frac{840 + 15f}{30 + f} = 25 \Rightarrow 840 + 15f = 750 + 25f \Rightarrow f = 9

Watch: Keep the midpoint of the missing class in the numerator; students often drop it along with the frequency.

07

Inclusive classes need boundaries

For integer-valued classes 1010โ€“1919, 2020โ€“2929, 3030โ€“3939 with frequencies 4,8,84,8,8, use boundaries 9.5,19.5,29.5,39.59.5,19.5,29.5,39.5. Here n/2=10n/2=10, so the median class is 19.519.5โ€“29.529.5 and the estimate is 19.5+(10โˆ’4)ร—10/8=2719.5+(10-4)\times10/8=27. Using the printed lower limit 2020 would incorrectly give 27.527.5.

Watch: Grouped interpolation uses assumptions within each class. With unequal widths, the tallest frequency count need not be the tallest histogram bar; compare frequency densities before identifying a modal class.

08

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common3 practice Q

Median of grouped data

How to spot it:

A frequency table with equal class widths; the median is asked.

Med=L+n2โˆ’cfร—h\text{Med} = L + \frac{\frac{n}{2} - c}{f} \times h
Method
  1. Total the frequencies to get n.

  2. Build the cf column and find where it crosses n2\frac{n}{2}.

  3. Read LL, cc, ff, hh from that class and substitute.

Why it works:

Values spread evenly inside the median class, so we walk in proportion.

Try this

Find the median:

Class0-1010-2020-3030-4040-50
Frequency461082
Show solution
  1. n=30n = 30, so n/2=15n/2 = 15.

  2. cf: 4, 10, 20, 28, 30. Median class 20-30: L=20L=20, c=10c=10, f=10f=10, h=10h=10.

  3. Median =20+15โˆ’1010ร—10=25= 20 + \dfrac{15-10}{10} \times 10 = 25.

Answer

25

Type 2common1 practice Q

Mode of grouped data

How to spot it:

A frequency table; the most frequent class is obvious and the exact mode is asked.

Mode=L+fmโˆ’f12fmโˆ’f1โˆ’f2ร—h\text{Mode} = L + \frac{f_m - f_1}{2f_m - f_1 - f_2} \times h
Method
  1. Spot the class with the highest frequency.

  2. Note its neighbours' frequencies.

  3. Substitute into the mode formula.

Why it works:

The mode sits inside the tallest bar, pulled toward the taller neighbour.

Try this

Find the mode:

Class0-1010-2020-3030-4040-50
Frequency581263
Show solution
  1. Modal class 20-30: L=20L = 20, fm=12f_m = 12, f1=8f_1 = 8, f2=6f_2 = 6.

  2. Denominator =2ร—12โˆ’8โˆ’6=10= 2 \times 12 - 8 - 6 = 10.

  3. Mode =20+410ร—10=24= 20 + \dfrac{4}{10} \times 10 = 24.

Answer

24

Type 3occasional2 practice Q

Missing frequency from the median

How to spot it:

One frequency in the table is x or unknown; the median is given.

L+n2โˆ’cfร—h=MedL + \frac{\frac{n}{2} - c}{f} \times h = \text{Med}
Method
  1. Write n including the unknown.

  2. Extend the cf column through the unknown class.

  3. Apply the median formula and solve.

Why it works:

The stated median names the class, and the formula turns it into an equation.

Try this

The median of the following data is 32. Find x.

Class10-2020-3030-4040-50
Frequency78x12
Show solution
  1. n=27+xn = 27 + x. Median 32 lies in 30-40: L=30L = 30, c=15c = 15, f=xf = x.

  2. 30+(27+x)/2โˆ’15xร—10=3230 + \dfrac{(27+x)/2 - 15}{x} \times 10 = 32.

  3. Solving gives x=5x = 5.

Answer

x = 5

Type 4very common3 practice Q

Mean of grouped data

How to spot it:

A frequency table (or a midpoints row) is given; the mean is asked.

xห‰=โˆ‘fxโˆ‘f\bar{x} = \frac{\sum f x}{\sum f}
Method
  1. Write the midpoint of each class.

  2. Multiply midpoint by frequency and total them.

  3. Divide by the total frequency.

Why it works:

Each class acts like its whole mass sitting at its midpoint.

Try this

Find the mean:

Midpoint5152535
Frequency4673
Show solution
  1. โˆ‘fx=20+90+175+105=390\sum fx = 20 + 90 + 175 + 105 = 390.

  2. โˆ‘f=20\sum f = 20.

  3. Mean =390รท20=19.5= 390 \div 20 = 19.5.

Answer

19.5

Type 5occasional

Missing frequency from the mean

How to spot it:

One frequency is unknown; the mean of the distribution is given.

โˆ‘fxโˆ‘f=xห‰\frac{\sum f x}{\sum f} = \bar{x}
Method
  1. Compute the known part of โˆ‘fx\sum fx and of nn.

  2. Add the unknown times its midpoint (and once to nn).

  3. Set the ratio equal to the mean and solve.

Why it works:

The mean fixes the total, and the unknown appears in it linearly.

Try this

The mean of the following distribution is 25. Find f.

Class0-1010-2020-3030-4040-50
Frequency5f1195
Show solution
  1. Known โˆ‘fx=25+275+315+225=840\sum fx = 25 + 275 + 315 + 225 = 840; plus 15f15f.

  2. n=30+fn = 30 + f.

  3. 840+15f30+f=25โ‡’840+15f=750+25fโ‡’f=9\dfrac{840 + 15f}{30 + f} = 25 \Rightarrow 840 + 15f = 750 + 25f \Rightarrow f = 9.

Answer

f = 9

09

Formula sheet

Grouped mean
xห‰=โˆ‘fxโˆ‘f\bar{x} = \frac{\sum f x}{\sum f}

x is the midpoint of each class.

Grouped median
Med=L+n2โˆ’cfร—h\text{Med} = L + \frac{\frac{n}{2} - c}{f} \times h

L: lower class boundary; c: cumulative frequency before the median class; f: its frequency; h: class width. This is an estimate.

Grouped mode
Mode=L+fmโˆ’f12fmโˆ’f1โˆ’f2ร—h\text{Mode} = L + \frac{f_m - f_1}{2f_m - f_1 - f_2} \times h

For equal-width continuous classes: L is the lower modal-class boundary, f_m its frequency, f_1 and f_2 the neighbouring frequencies.

10

Shortcuts that save time

โšก Build the cf column once, use it thrice

Median, quartiles and 'how many below a value' questions all read the same cumulative column. Write it before touching any formula.

Example

Frequencies 4, 6, 10, 8, 2 for classes 0-10 to 40-50. How many values are below 30?

Show solution
  1. cf column: 4, 10, 20, 28, 30.

  2. Values below 30 sit in the first two classes.

  3. 4+6=104 + 6 = 10.

Answer

10

โšก Cross-check the median class fast

Half of n must fall inside the median class. Glance: the cf before it is below n/2, the cf through it is at or above n/2.

Example

Frequencies 5, 8, 12, 6, 3 for classes 0-10 to 40-50. Which class holds the median?

Show solution
  1. n=34n = 34, so n/2=17n/2 = 17.

  2. cf runs 5, 13, 25, 31, 34.

  3. 17 first crossed in 20-30.

Answer

20-30

11

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Using class limits instead of midpoints for the mean.

Midpoint of 10-20 is 15.

Mistake 02

Picking the class with the highest frequency as the median class.

The median class is where the cumulative frequency crosses n/2.

Mistake 03

Taking c as the cumulative frequency of the median class.

c is the cumulative frequency of the class before it.

Mistake 04

Mixing widths: classes of 10 used with h = 5.

Read h from the actual class width, including any gap.

Mistake 05

Solving a missing-frequency mean without the missing midpoint.

The unknown frequency multiplies its class midpoint in the numerator.

12

Quick revision

Read this the night before the exam.

  • Grouped mean =โˆ‘fxโˆ‘f= \dfrac{\sum fx}{\sum f}, xx = midpoint.

  • Median =L+n/2โˆ’cfร—h= L + \dfrac{n/2 - c}{f} \times h; median class where cf crosses n/2n/2.

  • Mode =L+fmโˆ’f12fmโˆ’f1โˆ’f2ร—h= L + \dfrac{f_m - f_1}{2f_m - f_1 - f_2} \times h.

  • cf column first; it answers three question types.

  • Missing frequency: letter in, solve with the given average.

  • Check the median class: cf below n/2 before, at or above after.

13

Practice: 11 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test ยท 11 questions

Suggested time 10 min ยท wrong answers go to your mistake notebook automatically.