IB Diploma Mathematics AI · Statistics and probability
Measures of centre and spread
1Mean, median and mode
- The mean is the sum of the values divided by how many there are: $\bar{x} = \frac{\sum x}{n}$.
- The median is the middle value when the data are in order. For $n$ values it is the $\frac{n + 1}{2}$th value.
- The mode is the most common value.
A small data set
- Data: 4, 7, 7, 8, 10, 12, 15, 21.
- Mean: $\frac{84}{8} = 10.5$.
- Median: there are 8 values, so it is halfway between the 4th and 5th: $\frac{8 + 10}{2} = 9$.
- Mode: 7.
The mean is affected by extreme values; the median is not. For skewed data or data with outliers, the median is often the better average.
Check yourself
Which average is least affected by an outlier?
Show the answer
The median
Only the middle value matters.
2Mean from a frequency table
For a frequency table, multiply each value by its frequency:
$$\bar{x} = \frac{\sum f x}{\sum f}$$
For grouped data, use the midpoints as $x$. The answer is then an estimate, because the exact values are unknown.
Grouped mean
- Times (minutes): midpoints 5, 15, 25, 35 with frequencies 4, 9, 5, 2.
- $\sum fx = 20 + 135 + 125 + 70 = 350$.
- Estimated mean $= \frac{350}{20} = 17.5$ minutes.
In exams, enter the values and frequencies into two lists on the calculator, and use one-variable statistics.
Check yourself
Scores 1, 2, 3 have frequencies 2, 5, 3. What is the mean?
Show the answer
2.1
(2 + 10 + 9) ÷ 10 = 21 ÷ 10 = 2.1.
3Range, quartiles and IQR
- Range $=$ maximum $-$ minimum. Easy, but affected by extremes.
- The quartiles split the ordered data into four equal parts. $Q_1$ is the median of the lower half and $Q_3$ is the median of the upper half.
- Interquartile range $\text{IQR} = Q_3 - Q_1$: the spread of the middle half. It is not affected by outliers.
Quartiles
- Data: 4, 7, 7, 8 | 10, 12, 15, 21.
- $Q_1$ = median of 4, 7, 7, 8 = 7. $Q_3$ = median of 10, 12, 15, 21 = 13.5.
- IQR $= 13.5 - 7 = 6.5$. Range $= 21 - 4 = 17$.
- Outlier check: $13.5 + 1.5 \times 6.5 = 23.25$. 21 is below this, so it is not an outlier.
Different calculators can give slightly different quartiles; the IB accepts the calculator's values.
Check yourself
What is the IQR if Q₁ = 12 and Q₃ = 19?
Show the answer
7
19 − 12 = 7.
4Standard deviation
The standard deviation $\sigma$ measures how far, on average, the values are from the mean. A larger standard deviation means more spread.
- Find it with your calculator's one-variable statistics. In IB, use the value labelled $\sigma_x$ (the population standard deviation) unless told otherwise.
- The variance is $\sigma^2$.
- For the data 4, 7, 7, 8, 10, 12, 15, 21: $\sigma = 5.07$.
Effect of changes to the data:
- Adding a constant $k$ to every value adds $k$ to the mean, but does not change the standard deviation.
- Multiplying every value by $k$ multiplies the mean and the standard deviation by $k$.
Test scores have mean 60 and standard deviation 8. If every score is increased by 5, the new mean is 65 and the standard deviation is still 8. If every score is doubled, the mean is 120 and the standard deviation is 16.
Check yourself
Every value in a data set is multiplied by 3. What happens to the standard deviation?
Show the answer
It is multiplied by 3
Spreading every value by a factor of 3 triples the spread.
5Comparing data sets
When asked to compare two distributions, always comment on:
- A measure of centre (mean or median): which group is typically higher?
- A measure of spread (IQR, range or standard deviation): which group is more consistent?
- In context: say what it means for the situation.
"Class A's median score (68) is higher than Class B's (61), so Class A typically scored higher. Class A's IQR (10) is smaller than Class B's (18), so Class A's scores were more consistent."
Check yourself
Group A has standard deviation 3 and group B has 9. What does this tell you?
Show the answer
Group A's values are more consistent
A smaller standard deviation means less spread.
6Outliers using the IQR rule
A common rule: a value is an outlier if it lies more than $1.5 \times \text{IQR}$ below $Q_1$ or above $Q_3$.
Worked example
- $Q_1 = 20$, $Q_3 = 32$, so IQR $= 12$.
- $1.5 \times 12 = 18$.
- Lower fence: $20 - 18 = 2$. Upper fence: $32 + 18 = 50$.
- A value of 55 is an outlier; a value of 48 is not.
Check yourself
With $Q_1 = 10$ and $Q_3 = 20$, what is the upper fence for outliers?
Show the answer
35
$20 + 1.5 \times 10$.
7Comparing two data sets
When comparing data sets, comment on centre and spread, in context.
Two classes' test scores
- Class A: median 65, IQR 12. Class B: median 58, IQR 25.
- Centre: Class A scored higher on average (higher median).
- Spread: Class A's scores were more consistent (smaller IQR).
- Conclusion: Class A performed better and more consistently.
Check yourself
A smaller IQR shows what about a data set?
Show the answer
Its middle values are more consistent
Less spread.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera