8B

Mean, median, mode and range

Calculating the mean, median, mode and range, finding a missing value from the mean, the effect of outliers and choosing the best measure.

A whole data set can be summed up by two kinds of number: a "typical" value (a measure of centre) and how spread out the values are (a measure of spread). Each measure suits different situations, so knowing which one to use matters as much as calculating it.

Measures of centre

MeasureHow to find it
MeanAdd all the values, then divide by how many there are.
MedianPut the values in order and take the middle one. With an even number of values, take the mean of the middle two.
ModeThe value that occurs most often. There may be more than one, or none.
Example 1●

Find the mean, median and mode of $7, 3, 9, 3, 12, 8$.

Mean $= \dfrac{42}{6} = 7$
Add the six values and divide by 6.
Median $= \dfrac{7 + 8}{2} = 7.5$
Order first: 3, 3, 7, 8, 9, 12. With six values, the middle two are the 3rd and 4th.
Mode $= 3$
3 appears twice; everything else once.

Mean from a frequency table

Multiply each value by its frequency to get the total, then divide by the total frequency.

Example 2●●

Twenty families were asked how many cars they own: $0$ cars (frequency $2$), $1$ car ($9$), $2$ cars ($7$), $3$ cars ($2$). Find the mean.

$0 \times 2 + 1 \times 9 + 2 \times 7 + 3 \times 2 = 29$
Total cars = value × frequency, added up.
Mean $= 29 \div 20 = 1.45$ cars
Divide by the number of families, 20, not by 4.

A missing value

Mean $\times$ number of values $=$ total. Use this to find a missing value.

Example 3●●

The mean of five test marks is $72$. Four of them are $65$, $80$, $70$ and $68$. Find the fifth.

Total $= 360$
The five marks must add to 5 × 72.
Fifth mark $= 360 - (65 + 80 + 70 + 68) = 360 - 283 = 77$

Spread and outliers

The range is the highest value minus the lowest. It is quick, but one extreme value changes it a lot.

The interquartile range (IQR) measures the spread of the middle half of the data. Split the ordered data into a lower half and an upper half. The median of the lower half is $Q_1$, the median of the upper half is $Q_3$, and IQR $= Q_3 - Q_1$.

An outlier is a value far away from the rest. It drags the mean and the range towards it, but barely moves the median or the IQR.

Mean, median and an outlier

Drag any dot to change the data. The mean (dashed blue) and median (green) update as you go.

Try this

Note the mean and the median. Now drag the $8$ all the way to $20$. Which one changes a lot and which hardly moves? That is why the median is better when there is an outlier.

Your turn

Find the median and IQR of $11, 4, 8, 15, 6, 9, 13, 5$.

Show the working

Ordered: $4, 5, 6, 8, 9, 11, 13, 15$. Median $= \dfrac{8 + 9}{2} = 8.5$. Lower half $4, 5, 6, 8$: $Q_1 = 5.5$. Upper half $9, 11, 13, 15$: $Q_3 = 12$. IQR $= 12 - 5.5 = 6.5$.

Flashcards
Mean
Sum of values $\div$ number of values
Median
The middle value of the ordered data
Interquartile range
$Q_3 - Q_1$: the spread of the middle half
Practice
  1. Find the mean of $4, 7, 9, 10, 15$.

  2. Find the median of $3, 8, 5, 12, 6, 9$.

  3. Find the mode of $2, 4, 4, 5, 7, 7, 7, 9$.

  4. Find the range of $12, 5, 19, 8, 23$.

  5. An outlier is added to a data set. Which measure changes the most?

  6. The mean of five scores is $14$. Four of them are $10$, $12$, $15$ and $18$. Find the fifth score.

  7. A frequency table shows: score $1$ (frequency $2$), score $2$ (frequency $5$), score $3$ (frequency $3$). Find the mean score.

  8. A street has nine houses worth about $\$800\,000$ and one mansion worth $\$9$ million. Which measure best describes a typical house price?

  9. Challenge: find the interquartile range of $2, 4, 5, 7, 8, 10, 12, 15$.

  10. Challenge: the mean of six numbers is $8$. One of them, $18$, is removed. Find the mean of the other five.

Formula sheet