Singapore G3 Mathematics: Depth Boosters

Lesson 4: Data Handling: Quartiles, Box Plots and Standard DeviationSG G3

Statistics questions are lost in two places: reading a cumulative frequency curve at the wrong height, and comparing two distributions with only an average. This booster fixes both.

Cumulative frequency and the ogive

Add the frequencies as you go to get the cumulative frequency, and plot it against the upper class boundary to draw the S-shaped curve (the ogive). The curve answers "how many scored less than x?" directly — and read in reverse it gives the median and quartiles: the median is the value at cumulative frequency n/2, the lower quartile Q1 at n/4 and the upper quartile Q3 at 3n/4. The interquartile range, IQR = Q3 − Q1, measures the spread of the middle half of the data and ignores extremes. The range (max − min) does the opposite: it is decided entirely by the two most extreme values. A box-and-whisker plot displays exactly five numbers — minimum, Q1, median, Q3, maximum — so two distributions can be compared at a glance. An outlier is a value more than 1.5 × IQR beyond the quartiles: below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.

Worked example 1: quartiles and an outlier test

For the data 4, 7, 9, 10, 12, 15, 20 (n = 7): the median is 10. The lower half (4, 7, 9) gives Q1 = 7 and the upper half (12, 15, 20) gives Q3 = 15, so IQR = 8. The outlier fences are 7 − 1.5 × 8 = −5 and 15 + 1.5 × 8 = 27. Since 20 lies inside, this data set has no outliers — a claim you can only make after computing the fences, not by looking at the numbers.

Worked example 2: estimating from an ogive

The marks of 40 students are grouped so that the cumulative frequency reaches 4 by 20 marks, 14 by 40, 28 by 60, 36 by 80 and 40 by 100. Estimate the median and quartiles by interpolation (the same arithmetic a drawn curve performs). The median (20th value) lies in the 40–60 class: 40 + (20 − 14)/14 × 20 ≈ 48.6. Q1 (10th value) lies in 20–40: 20 + (10 − 4)/10 × 20 = 32. Q3 (30th value) lies in 60–80: 60 + (30 − 28)/8 × 20 = 65. So IQR ≈ 65 − 32 = 33 marks. Values read from a drawn ogive may differ slightly — examiners accept a sensible range, but the positions n/4, n/2, 3n/4 must be right.

Standard deviation

The standard deviation σ measures the typical distance of the values from the mean: σ = √[ Σ(x − mean)² ÷ n ]. Square each deviation, average the squares, then take the square root — the root returns the answer to the original units.

Worked example 3: same mean, different story

Two classes both have a mean mark of 66. Class A scored 60, 62, 65, 70, 73: the deviations are −6, −4, −1, 4, 7, whose squares sum to 118, so σ = √(118 ÷ 5) = √23.6 ≈ 4.9. Class B scored 40, 60, 66, 72, 92: the squares of the deviations sum to 1424, so σ = √(1424 ÷ 5) = √284.8 ≈ 16.9. Same mean, completely different classes: A is consistent, B is polarised between strugglers and high scorers. That is why the rule for comparisons is absolute: always compare a centre and a spread, and say it in context — "both classes average 66, but A's marks are far more consistent (σ ≈ 5 against ≈ 17), while B's best students outscore A's".

Common mistakes

  • Reading the ogive backwards. For a median or quartile, start on the cumulative frequency axis (at n/2, n/4 or 3n/4), move across to the curve, then down. Starting from the marks axis answers the different question "how many scored below x?".
  • Comparing distributions by centre alone. "Class A is better because its mean is higher" earns only part of the marks. A centre comparison plus a spread comparison, in context, is the complete answer.
  • Judging consistency by the range when outliers are present. The range is built from the two most extreme values in the data; the IQR is the honest measure of spread.
  • Reporting σ in squared units. The square root in the formula brings the units back: a standard deviation of 4.9 is 4.9 marks, not 4.9 marks².

