Range, IQR & box plots
- A mean tells you where the data sits; variation tells you how spread out it is.
- Range is the full width from smallest to largest.
- IQR is the width of the middle 50%.
- IQR ignores the lowest quarter and highest quarter, so outliers cannot wreck it.
- The exam core is: median, IQR, box plot, and one clear comparison sentence.
Quartiles by splitting in half
Sort the data, find the median, then the quartiles are the medians of the two halves. Odd : discard the median first, then split. .
Worked example
IQR of an even list (no median to discard)
2, 5, 9, 13, 29, 33, 49, 55 (). Median ; split 4 / 4.
Lower 2, 5, 9, 13 → . Upper 29, 33, 49, 55 → .
Worked example
IQR of an odd list (discard the median)
Unordered: 69, 17, 43, 6, 73, 77, 39. Sort → 6, 17, 39, 43, 69, 73, 77 (). Median = 43 (discard it).
Lower half 6, 17, 39 → . Upper half 69, 73, 77 → .
IQR ignores the extreme quarter at each end, so one extreme value cannot move it, which is why it is the standard measure for comparing spread.
Median & IQR from an ordered display (stem-and-leaf):
- Decode the key first — fix the true place value before reading anything.
- Count ; locate at the th value, then read by inspection as the medians of the lower and upper halves.
- Read the data values at those positions (not the positions).
- ; range = max − min.
- State each with its unit.
Worked example
Read median + IQR off a stem-and-leaf
Lengths (mm), key :
14 | 2 2 4 8 9
15 | 1 3 5 6 7 9
16 | 5 8
That is 13 values: 142, 142, 144, 148, 149, 151, 153, 155, 156, 157, 159, 165, 168. is the th value, 153 — discard it. Lower six → ; upper six → .
Worked example
Read median + IQR off 15 ordered values
Team A times (min), ordered: 23, 27, 29, 31, 34, 36, 38, 41, 43, 45, 48, 52, 55, 58, 61 (). Positions 8th, 4th, 12th: , , . (9709/52/O/N/23 Q4) (9709/52/M/J/24 Q4)
Drawing the box plot the way the mark scheme wants:
- One linear scale across the page (≥1 cm per stated unit); label the axis with quantity + unit.
- Mark the five-number summary; box from to with the median line inside.
- Whiskers to min and max — not through the box, not from its corners.
- Label each plot (team / company name).
Read skew straight off the box: if (the right side of the box is longer) the data are positively skewed; the reverse is negative. Drag the quartiles and watch the IQR and the skew change:
IQR = Q₃ − Q₁ = 20·Q₃−Q₂ > Q₂−Q₁ → positive skew (right)
Worked example
Two box plots + a spread comparison
Team A (above): five-number summary 23, 31, 41, 52, 61 → IQR 21. Team B: 20, 38, 44, 50, 66 → IQR 12. Drawn on one scale, A's box is wider. (9709/52/M/J/23 Q3)
So Team A has the greater spread.
| The question / data | Use | Why |
|---|---|---|
| Extreme value / skew present | IQR (and median) | robust — an outlier can't move it |
| Clean, symmetric data | range / SD (and mean) | uses every value |
| 'Compare the spread' of two groups | IQR or range, in context | central-tendency comments score 0 |
| 'Mean or median better here?' | median if an outlier exists | name the measure + cite the anomaly |
Examiner note
Common mistake
Common mistake
Why (n+1)/4 here, but n/4 on a CF graph?
On a discrete ordered list you are counting to a specific person, so positions go as . On a continuous cumulative-frequency graph (next note) you read a smooth curve and enter at . Keep the two apart — an accept-range hangs on it.