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
| Measure | How to find it |
|---|---|
| Mean | Add all the values, then divide by how many there are. |
| Median | Put the values in order and take the middle one. With an even number of values, take the mean of the middle two. |
| Mode | The value that occurs most often. There may be more than one, or none. |
Find the mean, median and mode of $7, 3, 9, 3, 12, 8$.
Mean from a frequency table
Multiply each value by its frequency to get the total, then divide by the total frequency.
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.
A missing value
Mean $\times$ number of values $=$ total. Use this to find a missing value.
The mean of five test marks is $72$. Four of them are $65$, $80$, $70$ and $68$. Find the fifth.
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.
Drag any dot to change the data. The mean (dashed blue) and median (green) update as you go.
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$.
Find the mean of $4, 7, 9, 10, 15$.
$4 + 7 + 9 + 10 + 15 = 45$, and $45 \div 5 = 9$.
Find the median of $3, 8, 5, 12, 6, 9$.
Ordered: $3, 5, 6, 8, 9, 12$. The middle two are $6$ and $8$, so the median is $7$.
Find the mode of $2, 4, 4, 5, 7, 7, 7, 9$.
$7$ appears three times, more than any other value.
Find the range of $12, 5, 19, 8, 23$.
$23 - 5 = 18$.
An outlier is added to a data set. Which measure changes the most?
The mean uses every value, so one extreme value pulls it a long way. The median and IQR depend only on the middle values.
The mean of five scores is $14$. Four of them are $10$, $12$, $15$ and $18$. Find the fifth score.
Total $= 5 \times 14 = 70$. Fifth $= 70 - (10 + 12 + 15 + 18) = 70 - 55 = 15$.
A frequency table shows: score $1$ (frequency $2$), score $2$ (frequency $5$), score $3$ (frequency $3$). Find the mean score.
Total $= 1 \times 2 + 2 \times 5 + 3 \times 3 = 21$. Number of scores $= 10$. Mean $= 2.1$.
A street has nine houses worth about $\$800\,000$ and one mansion worth $\$9$ million. Which measure best describes a typical house price?
The mansion is an outlier. It drags the mean up, but the median stays close to $\$800\,000$.
Challenge: find the interquartile range of $2, 4, 5, 7, 8, 10, 12, 15$.
Lower half $2, 4, 5, 7$: $Q_1 = 4.5$. Upper half $8, 10, 12, 15$: $Q_3 = 11$. IQR $= 11 - 4.5 = 6.5$.
Challenge: the mean of six numbers is $8$. One of them, $18$, is removed. Find the mean of the other five.
Total of six $= 48$. Remove $18$: $30$ left over five numbers. Mean $= 30 \div 5 = 6$.
Coaching Centre