11.5 The standard deviation — Learn
Prerequisites: Section 11.4 — the mean, the median and the range; squaring a number and taking a square root.
Objectives: find the standard deviation of a list and from a frequency table; find quartiles and the interquartile range; choose the measure of spread that suits the data.
By the end of this section you can put a single number on how spread out a data set is, and you can explain what that number means.
Why the range is not enough
The range uses only two values, so one outlier can make it huge. Two data sets can share a range and be spread out in completely different ways. The standard deviation uses every value, so it measures the whole data set.
The standard deviation starts from the deviation of each value from the mean, . Some deviations are positive and some are negative, and they add to zero.
To stop them cancelling, we square each one. The mean of the squared deviations is the variance, and its square root is the standard deviation.
The standard deviation of a list. For values with mean ,
where is how many values there are. This is the formula in the formulae and tables booklet. The Greek letter is read "sigma".
The variance is . The standard deviation is in the same units as the data, which is why it is usually reported instead of the variance.
Example 1. Find the standard deviation of , , , and .
The mean is . The deviations and their squares are:
The squared deviations add to , so the variance is and
From a frequency table
When the data are in a frequency table, each squared deviation is multiplied by its frequency.
The standard deviation from a frequency table.
Example 2. Find the standard deviation of the data in this table.
| Value | Frequency |
|---|---|
The total frequency is and the mean is
The squared deviations are , , , and . Weighted by frequency:
A sample and the population
The formula above divides by , which describes a data set that is the whole population. When the data are a sample used to estimate the spread of a larger population, dividing by gives a better estimate. The booklet prints this estimate as .
Example 3. Find the sample standard deviation of , , , and .
The squared deviations still add to , and :
The sample estimate, , is larger than the population value, , because dividing by the smaller number makes the result larger.
Quartiles and the interquartile range
The interquartile range, or IQR, is the spread of the middle half of the data. It is found from the quartiles. The lower quartile is the value one quarter of the way up the ordered list, and the upper quartile is the value three quarters of the way up.
The interquartile range. .
The IQR ignores the lowest quarter and the highest quarter, so an outlier does not move it. The standard deviation uses every value, so an outlier does move it. Use the IQR when the data are skewed or contain outliers, and the standard deviation when they are fairly symmetric.
Example 4. Find the IQR of , , , , , , and , using the position method.
There are values. The position of is , which lies between the nd value and the rd value :
The position of is , between and :
Progress check
Back to the chapter problem. The ages recorded by the polling company were , , , , , , , , and , with mean .
Find the standard deviation, dividing by .
The squared deviations add to , so the variance is
and
The ages are spread about years either side of the mean. That is a wide spread, and it is another reason a sample of tells us little about the country. Section 11.7 shows how the sample size, not the spread alone, sets the margin of error.
You should now be able to
- explain what the standard deviation measures;
- find the standard deviation of a list;
- find the standard deviation from a frequency table;
- state whether you are dividing by or by ;
- find the quartiles and the IQR;
- choose between the IQR and the standard deviation.