2.7.1 · D4Statistics & Probability — Intermediate

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

3,530 words16 min readBack to topic

Before we start, here is the symbol dictionary every grouped-data problem on this page uses — meet each one on the picture first, then in words:

Figure — Measures of central tendency — mean (grouped - ungrouped), median (grouped), mode (grouped)
Figure 1 — Table drawn as a histogram. Each coloured bar is one class; its height is the frequency (printed on top: 4, 9, 15, 11, 6). The coral bar (20–30) is used to label the four working symbols: the coral arrow marks , the lower boundary (left edge, ); the double-headed arrow along the base marks , the class width (); the top arrow marks , the bar's height (); and is the sum of all heights (). The horizontal axis shows the class boundaries; the vertical axis shows frequency. Read this picture whenever a symbol below feels abstract.

(used only for the mode) are three neighbouring bar heights: the tallest (modal) bar, the bar just left of it, the bar just right. We build those on the figure again when we reach the mode.


Level 1 — Recognition

Recall Solution

WHAT is asked: the value splitting the data into two equal halves → that is the median (not mean, not mode). Formula: where (from the symbol dictionary above) = lower boundary of the median class, = total count, = cumulative frequency of the class before the median class, = frequency of the median class, = class width. WHY these words map to it: "50% below" is literally the definition of the middle position , and the formula finds where inside a class that middle person lands.

Recall Solution

WHAT: the modal class is the class with the largest individual frequency — never cumulative. Highest is modal class = 20–30.

  • (modal class itself)
  • (class before, 10–20)
  • (class after, 30–40) WHY: the mode formula measures how sharply the peak rises above its two neighbours, so we need the frequencies on both sides.

Level 2 — Application

Running table (already continuous, so limits = boundaries) — this is the very table drawn in the figure above:

Class Midpoint
0–10 4 5
10–20 9 15
20–30 15 25
30–40 11 35
40–50 6 45

.

Recall Solution

Rule: sort first, then the median is the middle position.

  • If is odd, there is one middle: the th value.
  • If is even, there is no single middle, so we average the two central values: the th and the th.

(a) Sort: . Here (odd), middle position rd value . Median . (b) Sort: . Here (even), the two central positions are the rd and th values: and . Average . Median . WHY average for even : with an even count the data splits cleanly between two neighbours, and any value between them has 50% below and 50% above; we pick their midpoint by convention.

Recall Solution

WHAT is ? It is the class's midpoint measured in steps of width away from our guess : . This turns the midpoints into tiny integers. WHY do this? Adding weighted by frequency is far easier than adding — and the answer is identical because . Answer: .

Recall Solution

Step 1 — cumulative frequency (cf): sweep left to right, keep a running total. Step 2 — find the median class. . The first cf that reaches or passes is median class = 20–30. Step 3 — read the pieces: , (the cf before the median class), , . Step 4 — interpolate. We already used items before this class; we need more, out of items spread over width : Answer: Median .

Recall Solution

Modal class = 20–30 (largest ). Read: , , , , . WHAT the fraction means: rise over the left neighbour, , divided by the total excess over both neighbours, . Answer: Mode . WHY it lands where it does: since , the class after is heavier, so the peak leans right of the class centre (). Indeed . ✓


Level 3 — Analysis

Recall Solution

Step 1 — recover from the total. . Good — but the problem wants us to verify this is consistent with median , so let's treat the second frequency as unknown and solve from the median condition instead, then confirm.

Let the second frequency be . Then and . With median class 20–30: , , freq of median class , . Step 2 — simplify the numerator. . Step 3 — solve.

But check total: with , , not . The two conditions ( and median ) are inconsistent — you cannot have both. This is the analysis lesson. Answer: If is fixed, and the resulting median is (from L2·2), not . If median is fixed with these other frequencies, and . The data as posed is over-constrained. Report the contradiction — do not force a wrong number.

Recall Solution

WHAT's the trap here: inclusive classes have gaps (10 to 11 is missing), so the printed limit is not the true lower boundary. Step 1 — convert to continuous boundaries. Gap ; subtract from each lower limit and add to each upper limit: Step 2 — cf: . Here , . Step 3 — median class: first cf is → class 20.5–30.5. Read: (the boundary, not ), , , . Answer: Median . Using instead would have given — off by exactly the boundary shift.

Recall Solution

Median: already sorted, (odd) → the th value . Mean: . WHY they disagree: the single value is an outlier. The mean is a balance point — one heavy value drags it far right (to ). The median only cares about position, so the outlier merely sits at the far end and doesn't move the middle. Answer: Median is the better "typical" value here; the mean is inflated by the outlier. This is exactly why we keep three measures (see Skewness).


Level 4 — Synthesis

Recall Solution

Empirical estimate: Compare to true Mode : agreement within . ✓ Interpretation — WHY they're so close: mean median mode means the distribution is nearly symmetric (little Skewness). When mean median exactly, the relation predicts Mode Median too, and the tiny gap ( vs ) just reflects the mode formula's peak-leaning correction.

Recall Solution

Step 1 — class midpoints. Using : the midpoints are . Step 2 — set up the direct grouped-mean equation. The mean is the total of divided by the total count: Step 3 — compute the known parts. Numerator ; denominator . Step 4 — solve for . Answer: students. Check: mean . ✓


Level 5 — Mastery

Recall Solution

Is 20–30 correct for ? Yes — but for the right reason, not the student's reason. The correct test uses cumulative frequency: cf ; ; the first cf is , sitting in class 20–30. It happens to coincide with the modal class, but that is a coincidence, not a rule.

A clean counterexample. Take five classes 0–10, 10–20, 20–30, 30–40, 40–50 with frequencies

  • Modal classes: the largest frequency is , and it appears twice — in 10–20 and in 40–50. So the data is bimodal; neither single class is "the" mode.
  • Median class (by cf): cf . Total , so . The first cf is , which belongs to class 20–30.
  • The mismatch: the median class is 20–30, which is neither modal class (10–20 or 40–50).

Lesson: the median class must always come from the cumulative frequency reaching , never from "which bar is tallest". For symmetric single-peaked data the two often coincide, but this example proves they need not.

Recall Solution

Target ordering: mean furthest right, mode furthest left → a right (positive) tail. A working dataset: .

  • Mode (appears twice; every other value once — the most crowded value).
  • Median middle of the sorted values → the rd value .
  • Mean . Check the ordering: , so . ✓ WHY this signals positive skew: the lone large value forms a right tail. The mode sits at the crowded left, the median at the positional middle, and the mean is dragged rightward by the tail — so they line up mean → median → mode from right to left. That is the fingerprint of positive skew (see Skewness). The same far value also inflates the spread, connecting to Measures of Dispersion — Variance & Standard Deviation.

Recap

Recall Which column finds the median class?

Cumulative frequency — the first class whose cf reaches . ::: Cumulative frequency; first cf .

Recall Which frequency finds the modal class?

The largest individual frequency , never cumulative. ::: Largest individual .

Recall For even

, how is the ungrouped median found? Sort, then average the two central values (the th and th). ::: Average the two middle values.

Recall Before finding a grouped median with inclusive classes, what must you fix first?

Convert printed limits to continuous boundaries (shift by half the gap). ::: Convert to continuous class boundaries.