Mark a die’s six faces on a line. From each face, draw a square out to the mean. Watch what their average square is.
Spread, drawn as squares
A fair die's faces, each with chance 1/6: squares out to the mean, and their average.
A fair die's six faces on a line, each with chance 1/6, and their mean, 3.5.
Describe this picture
A number line from 1 to 6 with a dot at each face of a fair die and the mean, 3.5, marked by a triangle. In the clip a square grows from each dot out to the mean, standing on the line, its side the distance from the dot to the mean, each lightly shaded for the face’s probability, . The caption gives their areas, 6.25, 2.25 and 0.25, twice each. Then the six squares are averaged into one square, drawn beside them in a second colour and labelled with its area, 2.9167, and its side, 1.7078; readouts give the mean, the variance (the average square) and the standard deviation (its side). After the clip a question asks: move one dot twice as far from the mean, and its square becomes twice as big, four times as big, or the same? A tap picks an answer. Then each dot has a handle: drag one along the line, or focus it and use the arrow keys, and its square, the mean, the average square and the readouts follow.
Spread as squares
Two dice can have the same mean and still feel different. A fair die gives 1 to 6, centred on 3.5. A die marked 3, 3, 4, 4, 3, 4 also averages 3.5, but its rolls never stray far. The mean tells you where the values sit; it says nothing about how far they wander.
To measure the wandering, start with each value’s distance from the mean, its deviation . For the fair die the deviations are . Their average is 0: the mean sits in the middle, so the minus side cancels the plus side. Averaging plain deviations always gives 0.
So square them first, as the picture did. A square is never negative, and it grows fast with distance. The squares are , each twice, and their average is
That average square is the variance:
The variance is in squared units: for a die, “faces squared”. To get back to the units of , take the square root. That is the standard deviation, , the side of the average square in the picture. For the die, .
I write the variance too. In the statistics pages a is a standard deviation; signal processing pages use a bare for the decay rate of the Laplace variable.
After the clip, you answered the question about moving a dot. Now drag one dot twice as far from the mean and watch its square: it becomes four times as big. Twice the distance makes four times the square, which is why the variance listens most to the values far from the mean.
Watch out
The standard deviation measures distance from the mean, not how bumpy the bars look. Take a variable that is 1 or 6, each with chance : two tall bars. Its standard deviation is 2.5, larger than the fair die’s 1.708, because every value sits 2.5 from the mean.
A shortcut
Expand the square inside the mean and use linearity from Expected value:
The variance is the mean of the square minus the square of the mean: exactly the gap between and that the last page found. For the die, , the same as before.
Changing units
Shift every value by and the mean shifts too, so every deviation stays the same: the spread does not change. Multiply every value by and every deviation is multiplied by , so every square is multiplied by :
So if , then .
Spread of the named shapes
Bernoulli. For a variable that is 1 with chance and 0 otherwise, , so and
It is largest at , a fair coin, where it is .
Binomial. A binomial count is a sum of independent Bernoulli variables. For independent variables the variances add, as Sums of random variables shows, so
The ten-row board of Discrete random variables at has variance and standard deviation .
This also explains the typical miss of What probability measures. The share of darts inside a shape is , with binomial. By the scaling rule its variance is , and its standard deviation is the typical miss, .
Beyond spread
The mean and the variance describe a centre and a width. Two more words describe a shape. Skewness measures lopsidedness: a long tail on one side, like incomes, where a few values sit far above the rest. Kurtosis measures heavy tails: how often values land very far from the mean compared with a bell, as with large market crashes.
Worked example
1. The die, both ways. By the definition: deviations , squares twice each, mean . By the shortcut: . Standard deviation .
2. A biased coin. A Bernoulli variable with has variance and standard deviation .
3. Units. Daily temperatures in a city have a standard deviation of 5 °C. In degrees Fahrenheit, . The moves the mean only; the stretches the spread, so the standard deviation is °F.
Try it yourself. A fair coin scored 0 or 1 has variance .
Where you’ll meet this
Noise power. Remove a signal’s mean and its average power is its variance. The noise in a sensor or a radio is quoted by its standard deviation, often called its RMS value, as in Random variables for signals in the signal processing course.
Measurement error. A scale whose readings have a standard deviation of 0.2 g scatters about 0.2 g around the true weight on a typical reading. Instruments are sold by this number.
Tolerances. A part machined to 10 mm with a standard deviation of 0.01 mm fits; one with 0.1 mm may not. Factories track the standard deviation of their parts as closely as the mean.
Risk. In finance the standard deviation of a return is a common first measure of risk: two investments with the same mean return can carry very different spreads.
Where this leads · squared length
Take values and their plain average , and write the differences as one vector. The sum is that vector’s squared length, its dot product with itself. Two such vectors meet at an angle whose cosine is the correlation of Covariance and correlation.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Variance | average squared deviation, | |
| Shortcut | mean of the square minus square of the mean | |
| Standard deviation | in the units of | |
| Units | shifts do not change spread | |
| Bernoulli | 0.25 for a fair coin | |
| Binomial | 2.5 for ten fair pegs | |
| Fair die | , SD | |
| Shape | skewness: lopsided; kurtosis: heavy tails | words only here |