A five-number summary at speed: for 2, 3, 5, 7, 8, 11, 13 the minimum is 2, Q1 = 3, the median is 7, Q3 = 11 and the maximum is 13, giving IQR = 8. These five numbers are the entire box plot — practise producing them without sorting errors, since one mis-ordered value shifts every quartile.

Worked example 4: comparing two box plots

Class P's five-number summary is (20, 35, 50, 70, 95) and Class Q's is (30, 45, 55, 65, 80). The complete comparison, in the form examiners reward: "Q's typical mark is higher (median 55 against 50). P is much more spread out (IQR 70 − 35 = 35 against Q's 65 − 45 = 20), so P is the less consistent class. P contains both the single highest mark (95) and the lowest (20), while Q's marks are bunched in the middle." Three sentences: one about centre, one about spread, one in context. Anything less leaves marks behind; anything more is decoration. Note also what the box plot cannot show: the shape inside each quarter — two classes can share an identical five-number summary while one is bunched at the quartiles and the other is evenly spread, which is why the summary is a summary and not the data itself.

Going deeper: what one outlier does

Consider the data 12, 15, 15, 17, 18, 19, 20, 22, 38. The five-number summary is: minimum 12, Q1 = 15, median 18, Q3 = 21, maximum 38, so IQR = 6. The upper fence is Q3 + 1.5 × IQR = 21 + 9 = 30, and 38 lies beyond it — 38 is a genuine outlier, not just "the biggest value". Its effect on the centre is dramatic: the mean of all nine values is 176 ÷ 9 ≈ 19.6, but without 38 the mean is 138 ÷ 8 = 17.25 — one value in nine drags the mean up by more than 2. The median barely notices: 18 with the outlier, 17.5 without. This is exactly why reports on salaries and house prices quote medians rather than means: the median describes the typical case even when a few extreme values would pull the mean away from almost everybody's experience.

Key idea. Always compare centre and spread, in context — and reach for the median and IQR whenever outliers are in the data.

Exam Experience

Question 1 [4 marks]. For the data 2, 4, 4, 6, 9, calculate (a) the mean [1] (b) the standard deviation. [3] Question 2 [4 marks]. The cumulative frequencies for the test scores of 30 students are: at most 10 marks — 2 students; at most 20 — 8; at most 30 — 20; at most 40 — 27; at most 50 — 30. Estimate (a) the median score [1] (b) the interquartile range. [3] Question 3 [2 marks]. Class X has median mark 52 and interquartile range 18. Class Y has median mark 47 and interquartile range 9. Compare the performance of the two classes. Marking scheme. Q1: (a) Mean = 25 ÷ 5 = 5 (A1). (b) Deviations from the mean are −3, −1, −1, 1, 4; their squares sum to 9 + 1 + 1 + 1 + 16 = 28 (M1); variance = 28 ÷ 5 = 5.6 (M1); σ = √5.6 ≈ 2.37 (A1). Q2: (a) The median is the 15th value, in the 20–30 class: approximately 20 + (15 − 8)/12 × 10 ≈ 25.8 (A1 — accept 25 to 27 from a drawn curve). (b) Q1 is the 7.5th value ≈ 19.2 and Q3 is the 22.5th value ≈ 33.6 (M1 for using the n/4 and 3n/4 positions); IQR ≈ 33.6 − 19.2 = 14.4 (A1 — accept roughly 13 to 16). Q3: Class X's typical mark is higher (median 52 against 47) (B1), but Class X is less consistent, with twice the spread (IQR 18 against 9), while Class Y's marks are more tightly grouped (B1).

Try it. For the data 3, 5, 6, 8, 9, 11, 30, find the median, Q1, Q3 and the IQR, and decide whether 30 is an outlier.

✅ Check your understanding

Quick recall check, generated from this lesson’s key terms. It is practice only and is not graded.

Keep reading to complete this lesson