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 1 — Table T drawn as a histogram. Each coloured bar is one class; its height is the frequency f (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 l, the lower boundary (left edge, =20); the double-headed arrow along the base marks h, the class width (=10); the top arrow marks f, the bar's height (=15); and n is the sum of all heights (=45). The horizontal axis shows the class boundaries; the vertical axis shows frequency. Read this picture whenever a symbol below feels abstract.
f1,f0,f2 (used only for the mode) are three neighbouring bar heights: f1 the tallest (modal) bar, f0 the bar just left of it, f2 the bar just right. We build those on the figure again when we reach the mode.
WHAT is asked: the value splitting the data into two equal halves → that is the median (not mean, not mode).
Formula:Median=l+(f2n−cf)×h
where (from the symbol dictionary above) l = lower boundary of the median class, n = total count, cf = cumulative frequency of the class before the median class, f = frequency of the median class, h = class width.
WHY these words map to it: "50% below" is literally the definition of the middle position 2n, 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 f is 15 → modal class = 20–30.
f1=15 (modal class itself)
f0=9 (class before, 10–20)
f2=11 (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.
Running table T (already continuous, so limits = boundaries) — this is the very table drawn in the figure above:
Class
fi
Midpoint xi
0–10
4
5
10–20
9
15
20–30
15
25
30–40
11
35
40–50
6
45
∑fi=n=45.
Recall Solution
Rule: sort first, then the median is the middle position.
If n is odd, there is one middle: the (2n+1)th value.
If n is even, there is no single middle, so we average the two central values: the 2nth and the (2n+1)th.
(a) Sort: 3,4,7,8,9. Here n=5 (odd), middle position =25+1=3rd value =7. Median =7.(b) Sort: 2,3,4,7,8,9. Here n=6 (even), the two central positions are the 3rd and 4th values: 4 and 7. Average =24+7=5.5. Median =5.5.WHY average for even n: 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 ui? It is the class's midpoint measured in steps of width h away from our guess a: ui=hxi−a. This turns the midpoints into tiny integers.
ui=−2,−1,0,1,2WHY do this? Adding −2,−1,0,1,2 weighted by frequency is far easier than adding 5,15,25,35,45 — and the answer is identical because xi=a+hui.
∑fiui=4(−2)+9(−1)+15(0)+11(1)+6(2)=−8−9+0+11+12=6xˉ=a+h(∑fi∑fiui)=25+10⋅456=25+1.333…=26.33Answer: xˉ≈26.33.
Recall Solution
Step 1 — cumulative frequency (cf): sweep left to right, keep a running total.
4,13,28,39,45Step 2 — find the median class.2n=245=22.5. The first cf that reaches or passes 22.5 is 28 → median class = 20–30.
Step 3 — read the pieces:l=20, cf=13 (the cf before the median class), f=15, h=10.
Step 4 — interpolate. We already used 13 items before this class; we need 22.5−13=9.5 more, out of 15 items spread over width 10:
Median=20+(1522.5−13)×10=20+159.5⋅10=20+6.333=26.33Answer: Median ≈26.33.
Recall Solution
Modal class = 20–30 (largest f=15). Read: l=20, f1=15, f0=9, f2=11, h=10.
WHAT the fraction means: rise over the left neighbour, f1−f0=6, divided by the total excess over both neighbours, 2f1−f0−f2=30−9−11=10.
Mode=20+(2(15)−9−1115−9)×10=20+106⋅10=20+6=26Answer: Mode =26.WHY it lands where it does: since f0=9<f2=11, the class after is heavier, so the peak leans right of the class centre (25). Indeed 26>25. ✓
Step 1 — recover f from the total.4+f+15+11+6=45⇒f=9. Good — but the problem wants us to verify this is consistent with median =25, so let's treat the second frequency as unknown f and solve from the median condition instead, then confirm.
Let the second frequency be f. Then n=36+f and 2n=236+f.
With median class 20–30: l=20, cf=4+f, freq of median class =15, h=10.
25=20+(15236+f−(4+f))×10Step 2 — simplify the numerator.236+f−(4+f)=18+2f−4−f=14−2f.
25−20=1514−2f×10⇒5=1510(14−2f)=32(14−2f)Step 3 — solve.5⋅3=2(14−2f)⇒15=28−f⇒f=13.
But check total: with f=13, n=49, not 45. The two conditions (n=45and median =25) are inconsistent — you cannot have both. This is the analysis lesson.
Answer: If n=45 is fixed, f=9 and the resulting median is 26.33 (from L2·2), not25. If median =25 is fixed with these other frequencies, f=13 and n=49. 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 =11−10=1; subtract 21=0.5 from each lower limit and add 0.5 to each upper limit:
0.5–10.5,10.5–20.5,20.5–30.5,30.5–40.5Step 2 — cf:6,16,30,40. Here n=40, 2n=20.
Step 3 — median class: first cf ≥20 is 30 → class 20.5–30.5.
Read: l=20.5 (the boundary, not 21), cf=16, f=14, h=10.
Median=20.5+(1420−16)×10=20.5+144⋅10=20.5+2.857=23.357Answer: Median ≈23.36. Using l=21 instead would have given 23.86 — off by exactly the 0.5 boundary shift.
Recall Solution
Median: already sorted, n=7 (odd) → the 2n+1=4th value =5.
Mean:72+4+4+5+5+6+40=766=9.43.
WHY they disagree: the single value 40 is an outlier. The mean is a balance point — one heavy value drags it far right (to 9.43). The median only cares about position, so the outlier merely sits at the far end and doesn't move the middle.
Answer: Median =5 is the better "typical" value here; the mean 9.43 is inflated by the outlier. This is exactly why we keep three measures (see Skewness).
Empirical estimate:3Median−2Mean=3(26.33)−2(26.33)=79.00−52.67=26.33
Compare to true Mode =26: agreement within 0.33. ✓
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 (26 vs 26.33) just reflects the mode formula's peak-leaning correction.
Recall Solution
Step 1 — class midpoints. Using xi=2lower+upper: the midpoints are 10,30,50.
Step 2 — set up the direct grouped-mean equation. The mean is the total of fixi divided by the total count:
xˉ=∑fi∑fixi=8+12+x8(10)+12(30)+x(50)=34Step 3 — compute the known parts. Numerator =80+360+50x=440+50x; denominator =20+x.
20+x440+50x=34⇒440+50x=34(20+x)=680+34xStep 4 — solve for x.50x−34x=680−440⇒16x=240⇒x=15Answer: x=15 students. Check: mean =35440+750=351190=34. ✓
Is 20–30 correct for T? Yes — but for the right reason, not the student's reason. The correct test uses cumulative frequency: cf =4,13,28,39,45; 2n=22.5; the first cf ≥22.5 is 28, 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
1,40,2,3,40.
Modal classes: the largest frequency is 40, 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 =1,41,43,46,86. Total n=86, so 2n=43. The first cf ≥43 is 43, 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 2n, 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:2,2,3,5,18.
Mode=2 (appears twice; every other value once — the most crowded value).
Median= middle of the 5 sorted values 2,2,3,5,18 → the 25+1=3rd value =3.
Mean=52+2+3+5+18=530=6.
Check the ordering:6>3>2, so Mean>Median>Mode. ✓
WHY this signals positive skew: the lone large value 18 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.