impera Open Impera

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.
Worked example

A small data set

  1. Data: 4, 7, 7, 8, 10, 12, 15, 21.
  2. Mean: $\frac{84}{8} = 10.5$.
  3. Median: there are 8 values, so it is halfway between the 4th and 5th: $\frac{8 + 10}{2} = 9$.
  4. 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?

  • All are affected equally

  • The mean

  • The range

  • The median

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.

Worked example

Grouped mean

  1. Times (minutes): midpoints 5, 15, 25, 35 with frequencies 4, 9, 5, 2.
  2. $\sum fx = 20 + 135 + 125 + 70 = 350$.
  3. 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?

  • 3.3

  • 2.1

  • 2

  • 6

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.
Worked example

Quartiles

  1. Data: 4, 7, 7, 8 | 10, 12, 15, 21.
  2. $Q_1$ = median of 4, 7, 7, 8 = 7. $Q_3$ = median of 10, 12, 15, 21 = 13.5.
  3. IQR $= 13.5 - 7 = 6.5$. Range $= 21 - 4 = 17$.
  4. 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?

  • 31

  • 7

  • 19

  • 15.5

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$.
Example

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?

  • It is multiplied by 3

  • It is multiplied by 9

  • It stays the same

  • It increases by 3

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:

  1. A measure of centre (mean or median): which group is typically higher?
  2. A measure of spread (IQR, range or standard deviation): which group is more consistent?
  3. In context: say what it means for the situation.
Example

"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?

  • Group A has a higher average value

  • Group B has a higher average value

  • Group B's values are more consistent

  • Group A's values are more consistent

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

  1. $Q_1 = 20$, $Q_3 = 32$, so IQR $= 12$.
  2. $1.5 \times 12 = 18$.
  3. Lower fence: $20 - 18 = 2$. Upper fence: $32 + 18 = 50$.
  4. 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?

  • 25

  • 30

  • 40

  • 35

Show the answer

35

$20 + 1.5 \times 10$.

7Comparing two data sets

When comparing data sets, comment on centre and spread, in context.

Worked example

Two classes' test scores

  1. Class A: median 65, IQR 12. Class B: median 58, IQR 25.
  2. Centre: Class A scored higher on average (higher median).
  3. Spread: Class A's scores were more consistent (smaller IQR).
  4. Conclusion: Class A performed better and more consistently.
Check yourself

A smaller IQR shows what about a data set?

  • Its middle values are more consistent

  • It contains outliers at both ends

  • It has more data values in the set

  • Its average is higher than the other

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