PYQ Vault

CDS Mathematics · Statistics

Mean, Median and Mode of Grouped Data

For class-interval data the mean uses class mid-points, the median interpolates inside the class holding the N/2th value, and the mode interpolates inside the class with the largest frequency.

Why this matters

Nineteen PYQs, the most of any page, usually two or three items on one table. Three formulas and one habit do it: find any missing frequency first, convert inclusive classes to boundaries, then apply the formula for the measure asked.

Concept 1 of 3: Mean of grouped data and missing frequencies

Inside a class we do not know the individual values, so each one is represented by the class mid-point. The mean is then a frequency-weighted mean of the mid-points.

Definition

  • Mid-point of a class = lower+upper2\dfrac{\text{lower} + \text{upper}}{2}.
  • xˉ=∑fm∑f\bar x = \dfrac{\sum f m}{\sum f}.
  • A missing frequency: set the formula equal to the stated mean and solve (with the stated total if there are two unknowns).
  • 'Less than' or 'more than' tables: first turn them into class frequencies.

Grouped mean

xˉ=∑fm∑f,m=class mid-point\bar x = \dfrac{\sum f m}{\sum f}, \quad m = \text{class mid-point}

Worked example

Classes 00–1010, 1010–2020, 2020–3030, 3030–4040 have frequencies 3,5,f,23, 5, f, 2, and the mean is 1919. Find ff.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

CDS · 2017 · CDS (I) 2017 — Elementary Mathematics · Q53Moderate

Example 1 · Statistics · Mean, Median and Mode of Grouped Data

Consider the following distribution :
ClassFrequency
0 - 2017
20 - 4028
40 - 6032
60 - 80f
80 - 10019
If the mean of the above distribution is 50, what is the value of f ?

An open last class

When the last class has no upper limit, the mean is only possible by assuming a width. Take the width of the other classes; that is the reading the options are built on.

Concept 2 of 3: Median of grouped data

Find the class that holds the N2\dfrac N2th value, then assume its values are spread evenly across the class. The median is the lower boundary plus the fraction of the class you need to walk through.

Definition

  • Median =l+N2−cff×h= l + \dfrac{\frac N2 - cf}{f}\times h, where ll is the lower boundary of the median class, cfcf the cumulative frequency BEFORE it, ff its frequency and hh its width.
  • Inclusive classes (1818–2626, 2727–3535) must first become boundaries (17.517.5–26.526.5, 26.526.5–35.535.5).
  • A given median gives one equation for a missing frequency.

Grouped median

Median=l+N2−cff h\text{Median} = l + \dfrac{\tfrac N2 - cf}{f}\,h

Worked example

Classes 00–1010, 1010–2020, 2020–3030, 3030–4040 with frequencies 5,8,12,55, 8, 12, 5. Find the median.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

CDS · 2024 · CDS (II) 2024 — Elementary Mathematics · Q54Moderate

Example 2 · Statistics · Mean, Median and Mode of Grouped Data

A frequency distribution is as follows :
Marks18-2627-3536-4445-5354-6263-7172-80
Number of students571015832
What is the median of the distribution ?

Use boundaries, not printed limits

With inclusive classes the median class 4545–5353 starts at 44.544.5. Using 4545 shifts the answer by 0.50.5, and that shifted value is usually among the options.

Concept 3 of 3: Mode of grouped data

The mode lies in the class with the largest frequency, pulled toward whichever neighbour is larger. The formula measures that pull.

Definition

  • Mode =l+f1−f02f1−f0−f2×h= l + \dfrac{f_1 - f_0}{2f_1 - f_0 - f_2}\times h, where f1f_1 is the modal class frequency, f0f_0 the one before, f2f_2 the one after.
  • If the neighbours are equal, the mode is the mid-point of the modal class.
  • Solve for any missing frequency first; it may change which class is modal.

Grouped mode

Mode=l+f1−f02f1−f0−f2 h\text{Mode} = l + \dfrac{f_1 - f_0}{2f_1 - f_0 - f_2}\,h

Diagram · mode = the tallest bar

3A5B2C7D4E

The mode is the value with the highest frequency — category D here. Data can have two modes (bimodal) or none (all equal); the mode is the only average that also works for non-numeric categories.

Worked example

Classes 00–1010, 1010–2020, 2020–3030, 3030–4040 with frequencies 3,9,15,63, 9, 15, 6. Find the mode.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

CDS · 2026 · CDS (II) 2026 — Elementary Mathematics · Q96Moderate

Example 3 · Statistics · Mean, Median and Mode of Grouped Data

Consider the following grouped data :
ClassFrequency
0 - 104
10 - 208
20 - 3015
30 - 4010
40 - 503
What is the mode of the above distribution ?

Two times f₁ in the denominator

The denominator is (f1−f0)+(f1−f2)=2f1−f0−f2(f_1 - f_0) + (f_1 - f_2) = 2f_1 - f_0 - f_2. Writing f1−f0−f2f_1 - f_0 - f_2 gives a negative or tiny denominator and a mode outside the class.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • Mean of grouped data and missing frequencies

    Grouped mean

    xˉ=∑fm∑f,m=class mid-point\bar x = \dfrac{\sum f m}{\sum f}, \quad m = \text{class mid-point}
  • Median of grouped data

    Grouped median

    Median=l+N2−cff h\text{Median} = l + \dfrac{\tfrac N2 - cf}{f}\,h
  • Mode of grouped data

    Grouped mode

    Mode=l+f1−f02f1−f0−f2 h\text{Mode} = l + \dfrac{f_1 - f_0}{2f_1 - f_0 - f_2}\,h

Watch out for (3)

Test yourself on Statistics

15 past CDS questions from this chapter, timed at 18 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.