impera Open Impera

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.

Worked example

Centre of a small data set

  1. Data: 3, 5, 7, 8, 9, 12, 15.
  2. Mean: $\frac{59}{7} = 8.43$.
  3. Median: the 4th value, $8$.
  4. There is no mode, since each value appears once.
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

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.

Worked example

Estimating a mean

  1. Times (minutes): 0–10 (4), 10–20 (9), 20–30 (12), 30–40 (7), 40–50 (3).
  2. Midpoints: 5, 15, 25, 35, 45. Total frequency: 35.
  3. $\sum fx = 20 + 135 + 300 + 245 + 135 = 835$.
  4. Estimated mean: $\frac{835}{35} = 23.9$ minutes.
  5. 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?

  • The frequency

  • The lower boundary

  • The midpoint

  • The upper boundary

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

Quartiles

  1. Data: 3, 5, 7, 8, 9, 12, 15. The median is 8.
  2. Lower half: 3, 5, 7, so $Q_1 = 5$.
  3. Upper half: 9, 12, 15, so $Q_3 = 12$.
  4. $\text{IQR} = 7$ and range $= 12$.
Check yourself

What does the IQR measure?

  • The spread of all of the data values

  • The spread of the middle half of the data

  • The most common value in the data set

  • The middle value of the ordered data

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

Worked example

Converting units

  1. Temperatures have mean $20$ and standard deviation $4$ in °C.
  2. To convert to °F, use $F = 1.8C + 32$.
  3. New mean: $1.8 \times 20 + 32 = 68$.
  4. 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?

  • It is multiplied by 5

  • It increases by 25

  • It increases by 5

  • It stays the same

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

Test scores

  1. Mean 60, standard deviation 8.
  2. The teacher adds 5 to every score: new mean 65, standard deviation still 8.
  3. 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?

  • It stays the same

  • It increases by 10

  • It becomes zero

  • It doubles

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

House prices

  1. Prices (thousands): 150, 160, 170, 180, 1 200.
  2. Mean: 372; median: 170.
  3. The median better represents a typical price because one mansion distorts the mean.
Check yourself

Which average is best for data with extreme outliers?

  • The standard deviation

  • The median

  • The mean

  • The range

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