ExamShortcut
high importance~3 Q in Tier 120 formulas⚡ 10 shortcuts5 subtopics

Median and mode of grouped data

🔒 Log in to track

For class-interval data:

Median (continuous classes, width hh): locate the median class where cumulative frequency first reaches n/2n/2, then median=L+n2−cff h\text{median}=L+\frac{\frac{n}{2}-cf}{f}\,h (LL = lower limit of median class, cfcf = cumulative frequency before it, ff = its frequency).

Mode: the modal class has the highest frequency f1f_1 (neighbours f0f_0 below, f2f_2 above): mode=L+f1−f02f1−f0−f2 h\text{mode}=L+\frac{f_1-f_0}{2f_1-f_0-f_2}\,h

Detailed notes

The grouped median

For class-interval data with class width hh, build the cumulative frequency (cf) column. The median class is where cf first reaches n/2n/2. Then: median=L+n2−cfprevf h\text{median} = L + \frac{\frac{n}{2} - cf_{\text{prev}}}{f}\,h LL = lower limit of the median class, ff = its frequency, cfprevcf_{\text{prev}} = cumulative frequency before that class. The two classic slips: using n/2n/2's cf inside the numerator (must be the previous cf), and forgetting grouped data always uses n2\frac{n}{2}, never n+12\frac{n+1}{2}.

The grouped mode

The modal class has the highest frequency f1f_1; its neighbours are f0f_0 (below) and f2f_2 (above): mode=L+f1−f02f1−f0−f2 h\text{mode} = L + \frac{f_1 - f_0}{2f_1 - f_0 - f_2}\,h If the modal class sits at an edge, the missing neighbour counts 0. The denominator 2f1−f0−f22f_1 - f_0 - f_2 is positive whenever f1f_1 is a strict maximum.

Missing frequency questions

A frequency is unknown, the median (or mode) given. Reverse the median formula: the known cf column pins the median class, giving one linear equation in the unknown frequency. Solve for it; verify it keeps the median class where you assumed.

Grouped mean via midpoints

xˉ=∑fimi∑fi\bar{x} = \frac{\sum f_i m_i}{\sum f_i} with mim_i the class midpoints. CGL prefers the shortcut/assumed-mean method internally but the direct formula answers every exam-sized table. Convert inclusive classes (10–19) to exclusive (9.5–19.5) before computing if the formula demands continuity.

Worked example: grouped median

Classes 0–10, 10–20, 20–30, 30–40, 40–50 with frequencies 5, 8, 12, 9, 6 (n=40n = 40). Cumulative frequencies: 5, 13, 25, 34, 40. Since n2=20\frac{n}{2} = 20, the median class is 20–30 (the first cf that reaches 20). With L=20L = 20, cfprev=13cf_{\text{prev}} = 13, f=12f = 12, h=10h = 10: median=20+20−1312×10≈25.83\text{median} = 20 + \frac{20 - 13}{12} \times 10 \approx 25.83

Worked example: grouped mode and mean

Same table: the modal class is 20–30 (f1=12f_1 = 12, f0=8f_0 = 8, f2=9f_2 = 9). mode=20+12−824−8−9×10=20+407≈25.71\text{mode} = 20 + \frac{12 - 8}{24 - 8 - 9} \times 10 = 20 + \frac{40}{7} \approx 25.71 Mean via midpoints 5, 15, 25, 35, 45: 25+120+300+315+27040=25.75\frac{25 + 120 + 300 + 315 + 270}{40} = 25.75. All three measures sit close together, so the table is nearly symmetric — a free sanity check on your arithmetic.

Quick revision

  • Median: cf column → median class → L+n/2−cfprevfhL + \frac{n/2 - cf_{\text{prev}}}{f}h.
  • Mode: tallest class → L+f1−f02f1−f0−f2hL + \frac{f_1 - f_0}{2f_1 - f_0 - f_2}h.
  • Grouped always uses n/2n/2.
  • Missing frequency: reverse the median formula — one linear equation.
  • Mean: midpoints × frequencies ÷ total frequency.

Types of questions asked

Every way this subtopic shows up in exams — how to recognise it, the formula or logic to use, and a solved example.

Type 1: Grouped medianvery common3 practice Q
How to spot it:

A frequency table with class intervals; the median asked — occasionally with a missing frequency.

cf column → first cf $\ge n/2$ → $L + \frac{n/2 - cf_{\text{prev}}}{f}h$.
  1. Build the cf column; locate the median class by n/2n/2.
  2. Read LL, ff, hh, cfprevcf_{\text{prev}} from the table.
  3. Substitute; keep the fraction exact.

Why: the formula is mechanical once the median class is right — all errors live in that step.

Example: Classes 0-10, 10-20, 20-30, 30-40, 40-50 have frequencies 4, 6, 10, 8, 2. The median is:

n=30n = 30, n/2=15n/2 = 15: cf reaches 20 at 20-30. Median =20+15−1010×10=25= 20 + \frac{15-10}{10} \times 10 = 25.

