IB Maths AI HL Statistics Toolkit Paper 1 & 2 ~6 min read

Outliers

An outlier is a data value that sits far away from the rest — a 29-year-old at a children’s birthday party, or a £200,000 salary in a list where everyone else earns £30,000. The IB gives you one precise rule to decide whether a value counts as an outlier: it must lie more than 1.5 × IQR beyond the nearest quartile. Learn the two boundary formulas, compare each value against them, and you can flag every outlier in seconds. The harder skill — also examined — is deciding whether a flagged outlier should be removed: that depends entirely on context, not on the maths.

📘 What you need to know

The 1.5 × IQR rule

To test for outliers you first need the quartiles Q1 and Q3 (use your GDC), then the IQR. The rule sets up two “fences” — one below the data and one above it. Anything outside the fences is an outlier.

Outlier boundaries (the 1.5 × IQR rule) x is an outlier if   x < Q1 − 1.5 × IQR   or   x > Q3 + 1.5 × IQR NOT in the formula booklet — memorise this ✗
where the outlier fences sit
lower fence Q₁ − 1.5×IQR upper fence Q₃ + 1.5×IQR Q₁ Q₂ Q₃ outlier outlierany value outside the two fences is an outlier
The box holds the middle 50% of the data. The fences sit 1.5 × IQR out from each quartile. Anything beyond a fence (the red zones) is flagged as an outlier.

🧭 Recipe — testing for outliers

  1. Find Q1 and Q3 using your GDC (statistics mode).
  2. Calculate the IQR: IQR = Q3Q1.
  3. Lower fence: Q1 − 1.5 × IQR.
  4. Upper fence: Q3 + 1.5 × IQR.
  5. Compare each value: anything below the lower fence or above the upper fence is an outlier.

Should you remove an outlier?

Finding an outlier is the maths. Deciding what to do with it is the judgement — and the IB tests this. The answer always depends on context, never on the number alone.

Remove it
if it’s an error
The value was recorded wrong or doesn’t belong. E.g. 17 typed as 71, or an adult’s age in children’s data.
Keep it
if it’s valid
The value is genuine, just extreme. E.g. a company director’s salary, or a very tall student. It’s real data.

🤔 Why not just delete every outlier?

An outlier isn’t automatically “bad data”. A director earning ten times more than every other employee is a real, correct value — deleting it would hide a true feature of the dataset. Only remove an outlier when you have a reason to believe it’s a mistake (a recording error, a value that can’t be valid in context). When in doubt, the data should be checked rather than silently dropped. Always justify your decision in words.

Which measures do outliers affect?

This comes up constantly in exam interpretation questions. Outliers drag some statistics around badly and leave others untouched — knowing which is which tells you when to trust the mean versus the median.

MeasureAffected by outliers?Why
MeanYes ✗uses every value, so one extreme value shifts it
RangeYes ✗uses the max and min directly
Standard deviationYes ✗measures spread about the mean — extremes inflate it
MedianNo ✓only the middle position matters, not the extremes
IQRNo ✓uses the central 50% only, ignoring the tails

🧠 Memory aid — “middle measures are safe”

The statistics based on position in the middle (median, IQR) shrug off outliers, because an extreme value at the end doesn’t change what’s in the centre. The statistics that use every value (mean, range, standard deviation) get pulled around. So if a dataset has outliers, prefer the median and IQR to describe it.

Worked examples

WE 1

Identify the outliers

The ages, in years, of children at a birthday party are given below.
2, 7, 5, 4, 8, 4, 6, 5, 5, 29, 2, 5, 13
Using your GDC, Q1 = 4 and Q3 = 7. Identify any outliers.

Step 1: IQR IQR = Q₃ − Q₁ = 7 − 4 = 3 Step 2: lower fence Q₁ − 1.5×IQR = 4 − 1.5×3 = 4 − 4.5 = −0.5 Step 3: upper fence Q₃ + 1.5×IQR = 7 + 1.5×3 = 7 + 4.5 = 11.5 Step 4: compare values nothing below −0.5; values above 11.5 are 13 and 29 outliers: 13 and 29 find both fences, then scan the data for anything outside them.
WE 2

Decide which outlier to remove

From WE 1, the outliers are 13 and 29. The data records the ages of children at a party. Suggest which value(s) should be removed, justifying your answer.

consider each in context 13 is a valid age for a child → keep it (it is a real data value, just on the high side). 29 is the age of an adult, not a child → remove it (it does not belong in data about children). remove 29; keep 13 always justify with the context — “child vs adult” — not just the maths.
WE 3

Lower outlier — distances

The distances (m) travelled by 15 snails in one minute are:
0.5, 0.7, 1.0, 1.1, 1.2, 1.2, 1.2, 1.3, 1.4, 1.4, 1.4, 1.4, 1.5, 1.5, 1.6
Given Q1 = 1.1 and Q3 = 1.4, identify any outliers.

Step 1: IQR IQR = 1.4 − 1.1 = 0.3 Step 2: lower fence 1.1 − 1.5×0.3 = 1.1 − 0.45 = 0.65 Step 3: upper fence 1.4 + 1.5×0.3 = 1.4 + 0.45 = 1.85 Step 4: compare 0.5 < 0.65 → outlier; nothing above 1.85 0.5 m is an outlier outliers can be on the low side too — always check both fences.
WE 4

No outliers present

A data set has Q1 = 22 and Q3 = 34. The smallest value is 15 and the largest is 40. Determine whether either extreme value is an outlier.

Step 1: IQR IQR = 34 − 22 = 12 Step 2: fences lower = 22 − 1.5×12 = 22 − 18 = 4 upper = 34 + 1.5×12 = 34 + 18 = 52 Step 3: compare 15 > 4 ✓ and 40 < 52 ✓ — both inside the fences no outliers a value being the max or min does NOT make it an outlier — it must cross a fence.
WE 5

Effect on the mean and median

A small company lists five annual salaries (£000s): 28, 30, 31, 33, 150. The £150,000 value is the director’s salary and is confirmed correct. Comment on which average best represents a typical employee.

mean (28+30+31+33+150)/5 = 272/5 = 54.4 median middle of ordered data = 31 the mean (£54.4k) is pulled up by the director’s salary and sits above four of the five employees. the median (£31k) is not affected by the outlier and better reflects a typical employee. use the median the outlier is valid (don’t remove it), but the median describes the data more fairly.

💡 Top tips

⚠ Common mistakes

Next up — Box & Whisker Diagrams. Now that you can find quartiles and flag outliers, you’ll learn to display them: the box shows the middle 50% (Q1 to Q3), the whiskers reach the most extreme non-outlier values, and any outliers are marked with a cross. You’ll also see how to compare two datasets side by side using their medians and IQRs.

Need help with Statistics?

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

Book Free Session →