Measures of Dispersion
Senior 4 · Mathematics
Measures of Dispersion
Lesson 2 of 3
25 min
The range uses only the two most extreme values, and the IQR ignores half the data. A better measure of spread should use every value. The natural idea is to measure how far each value lies from the mean. For Company A's 11 journey times from the last lesson (mean 150 minutes), these distances, called deviations, are drawn below.
The deviations are . Their sum is 0, and this is no accident: for any data set,
So the mean deviation is always zero and tells us nothing. Squaring each deviation removes the signs, and gives the most important measures of spread in statistics.
Definition
Variance: the mean of the squared deviations from the mean. For values with mean ,
Standard deviation: the positive square root of the variance, .
Notation: is the Greek letter sigma; some books write for the variance and for the standard deviation. The variance is in squared units (); the standard deviation is in the units of the data (minutes), which is why it is the one we usually quote.
Example: for 2, 4, 6 the mean is 4, the deviations are , so and .
Worked example 1: the two bus companies
Find the standard deviation of the journey times of each company.
Solution
Company A: squared deviations , with sum 206.
Company B: deviations ; squares , with sum 3354.
Company B's standard deviation is about four times Company A's: a typical B trip is some 17 minutes away from the mean, a typical A trip only about 4.
Working out every deviation is slow when the mean is not a whole number. Expanding the square gives a formula that needs only and .
Important
Computing formula.
Proof. . Divide by .
In words: variance = (mean of the squares) − (square of the mean).
Worked example 2: a frequency table
The numbers of goals scored in 30 matches of a school league were (illustrative data):
| Goals, | 0 | 1 | 2 | 3 | 4 | 5 | Total |
|---|---|---|---|---|---|---|---|
| Matches, | 4 | 8 | 9 | 5 | 3 | 1 | 30 |
| 0 | 8 | 18 | 15 | 12 | 5 | 58 | |
| 0 | 8 | 36 | 45 | 48 | 25 | 162 |
Find the mean and the standard deviation.
Solution
Keep unrounded (as the fraction ) until the end: squaring a rounded mean can spoil the answer.
Worked example 3: grouped data
A dairy cooperative recorded the morning milk yield of 40 cows (illustrative data). For grouped data, each class is represented by its midpoint .
| Yield (litres) | |||||
|---|---|---|---|---|---|
| Cows, | 4 | 10 | 14 | 8 | 4 |
| Midpoint, | 2.5 | 7.5 | 12.5 | 17.5 | 22.5 |
| 10 | 75 | 175 | 140 | 90 | |
| 25 | 562.5 | 2187.5 | 2450 | 2025 |
Solution
, , .
These are estimates: using midpoints assumes the values in each class are centred on its middle.
Warning
Two slips that cost marks. (1) Forgetting the square root: the variance (31.19 L²) is not the standard deviation (5.58 L). (2) Using the wrong calculator key: most calculators show both (divide by ) and (divide by ). In this unit we describe a whole data set, so we divide by and use . Dividing by is used when a sample is used to estimate the spread of a larger population; you will meet it later.
Two classes, or two weeks of data, often need to be pooled. The combined mean is a weighted mean, but the combined standard deviation is not the average of the two standard deviations. The trick is to rebuild each group's from its summary: since ,
Important
Combined data sets. For groups of sizes , means and standard deviations :
Worked example 4: two classes, one result
In a mathematics test, the 30 students of S4 A had mean 62 and standard deviation 8; the 20 students of S4 B had mean 70 and standard deviation 10. Find the mean and the standard deviation of all 50 marks.
Solution
Rebuild the sums of squares: S4 A: ; S4 B: .
The combined standard deviation (9.68) is larger than both 8 and 10 would suggest on average, because the gap between the two class means adds extra spread.
Tip
Shifting and scaling. If every value is increased by a constant , the mean increases by but the standard deviation does not change: every deviation stays the same. If every value is multiplied by , both the mean and the standard deviation are multiplied by , and the variance by . So you can subtract a convenient number (such as 150 from the journey times) before calculating, and add it back to the mean only.
1st Class Maths: Variance and Standard Deviation (A-level statistics). Watch how the formula 'mean of the squares minus the square of the mean' is used with a frequency table.
Practice
Try each one before opening the answers. Give answers to 3 significant figures where they are not exact.
Key points
Sources and credits
Quick check
Why is the variance built from squared deviations rather than plain deviations from the mean?