IB Diploma Mathematics AA · Statistics and probability
Measures of centre and spread
1Mean, median and mode
- The mean is the total divided by the number of values: $\bar{x} = \frac{\sum x}{n}$.
- The median is the middle value when the data is in order. For $n$ values it is the $\frac{n + 1}{2}$th value.
- The mode is the most common value.
The mean uses every value, but it is pulled by outliers. The median is not affected by extreme values, so it is better for skewed data such as incomes.
Centre of a small data set
- Data: 3, 5, 7, 8, 9, 12, 15.
- Mean: $\frac{59}{7} = 8.43$.
- Median: the 4th value, $8$.
- There is no mode, since each value appears once.
Check yourself
Which average is least affected by an outlier?
Show the answer
The median
The median depends only on the middle position.
2Grouped data
When data is in classes, you do not know the exact values. Use the midpoint of each class as an estimate:
$$\bar{x} \approx \frac{\sum f x}{\sum f}$$
The class with the highest frequency is the modal class.
Estimating a mean
- Times (minutes): 0–10 (4), 10–20 (9), 20–30 (12), 30–40 (7), 40–50 (3).
- Midpoints: 5, 15, 25, 35, 45. Total frequency: 35.
- $\sum fx = 20 + 135 + 300 + 245 + 135 = 835$.
- Estimated mean: $\frac{835}{35} = 23.9$ minutes.
- Modal class: 20–30.
It is only an estimate, because the midpoints stand in for the real values.
Check yourself
For grouped data, what value represents each class when estimating the mean?
Show the answer
The midpoint
The midpoint is the best single guess for values in the class.
3Range, quartiles and IQR
- Range = maximum − minimum. It is easy, but it depends on the two most extreme values.
- Quartiles split 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$. It measures the spread of the middle 50% and ignores outliers.
Quartiles
- Data: 3, 5, 7, 8, 9, 12, 15. The median is 8.
- Lower half: 3, 5, 7, so $Q_1 = 5$.
- Upper half: 9, 12, 15, so $Q_3 = 12$.
- $\text{IQR} = 7$ and range $= 12$.
Check yourself
What does the IQR measure?
Show the answer
The spread of the middle half of the data
It runs from the lower to the upper quartile.
4Variance and standard deviation
The standard deviation $\sigma$ measures the typical distance of values from the mean. The variance is $\sigma^2$.
$$\sigma^2 = \frac{\sum (x - \bar{x})^2}{n}$$
In exams you find $\sigma$ with your GDC, but you must understand what it means:
- A small $\sigma$ means the values are close to the mean.
- A large $\sigma$ means they are spread out.
For the data 3, 5, 7, 8, 9, 12, 15, the GDC gives $\sigma = 3.77$.
Changing the data: if you add $k$ to every value, the mean increases by $k$ but the standard deviation does not change. If you multiply every value by $k$, both the mean and the standard deviation are multiplied by $k$ (and the variance by $k^2$).
Converting units
- Temperatures have mean $20$ and standard deviation $4$ in °C.
- To convert to °F, use $F = 1.8C + 32$.
- New mean: $1.8 \times 20 + 32 = 68$.
- New standard deviation: $1.8 \times 4 = 7.2$. Adding 32 has no effect on spread.
Check yourself
Every value in a data set has 5 added. What happens to the standard deviation?
Show the answer
It stays the same
Shifting all values does not change how spread out they are.
5Effect of changing data
If every data value is changed in the same way:
- Adding a constant $c$: mean and median increase by $c$; range, IQR and standard deviation do not change.
- Multiplying by $k$: mean, median, range, IQR and standard deviation are all multiplied by $k$ (and variance by $k^2$).
Test scores
- Mean 60, standard deviation 8.
- The teacher adds 5 to every score: new mean 65, standard deviation still 8.
- Then all scores are doubled: mean 130, standard deviation 16.
Check yourself
If 10 is added to every value, what happens to the standard deviation?
Show the answer
It stays the same
Spread unchanged.
6Choosing a measure
- Mean: uses all data, but is affected by outliers.
- Median: resistant to outliers; good for skewed data such as incomes.
- Mode: useful for categorical data.
- Standard deviation: pairs with the mean.
- IQR: pairs with the median and resists outliers.
House prices
- Prices (thousands): 150, 160, 170, 180, 1 200.
- Mean: 372; median: 170.
- The median better represents a typical price because one mansion distorts the mean.
Check yourself
Which average is best for data with extreme outliers?
Show the answer
The median
Resistant to outliers.
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