IB Maths AI SL Topic 4 — Statistics Toolkit Paper 1 & 2 Range, IQR, std dev ~7 min read

Measures of Dispersion

Two data sets can share the same mean and still tell totally different stories — one tightly grouped, the other wildly spread out. Dispersion measures fill that gap: range, interquartile range (IQR), variance, and standard deviation. Each captures spread in its own way.

๐Ÿ“˜ What you need to know

Range, quartiles & IQR

To find quartiles by hand, order the data, then split at the median:

If n is even: lower half is the first n/2 values; upper half is the last n/2.
If n is odd: exclude the median itself; lower half is everything below it, upper half everything above.

Q1 is the median of the lower half. Q3 is the median of the upper half.

Variance & standard deviation

Range and IQR only use a few values. Standard deviation uses every value, measuring the average distance from the mean.

The recipe: subtract the mean from each value (the “deviation”), square it, average those squares (that’s variance), then take the square root.

Same mean (20), very different spreads 1012141618202224262830 mean = 20 Data A — tight σ ≈ 1.29 18, 19, 20, 20, 21, 22 Data B — spread σ ≈ 5.31 12, 16, 19, 21, 24, 28 shaded bands span ±1σ from the mean
Both data sets have mean = 20, but Data A is tightly grouped (small σ) while Data B is widely spread (large σ). The shaded bands span ±1σ from the mean — the wider the band, the more dispersed the data.
The dispersion formulae range = max − min  ยท  IQR = Q3Q1
 
variance  σ2 = Σ (xi)2n  ยท   std dev  σ = √σ2

๐Ÿงญ Recipe — tackle any dispersion question

  1. Order the data from smallest to largest. Required before any quartile work.
  2. Range: subtract smallest from largest — one line.
  3. Quartiles: split at the median; Q1 = median of lower half, Q3 = median of upper half.
  4. IQR: Q3Q1.
  5. Std dev / variance: enter the list in the GDC, run 1-Var Stats, read off σx; square it for variance.
Outlier-robust? Range and standard deviation are pulled hard by outliers. The IQR ignores them by construction — it only uses the middle 50%. That’s why box plots use IQR.

Worked examples

WE 1

Range and IQR from raw data

A coffee shop records its daily sales (in hundreds) over 10 days:

38,  42,  36,  45,  41,  39,  44,  37,  43,  40

Find the range and the IQR.

Step 1 โ€” order 36, 37, 38, 39, 40, 41, 42, 43, 44, 45 Range range = 45 โˆ’ 36 = 9 Quartiles: n = 10 โ†’ split into two halves of 5 lower half: 36, 37, 38, 39, 40 โ†’ Qโ‚ = 38 upper half: 41, 42, 43, 44, 45 โ†’ Qโ‚ƒ = 43 IQR IQR = 43 โˆ’ 38 = 5 range = 9 ยท IQR = 5 for even n, each half has n/2 values. Qโ‚ and Qโ‚ƒ are their medians.
WE 2

Variance and standard deviation by hand

The heights (cm) of 5 seedlings are:

12,  15,  18,  14,  16

Find the mean, the variance, and the standard deviation.

Step 1 โ€” mean xฬ„ = (12+15+18+14+16) / 5 = 75/5 = 15 Step 2 โ€” deviations and squares 12 โ†’ โˆ’3 โ†’ 9 15 โ†’ 0 โ†’ 0 18 โ†’ 3 โ†’ 9 14 โ†’ โˆ’1 โ†’ 1 16 โ†’ 1 โ†’ 1 Step 3 โ€” variance ฯƒยฒ = (9+0+9+1+1) / 5 = 20/5 = 4 Step 4 โ€” std dev ฯƒ = โˆš4 = 2 variance = 4 cmยฒ ยท std dev = 2 cm variance has units cmยฒ (squared!). Std dev is in the same units as the data โ€” more interpretable.
WE 3

Range, median & IQR from 11 values

The test scores of 11 students (already in order) are:

56,  62,  68,  71,  75,  78,  80,  83,  85,  88,  92

