Standard Deviation
Deviations from the mean, and the standard deviation of a list of data: by both forms of the formula and by calculator (σ, dividing by n); and what a large or a small standard deviation says about the data.
What You Should Already Know
- From lesson 3.3: the range and the interquartile range measure the spread of data, each from only two values. One very large or very small value changes the range a lot but hardly changes the interquartile range.
- From Secondary 2: the mean is the sum of the values divided by the number of values, and means "the sum of". For values, .
- For example, the values 2, 3, 5, 9, 11 have mean and range .
Deviations from the Mean
The range and the interquartile range each use only two values of the data. A measure of spread that uses every value asks how far each value is from the mean.
Deviation from the mean
The deviation of a value from the mean is .
A value above the mean has a positive deviation, a value below the mean a negative one, and a value equal to the mean a deviation of 0.
The deviations of any set of data add up to 0: the values above the mean balance those below it.
Example 1: Deviations
Find the deviation of each of the values 2, 3, 5, 9, 11 from their mean, and add the deviations.
Solution
The mean is
The deviations are , , , and .
Each arrow starts at the mean and ends at the value: an arrow to the left is a negative deviation, one to the right a positive one.
Sum:
The deviations are , , , 3 and 5; they add up to 0.
Because the deviations always add up to 0, their mean is always 0, however spread out the data are: it tells us nothing. So each deviation is squared first. Squaring makes every deviation positive or zero, and a value far from the mean, above or below it, gives a large square.
The Standard Deviation
The standard deviation
The standard deviation (the Greek small letter sigma) of values with mean is
1. Find the mean . 2. Find each deviation . 3. Square each deviation. 4. Add the squares: . 5. Divide by , the number of values. 6. Take the square root.
The square root brings the answer back to the units of the data: if the data are in minutes, is in minutes.
Example 2: The standard deviation of a list
Find the standard deviation of 2, 3, 5, 9, 11.
Solution
From Example 1, . A table keeps the working in order: one row for each value, then the deviation and its square.
| Total: |
|---|
and .
The standard deviation is (to 3 significant figures).
A check on the size of σ
The standard deviation is a kind of typical distance from the mean. It is never less than the smallest distance of a value from the mean, and never more than the largest. In Example 2 the distances are 1 to 5, and lies between them. An answer of 12, or of 0.35, would be wrong.
A Second Form of the Formula
When the mean is not a whole number, every deviation is a decimal, and squaring them all is slow. The same standard deviation can be worked out from the squares of the values themselves.
The standard deviation: second form
is the sum of the squares of the values: square each value, then add. It is not .
The two forms always give the same answer. Use the mean as it is, not rounded: a small error in becomes a large error once it is squared and subtracted.
Example 3: The same data by the second form
Find the standard deviation of 2, 3, 5, 9, 11 by the second form of the formula.
Solution
Square each value:
| Total: |
|---|
and .
, the same answer as Example 2.
Example 4: A mean that is not a whole number
Find the mean and the standard deviation of the data set A: 10, 11, 10, 11, 10.
Solution
and , so . The deviations would all be decimals ( and ), so use the second form.
| Total: |
|---|
Had the mean been rounded to 10, the working would give about six times too large. Keep the exact mean.
Mean 10.4; standard deviation (to 3 significant figures).
Using a Calculator
For more than a few values, the statistics mode of a scientific calculator does the working. The keys differ a little from one model to another, but the steps are these.
The standard deviation on a calculator
1. Put the calculator in statistics mode, for data of one variable, and clear any old data.
2. Key in each value.
3. Open the results. Among other numbers, the calculator lists , , , and two standard deviations. Take only these.
4. Take σx (on some calculators xσn), which divides by . This is the standard deviation of this course.
The other one, sx (on some calculators xσn−1), divides by . It belongs to further statistics, not to this course, and gives a larger answer.
Example 5: Which standard deviation?
Shanti keys 2, 3, 5, 9, 11 into her calculator. It shows , σx and sx . Which is the standard deviation, and where does the other number come from?
Solution
σx divides by : the answer of Example 2.
sx divides by : It is not the standard deviation of this course.
The calculator also shows , and : checking shows that no value was missed or keyed twice.
The standard deviation is σx: . The other, 3.87, is sx, which divides by .
What the Standard Deviation Tells Us
Reading a standard deviation
A small standard deviation: the values are close to the mean. The data are consistent.
A large standard deviation: the values are spread out from the mean. The data vary a lot.
only when every value is the same; is never negative. It has the units of the data.
The standard deviation describes the spread only. It says nothing about whether the values are large or small: that is the mean's job.
Example 6: The same mean, different spreads
Data set A is 10, 11, 10, 11, 10 and data set B is 4, 8, 11, 13, 16. (a) Show that the two sets have the same mean. (b) Find the standard deviation of B, and compare it with that of A (Example 4).
Solution
(a) Each set has and , so each mean is .
(b) Either form will do. Example 4 used the second form; here the first form is used, to show that it works as well when the deviations are decimals with one place.
| Total: |
|---|
Set A has and set B . The diagrams show why: A's values are all within 1 of the mean, while B's reach from 4 to 16.
(a) Both means are 10.4. (b) for B against 0.490 for A: B is far more spread out, and A far more consistent, although their means are the same.
Example 7: One very large value
The 15 driving times, in minutes, of lesson 3.3 are 13, 14, 18, 18, 19, 21, 22, 22, 24, 25, 27, 28, 30, 33, 43. Their interquartile range is 10 minutes. (a) Find their standard deviation. (b) The time of 43 minutes is changed to 93 minutes. Find the new standard deviation, and compare the change with that in the interquartile range.
Solution
(a) By calculator: , , , , and σx
Check by the second form:
(b) Now , , , and σx
Lesson 3.3 found that the interquartile range stays 10 minutes: the quartiles do not move.
The standard deviation uses every value, and the value 93 is about 66 minutes from the new mean. Its squared deviation, about 4340, is most of the total, so more than doubles.
(a) minutes (b) minutes. One very large value more than doubled the standard deviation, but did not change the interquartile range.
So each measure of spread has its strength. The range and the interquartile range each use only two values. The standard deviation uses every value; for that reason one very large or very small value affects it, while the interquartile range is hardly affected. Lesson 3.7 uses this to choose between them.
Common Mistakes
- Taking the mean of the deviations as the spread. The deviations always add up to 0, so their mean is always 0: square them first.
- Forgetting the square root. In Example 2, is not the standard deviation; is.
- Taking sx on the calculator, which divides by : 3.87 in Example 5. Take σx (xσn), which divides by .
- Working out in place of . For 2, 3, 5, 9, 11, , but .
- Rounding the mean before using the second form. In Example 4 a mean of 10 in place of 10.4 gives 2.90 in place of 0.490.
- Taking the square root of alone and then subtracting . The square root covers the whole difference.
- Reading a large standard deviation as large values. The standard deviation says how spread out the values are, not how large they are.
Practice Questions
Try each question first, then open the solution to check your working. Give each standard deviation to 3 significant figures, and keep the full value until the last line.
Question 1
For the values 4, 7, 7, 10, 12: (a) find the mean and the deviation of each value from the mean, and check that the deviations add up to 0; (b) find the standard deviation.
ShowHide solution
(a) . Deviations: , , , 2, 4. Sum:
(b) Squares: 16, 1, 1, 4, 16; .
(a) Mean 8; deviations , , , 2, 4 (sum 0) (b)
Question 2
Mei Ling cycled to school on six days. Her times, in minutes, were 18, 21, 19, 24, 20, 18. Find the mean and the standard deviation of her times.
ShowHide solution
, , so minutes. The mean is a whole number, so the first form is quick.
| Total: |
|---|
Mean 20 minutes; standard deviation about 2.08 minutes.
Question 3
Find the standard deviation of 3, 4, 4, 5, 7, 9 by the second form of the formula.
ShowHide solution
, , so a recurring decimal. Keep it as (or in the calculator's memory).
| Total: |
|---|
Question 4
Darren keyed the five values 4, 7, 7, 10, 12 into his calculator and wrote "standard deviation ". Explain his mistake, and give the right answer.
ShowHide solution
(Question 1). Dividing by gives : Darren read sx.
The standard deviation divides by : , shown as σx (or xσn).
He took sx, which divides by . The standard deviation is σx .
Question 5
Ten pupils recorded the number of books each read in a term. For their numbers , and . Find the mean and the standard deviation.
ShowHide solution
books.
Mean 8.5 books; standard deviation about 2.33 books.
Question 6
The five values 2, 4, 6, 8 and have mean 6. Find , and the standard deviation of the five values.
ShowHide solution
The sum is , so and .
Deviations: , , 0, 2, 4. Squares: 16, 4, 0, 4, 16; sum 40.
;
Question 7
Without working anything out, put these three sets in order of standard deviation, smallest first, and give a reason. Then check by working out the standard deviations of Q and R. P: 5, 5, 5, 5. Q: 4, 5, 6. R: 1, 5, 9.
ShowHide solution
All three sets have mean 5. In P every value is 5, so every deviation is 0 and . In Q the values are 1 away from the mean (or 0); in R, 4 away. So P, then Q, then R.
Q: squares 1, 0, 1, sum 2:
R: squares 16, 0, 16, sum 32:
P (), then Q (), then R (): the further the values from the mean, the larger .
Question 8
The ages, in years, of five cousins are 3, 5, 8, 10, 14. (a) Find the mean and the standard deviation of their ages. (b) Without working them out again, write down the mean and the standard deviation of their ages 10 years from now, and explain.
ShowHide solution
(a) . Deviations , , 0, 2, 6; squares 25, 9, 0, 4, 36; sum 74.
(b) Every age goes up by 10, so the mean goes up by 10, to 18 years. Every value and the mean move together, so every deviation stays the same, and so does .
(a) Mean 8 years; years (b) mean 18 years; years still, because the deviations do not change.
Question 9
The masses, in grams, of 8 eggs in a box are 52, 55, 58, 54, 60, 57, 53, 59. (a) Find the mean and the standard deviation. (b) Two more eggs, each of mass 56 g, are put in the box. Without working it out, say whether the standard deviation of the 10 masses is larger or smaller, and why. Then check.
ShowHide solution
(a) , so g. Deviations: , , 2, , 4, 1, , 3; squares 16, 1, 4, 4, 16, 1, 9, 9; sum 60.
g.
(b) The new eggs are at the mean, 56 g, so the mean stays 56 g and their deviations are 0. The sum of the squares stays 60 but is now divided by 10: the standard deviation is smaller.
Check: g.
(a) Mean 56 g; g (b) Smaller: g, because two values at the mean add nothing to .
Question 10
The heights of the pupils in class 4X have standard deviation 4.2 cm, and those in class 4Y 7.9 cm. Priya says, "So the pupils in 4Y are taller." Is she right? What do the two standard deviations tell us?
ShowHide solution
No. A standard deviation measures spread, not size. To compare which class is taller on average, we need the means.
The heights in 4Y are more spread out about their mean than those in 4X; the heights in 4X are more alike.
No. The standard deviations say only that 4Y's heights vary more and 4X's are more consistent; the means are needed to say which class is taller.
Key Points
- The deviation of a value from the mean is ; the deviations always add up to 0.
- Standard deviation: or both give the same answer.
- Use the exact mean, round only at the end, and give to 3 significant figures in the units of the data.
- On a calculator in statistics mode, take σx (xσn), which divides by , not sx (xσn−1).
- A small standard deviation: values close to the mean, consistent data. A large one: values spread out.
- The standard deviation uses every value, so one very large or very small value affects it; the interquartile range is hardly affected.
- The standard deviation measures spread only, never the size of the values.