Measures of Spread and Outliers
Theory
Range, interquartile range and standard deviation measure how spread out data are. This Year 11 Maths Standard page shows how to find the range, the quartiles and IQR, how to test for outliers with \(Q_1-1.5\times IQR\) and \(Q_3+1.5\times IQR\), and how to find and interpret the population standard deviation on a calculator.
A measure of spread tells you how far apart the scores are. Two data sets can have the same mean but very different spreads.
The range is the highest score minus the lowest score. It uses only those two scores, so one outlier makes it large.
The quartiles split the ordered data into four parts, each holding about \(25\%\) of the scores. The median \(Q_2\) splits the data into a lower half and an upper half. The lower quartile \(Q_1\) is the median of the lower half and the upper quartile \(Q_3\) is the median of the upper half. When there is an odd number of scores, leave the median itself out of both halves.
The interquartile range is \(IQR=Q_3-Q_1\). It is the spread of the middle \(50\%\) of the data, so outliers do not affect it. The five-number summary is the minimum, \(Q_1\), median, \(Q_3\) and maximum.
An outlier is a score that is unusually far from the rest. A score is an outlier if it is below \(Q_1-1.5\times IQR\) or above \(Q_3+1.5\times IQR\).
The standard deviation measures how far the scores are, on average, from the mean. We use the population standard deviation, \(\sigma\). A small \(\sigma\) means the scores are bunched close to the mean (consistent); a large \(\sigma\) means they are spread out. Adding the same number to every score moves the data along but does not change the range, IQR or standard deviation.
The measures of spread:
Outlier limits:
Population standard deviation of \(n\) scores with mean \(\overline{x}\):
How to find the IQR and test for outliers
- Order the scores and count them.
- Find the median. Split the data into a lower and an upper half (leave the median out if \(n\) is odd).
- Find \(Q_1\) and \(Q_3\), the medians of the two halves, then \(IQR=Q_3-Q_1\).
- Test for outliers: work out \(1.5\times IQR\), then the limits \(Q_1-1.5\times IQR\) and \(Q_3+1.5\times IQR\). Any score outside the limits is an outlier.
How to find the standard deviation (calculator)
- Statistics mode: choose single-variable statistics (1-VAR). For a frequency table, turn the frequency column on.
- Enter the scores (and frequencies). Check \(n\) is right.
- Read \(\overline{x}\) and the population standard deviation \(\sigma_n\) (\(\sigma x\)). Round at the end, usually to \(2\) decimal places.
- Interpret: the smaller standard deviation is the more consistent set of data.
\(14,\ 9,\ 21,\ 17,\ 12,\ 25,\ 11,\ 19\)
Find (i) the range and (ii) the interquartile range.
Order the scores: \(9,\ 11,\ 12,\ 14,\ 17,\ 19,\ 21,\ 25\)
(i)
| \(\text{Range}\) | \(=\) | \(25-9\) |
| \(\) | \(=\) | \(\mathbf{16}\) |
(ii) \(8\) scores: two halves of \(4\).
Lower half \(9,\ 11,\ 12,\ 14\) \(\Rightarrow Q_1=\dfrac{11+12}{2}=11.5\)
Upper half \(17,\ 19,\ 21,\ 25\) \(\Rightarrow Q_3=\dfrac{19+21}{2}=20\)
| \(IQR\) | \(=\) | \(20-11.5\) |
| \(\) | \(=\) | \(\mathbf{8.5}\) |
\(18,\ 22,\ 23,\ 25,\ 26,\ 27,\ 29,\ 30,\ 31,\ 33,\ 52\)
(i) Find the interquartile range.
(ii) Are there any outliers? Justify your answer.
(i) \(11\) scores, so the median is the 6th score \(=27\). Leave it out of both halves.
Lower 5: \(18,\ 22,\ \mathbf{23},\ 25,\ 26\) \(\Rightarrow Q_1=23\)
Upper 5: \(29,\ 30,\ \mathbf{31},\ 33,\ 52\) \(\Rightarrow Q_3=31\)
| \(IQR\) | \(=\) | \(31-23\) |
| \(\) | \(=\) | \(\mathbf{8}\text{ minutes}\) |
(ii) \(1.5\times IQR=1.5\times 8=12\)
| \(\text{Lower limit}\) | \(=\) | \(23-12=11\) |
| \(\text{Upper limit}\) | \(=\) | \(31+12=43\) |
\(18>11\), so the lowest time is not an outlier. \(52>43\), so \(\mathbf{52}\) minutes is an outlier.
First find the mean.
| \(\overline{x}\) | \(=\) | \(\dfrac{3+7+8+10+12}{5}=\dfrac{40}{5}=8\) |
Square each distance from the mean and add.
| \(\sum(x-\overline{x})^2\) | \(=\) | \((-5)^2+(-1)^2+0^2+2^2+4^2\) |
| \(\) | \(=\) | \(46\) |
| \(\sigma\) | \(=\) | \(\sqrt{\dfrac{46}{5}}=\sqrt{9.2}\) |
| \(\) | \(=\) | \(3.033\ldots\) |
| \(\) | \(\approx\) | \(\mathbf{3.03}\text{ km}\) |
Calculator check: statistics mode, enter the five values, read \(\sigma_n\) (\(\sigma x\)) \(=3.033\ldots\)
| Days \((x)\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) |
|---|---|---|---|---|---|
| Frequency \((f)\) | \(6\) | \(7\) | \(4\) | \(2\) | \(1\) |
(ii) Another class also has a mean of \(1.25\) days, with \(\sigma=0.62\). Which class has more consistent attendance?
(iii) If every student in the first class had been absent one more day, what would the mean and standard deviation be?
(i) Calculator, statistics mode with the frequency column on: enter \(x\): \(0,\ 1,\ 2,\ 3,\ 4\) with \(f\): \(6,\ 7,\ 4,\ 2,\ 1\).
| \(n\) | \(=\) | \(20\) |
| \(\overline{x}\) | \(=\) | \(\dfrac{25}{20}=\mathbf{1.25}\text{ days}\) |
| \(\sigma_n\) | \(=\) | \(1.1346\ldots\approx\mathbf{1.13}\text{ days}\) |
(ii) The other class. Same mean, but its standard deviation (\(0.62\)) is smaller, so its absences stay closer to the mean.
(iii) Every score goes up by \(1\), so the mean goes up by \(1\) to \(\mathbf{2.25}\) days. Every distance from the mean is unchanged, so \(\sigma\) stays \(\mathbf{1.13}\) days.
Common pitfalls
Frequently asked questions
How do you find the interquartile range?
Order the data and find the median. \(Q_1\) is the median of the lower half and \(Q_3\) is the median of the upper half (leave the median out of both halves when there is an odd number of scores). Then \(IQR=Q_3-Q_1\).
How do you know if a score is an outlier?
Work out \(Q_1-1.5\times IQR\) and \(Q_3+1.5\times IQR\). A score below the lower limit or above the upper limit is an outlier.
What does standard deviation tell you?
How spread out the scores are around the mean. A small standard deviation means the scores are close to the mean and consistent; a large one means they are spread out.
Which standard deviation do I use on my calculator?
Use the population standard deviation, labelled \(\sigma_n\) or \(\sigma x\). Do not use \(s_x\) or \(\sigma_{n-1}\), which is the sample standard deviation.
What percentage of scores lie between the quartiles?
About \(25\%\) of the scores lie between each pair of neighbouring quartiles, so about \(50\%\) lie between \(Q_1\) and \(Q_3\).
Does adding the same number to every score change the standard deviation?
No. The mean goes up by the same amount, so every distance from the mean is unchanged. The range and IQR do not change either.