Type 2: Grouped modecommon2 practice Q
How to spot it:

A frequency table; the mode asked — the modal class is the tallest one.

$\text{mode} = L + \frac{f_1 - f_0}{2f_1 - f_0 - f_2}h$.
  1. Identify the modal class (highest frequency).
  2. Note f0f_0, f2f_2 from the neighbours (0 if at an edge).
  3. Substitute; the answer sits inside the modal class.

Why: the formula shifts L toward the heavier neighbour — that is all it does.

Example: Classes 10-20, 20-30, 30-40, 40-50, 50-60 have frequencies 5, 8, 12, 6, 3. The mode is:

Modal class 30-40: 30+12−824−8−6×10=30+4=3430 + \frac{12-8}{24-8-6} \times 10 = 30 + 4 = 34.

Type 3: Missing frequency from the mediancommon2 practice Q
How to spot it:

One frequency unknown; the median of the grouped data given — find it.

Assume the median class from the known structure, reverse the formula: $n/2 - cf_{\text{prev}} = \frac{f(\text{median} - L)}{h}$, solve for the unknown.
  1. Write the cf column in terms of the unknown.
  2. Force the median to fall in the plausible class; substitute.
  3. Solve the linear equation; verify the class assumption holds.

Why: the median formula inverted is one linear equation — nothing deeper.

Example: The median of grouped data with classes 0-20 (f=8), 20-40 (f=x), 40-60 (f=10), 60-80 (f=6) is 38. Find x (n=24+xn = 24+x).

n/2=12+x2n/2 = 12 + \frac{x}{2}; median class 20-40: 20+12+x2−8x×20=38⇒4+x2x=1820⇒80+10x=18x⇒x=1020 + \frac{12 + \frac{x}{2} - 8}{x} \times 20 = 38 \Rightarrow \frac{4 + \frac{x}{2}}{x} = \frac{18}{20} \Rightarrow 80 + 10x = 18x \Rightarrow x = 10.

Type 4: Grouped mean via midpointsoccasional3 practice Q
How to spot it:

A small frequency table; the mean asked (or a missing frequency via the mean).

$\bar{x} = \frac{\sum f_i m_i}{\sum f_i}$; midpoint $m_i = \frac{L_i + U_i}{2}$.
  1. Write midpoints and multiply by frequencies.
  2. Sum the products; divide by total frequency.
  3. For inclusive classes, convert to exclusive first if required.

Why: the grouped mean treats each class as concentrated at its midpoint — the exam tables are small enough for direct work.

Example: Classes 0-10, 10-20, 20-30 have frequencies 5, 8, 7. The mean (via midpoints) is:

5×5+8×15+7×2520=33020=16.5\frac{5 \times 5 + 8 \times 15 + 7 \times 25}{20} = \frac{330}{20} = 16.5.

Formulas

Grouped median
median=L+n2−cff h\text{median}=L+\frac{\frac{n}{2}-cf}{f}\,h
Grouped mode
mode=L+f1−f02f1−f0−f2 h\text{mode}=L+\frac{f_1-f_0}{2f_1-f_0-f_2}\,h
Cumulative frequency
cfi=f1+f2+⋯+ficf_i=f_1+f_2+\cdots+f_i
Grouped mean (midpoints)
xˉ=∑fimi∑fi,mi=Li+Ui2\bar{x}=\frac{\sum f_i m_i}{\sum f_i},\quad m_i=\frac{L_i+U_i}{2}

Shortcut tricks

⚡ Find the median class by cf, not by eye

Build the cf column, stop at the first cf ≥n/2\ge n/2. That row's lower limit is LL. Everything else is substitution.

Example: Classes 0-10, 10-20, 20-30, 30-40, 40-50 have frequencies 4, 6, 10, 8, 2. Find the median.

n=30n=30, n/2=15n/2=15; cf reaches 20 at 20-30. L=20L=20, cf=10cf=10, f=10f=10, h=10h=10: median =20+510×10=25=20+\frac{5}{10}\times10=25.

⚡ Modal class first, formula second

The modal class is just the tallest bar. If it sits at an edge, the missing neighbour counts 0 in the formula.

Example: Classes 10-20, 20-30, 30-40, 40-50, 50-60 have frequencies 5, 8, 12, 6, 3. Find the mode.

Modal class 30-40: 30+12−824−8−6×10=30+410×10=3430+\frac{12-8}{24-8-6}\times10=30+\frac{4}{10}\times10=34.

Where students lose marks

  • Using n/2n/2 instead of (n+1)/2(n+1)/2 in the grouped median — grouped data always uses n/2n/2.

  • Taking cfcf as the cumulative frequency including the median class (it must exclude it).

  • Reading class limits as inclusive when the data is exclusive (10-20 vs 10-19.5).

Practice sets — 12 questions

Sets of 10, mixed across the question types above. Each answer comes with a step-by-step explanation.

Topic test · 12 questions

Suggested time 11 min · wrong answers go to your mistake notebook automatically.