Find the range, median, and IQR.

Range 92 โˆ’ 56 = 36 Median: n = 11 (odd) โ†’ 6th value median = 78 Quartiles: exclude median, each half has 5 lower half: 56, 62, 68, 71, 75 โ†’ Qโ‚ = 68 (3rd) upper half: 80, 83, 85, 88, 92 โ†’ Qโ‚ƒ = 85 (3rd) IQR IQR = 85 โˆ’ 68 = 17 range = 36 ยท median = 78 ยท IQR = 17 odd-n case: drop the median from both halves before finding Qโ‚ and Qโ‚ƒ. The middle 50% lies between 68 and 85.
WE 4

Standard deviation involving a surd

A football team scores the following goals in 5 matches:

1,  3,  2,  4,  5

Find the variance and standard deviation, giving the std dev to 3 sf.

Mean xฬ„ = 15/5 = 3 Squared deviations (1โˆ’3)ยฒ = 4 (3โˆ’3)ยฒ = 0 (2โˆ’3)ยฒ = 1 (4โˆ’3)ยฒ = 1 (5โˆ’3)ยฒ = 4 Variance ฯƒยฒ = 10/5 = 2 Std dev ฯƒ = โˆš2 โ‰ˆ 1.414… variance = 2 ยท ฯƒ โ‰ˆ 1.41 goals (3 sf) when ฯƒ isn’t a whole number, exams ask for 3 sf. Keep โˆš2 exact through the calculation and round only at the end.
WE 5

Compare two data sets — which is more consistent?

Two basketball players’ last five game scores:

Player A:   18, 22, 20, 19, 21
Player B:   12, 28, 15, 25, 20

Both means equal 20. Calculate each std dev and decide who is more consistent.

Mean of each A: 100/5 = 20,   B: 100/5 = 20 โœ“ Player A โ€” squared deviations from 20 4, 4, 0, 1, 1 โ†’ sum = 10 ฯƒยฒ_A = 10/5 = 2 โ†’ ฯƒ_A = โˆš2 โ‰ˆ 1.41 Player B โ€” squared deviations from 20 64, 64, 25, 25, 0 โ†’ sum = 178 ฯƒยฒ_B = 178/5 = 35.6 โ†’ ฯƒ_B โ‰ˆ 5.97 Compare ฯƒ_A < ฯƒ_B โ†’ A is more consistent Player A more consistent (ฯƒ โ‰ˆ 1.41 vs 5.97) same mean โ‰  same data. Std dev tells the rest of the story: smaller ฯƒ โ†’ tighter, more reliable scores.
WE 6

Outlier sensitivity: range vs IQR

Seven recent house sale prices in a street (in $000s):

280,  310,  295,  320,  305,  290,  850

(a) Find the range and IQR.   (b) The 850 is a mansion โ€” an outlier. Recompute with it removed, and comment.

(a) Order with the outlier 280, 290, 295, 305, 310, 320, 850 range = 850 โˆ’ 280 = 570 median = 305 (4th) lower half: 280, 290, 295 โ†’ Qโ‚ = 290 upper half: 310, 320, 850 โ†’ Qโ‚ƒ = 320 IQR = 320 โˆ’ 290 = 30 (b) Remove the outlier 280, 290, 295, 305, 310, 320 range = 320 โˆ’ 280 = 40 Qโ‚ = 290,   Qโ‚ƒ = 310 IQR = 310 โˆ’ 290 = 20 Comment range collapsed 570 โ†’ 40 (massive change) IQR barely moved 30 โ†’ 20 IQR is far more robust to outliers than the range this is exactly why IQR is preferred for skewed or outlier-heavy data. Range is dramatic but misleading.

๐Ÿ’ก Top tips

โš  Common mistakes

Next up: Frequency Tables. When data is repeated, we don’t list every value — we group them with their frequencies. The mean / median / mode / std dev formulae still apply, but adapted to use frequencies. The GDC has a “List with Frequency” mode that does the heavy lifting.

Need help with AI SL Statistics?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →