SPI Mathematics · Statistics
Median and Mode of Grouped Data
For a frequency table, the median is found inside the class where the cumulative frequency first reaches half the total, and the mode inside the class with the highest frequency.
Why this matters
Ten questions in the bank, six of them EASY. Four only ask you to recognise the median or mode formula or one of its letters, three work out a median from a table, and the rest find the median class or the mode. The one HARD question has classes with gaps between them.
Concept 1 of 3: Cumulative frequency and the median class
Definition
- Cumulative frequency (cf) of a class its frequency plus all the frequencies before it.
- The last cumulative frequency equals the total, N.
- The median class is the first class whose cumulative frequency reaches .
- This is why a cumulative frequency table is needed to find the median.
- The median class is not the class with the highest frequency. That one is the modal class.
Median class
Worked example
Practice this conceptself-check · 3 quick reps
The same idea in a practice question:
Example 1 · Statistics · Median and Mode of Grouped Data
| Class Interval | ||||||
|---|---|---|---|---|---|---|
| Frequency | 2 | 3 | 7 | 6 | 6 | 6 |
Picking the tallest class as the median class
Concept 2 of 3: The median formula
Definition
- Median .
- l is the lower limit of the median class, f its frequency and h its width.
- cf is the cumulative frequency of the class BEFORE the median class, not of the median class itself.
- If only mid-values are given, rebuild the classes first: mid-values 5, 15, 25 mean classes 0-10, 10-20, 20-30.
- If a cumulative frequency equals exactly, the median is the upper limit of that class.
Median of grouped data
- llower limit of the median class
- Ntotal frequency
- cfcumulative frequency of the class before the median class
- ffrequency of the median class
- hclass size
Worked example
Practice this conceptself-check · 3 quick reps
The same idea in a practice question:
Example 2 · Statistics · Median and Mode of Grouped Data
| Midvalue | 15 | 25 | 35 | 45 | 55 | 65 |
|---|---|---|---|---|---|---|
| Frequency | 4 | 28 | 15 | 20 | 17 | 16 |
Using the median class's own cumulative frequency
Plugging mid-values in as limits
Concept 3 of 3: The mode formula
Definition
- The modal class is the class with the highest frequency.
- Mode .
- is the frequency of the modal class, of the class before it, of the class after it.
- Classes with gaps (1-5, 6-10, ...) must be made continuous first: subtract 0.5 from each lower limit and add 0.5 to each upper limit, so 6-10 becomes 5.5-10.5.
Mode of grouped data
- llower limit of the modal class
- frequency of the modal class
- frequency of the class before it
- frequency of the class after it
- hclass size
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a practice question:
Example 3 · Statistics · Median and Mode of Grouped Data
| Weight in kg | 60-62 | 63-65 | 66-68 | 69-71 | 72-74 |
|---|---|---|---|---|---|
| Number of workers | 5 | 18 | 42 | 27 | 8 |
Swapping f0 and f1 in the top line
Using classes with gaps as they are
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)
- Cumulative frequency and the median class
Median class
- The median formula
Median of grouped data
- The mode formula
Mode of grouped data
Watch out for (5)
- Picking the tallest class as the median class→ Cumulative frequency and the median class
- Using the median class's own cumulative frequency→ The median formula
- Plugging mid-values in as limits→ The median formula
- Swapping f0 and f1 in the top line→ The mode formula
- Using classes with gaps as they are→ The mode formula
Test yourself on a real paper
Sit a past SPI paper, timed and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.