Standard Deviation

How far values sit from their mean.

Close to the mean, or far from it

The values 4, 5 and 6 and the values 1, 5 and 9 have the same mean, 5. In the first set every value is within 1 of the mean. In the second, two of the values are 4 away from it.

The standard deviation is the most widely used measure of how far values sit from their mean. It is small when the values are close to the mean and larger when they are spread out, so it is smaller for 4, 5 and 6 than for 1, 5 and 9.

456

The values 4, 5 and 6 sit close together around their mean, 5.

159

On the same scale, 1, 5 and 9 have the same mean, 5, and spread much further from it.

Square, average, then take the square root

The differences from the mean cannot simply be averaged, because they always add up to 0. The mean absolute deviation drops their signs. The standard deviation squares them instead: a square is never negative, so the squares cannot cancel.

For 1, 5 and 9, the differences from 5 are −4, 0 and +4, and their squares are 16, 0 and 16. The mean of the squares is (16 + 0 + 16) ÷ 3 = 32 ÷ 3 ≈ 10.67. This mean of the squared differences is called the variance.

Finally, take the square root of the variance: √(32 ÷ 3) ≈ 3.27. That is the standard deviation. For 4, 5 and 6, the differences are −1, 0 and +1, the squares are 1, 0 and 1, the variance is 2 ÷ 3 ≈ 0.67, and the standard deviation is √(2 ÷ 3) ≈ 0.82, much smaller, as the dot plots suggest.

The standard deviation is written σ, the Greek small letter sigma. In symbols, σ = √(Σ(x − x̄)²/n): square each difference from the mean, add up the squares, divide by the number of values, and take the square root.

Why take the square root?

Squaring changes the units. If the values are lengths in centimeters, each squared difference is in square centimeters, and so is the variance. The square root brings the answer back to centimeters, the units of the data, so the standard deviation can be set beside the mean and the values themselves.

A standard deviation is 0 only when every value is the same, because then every difference from the mean is 0. It is never negative, and it is never more than the range.

The standard deviation and the MAD on one data set

Five seedlings grow 2, 6, 8, 10 and 14 millimeters in a week. The total is 40 mm, so the mean is 40 ÷ 5 = 8 mm. The differences from 8 are −6, −2, 0, +2 and +6.

For the mean absolute deviation, drop the signs: the distances 6, 2, 0, 2 and 6 total 16, and 16 ÷ 5 = 3.2 mm. For the standard deviation, square the differences instead: 36, 4, 0, 4 and 36 total 80, the variance is 80 ÷ 5 = 16 square millimeters, and σ = √16 = 4 mm.

Both measure how far the growths typically are from the mean, and they give different answers, 3.2 mm and 4 mm. The standard deviation is the larger. It always is at least as large as the mean absolute deviation, because squaring gives more weight to the values furthest from the mean.

x − 8distancesquare2−66366−224800010+22414+6636total01680

The distances total 16, so the mean absolute deviation is 16 ÷ 5 = 3.2 mm. The squares total 80, so the variance is 80 ÷ 5 = 16 and the standard deviation is √16 = 4 mm.

Why square?

The first reason is that squaring weights values far from the mean more heavily. The values 3, 3, 7 and 7 have mean 5, and every value is 2 from it, so the mean absolute deviation is 2 and the standard deviation is √((4 + 4 + 4 + 4) ÷ 4) = √4 = 2. The values 1, 5, 5 and 9 also have mean 5, and their distances 4, 0, 0 and 4 also average 2. But their squares are 16, 0, 0 and 16, so the standard deviation is √(32 ÷ 4) = √8 ≈ 2.83.

The two sets have the same mean absolute deviation, but the second has its spread in two values far from the mean, and the standard deviation is larger for it. A value twice as far from the mean adds four times as much to the variance: 4² = 16 against 2² = 4.

The second reason is that squares are easier to work with in algebra. The distance |x − x̄| has to be worked out one way for a value above the mean and another way for a value below it, while the square (x − x̄)² is one expression that holds for every value and can be expanded like any bracket. Expanding it gives a shorter way to calculate the standard deviation, which is the subject of the next lesson.

012345678910

The values 3, 3, 7 and 7: every value is 2 from the mean of 5, so the standard deviation is 2.

012345678910

The values 1, 5, 5 and 9 have the same mean and the same mean absolute deviation, 2, but the two values 4 from the mean raise the standard deviation to √8 ≈ 2.83.

05101520μ = 7.4|x − μ| = 5.6(x − μ)² = 31.4the other four: 27.8σ² = 59.2 / 5 = 11.84

(x − μ)² = 31.4: twice the distance is twice the bar and four times the square, so one far value outweighs several near ones

Drag the last value until its square reaches 100

The values 3, 5, 7, 9 and one more, each with a square drawn on its distance from the mean: the area of each square is that value’s squared difference. The figure writes the mean as μ, another common symbol for it. Drag the last value away from the others. Doubling its distance from the mean doubles the bar under the line and makes its square four times as large, so one far value soon outweighs the other four together.

Practice Standard Deviation in the app