2.7.1 · D3Statistics & Probability — Intermediate

Worked examples — Measures of central tendency — mean (grouped - ungrouped), median (grouped), mode (grouped)

2,934 words13 min readBack to topic

This page is the "throw everything at it" drill for Measures of Central Tendency. The parent note built the three tools (mean, median, mode) and their formulas. Here we make sure that no situation surprises you — odd counts, even counts, inclusive classes with hidden gaps, a class that ties for "most crowded", data pulled by an extreme outlier, and a real word problem.

Before touching numbers, we lay out every kind of case this topic can throw at you, then solve one example per case.


Symbol reminder (used all over this page)

Every symbol here was defined in the parent note; keep these four in view because Ex 5–7 lean on them constantly.


The scenario matrix

# Case class What makes it tricky Example
A Ungrouped, odd one clean middle value Ex 1
B Ungrouped, even no single middle — average two Ex 2
C Outlier present mean lies; median/mode don't Ex 3
D Grouped mean, three methods agree must give the SAME number Ex 4
E Inclusive classes (hidden gap) must convert limits → boundaries Ex 5
F Grouped median + ogive picture the "middle person" geometry Ex 6
G Grouped mode, peak leans left vs right neighbour frequencies decide Ex 7
H Degenerate: all values equal / tie for mode limiting behaviour, no unique peak Ex 8
I Word problem + empirical relation translate words → table → estimate Ex 9

Ex 1 — Case A: ungrouped, odd count


Ex 2 — Case B: ungrouped, even count


Ex 3 — Case C: the outlier that fools the mean


Ex 4 — Case D: grouped mean by all three methods (they must agree)


Ex 5 — Case E: inclusive classes with a hidden gap


Ex 6 — Case F: grouped median as a geometric "middle person"


Ex 7 — Case G: mode leaning left vs right


Ex 8 — Case H: degenerate inputs


Ex 9 — Case I: word problem + empirical relation


Recall check

Recall Why does the median beat the mean in Ex 3?

Because the median depends only on position, so a single extreme value (the ₹210k owner) cannot drag it; the mean balances totals and gets pulled far above every ordinary worker.

Recall In Ex 5, why isn't

? Inclusive classes (20–29, 30–39) have a hidden gap. Converting to continuous boundaries gives ; using would shift every answer by .

Recall In Ex 7, what makes the mode lean left?

The class before () is heavier than the class after (), so the fraction — less than halfway in, i.e. left of the class centre.

Which measure is unaffected by an extreme outlier?
The median (and often the mode); the mean is dragged toward the outlier.
For inclusive classes 20–29, 30–39, what is the lower boundary of the second class?
(subtract 0.5 to close the gap).
If two values tie for highest frequency, the data is?
Bimodal — there is no single mode.
Empirical relation to estimate the mode?
.