Standard deviation
On this page
Two buses both take 30 minutes on average. One always takes between 28 and 32 minutes. The other takes 15 minutes on some days and 45 on others. The average cannot tell them apart. The standard deviation can: it is the typical distance of a reading from the average.
See it
Nine readings of a tank average 4.0 °C. Now every reading moves twice as far from 4.0 °C, on the same side as before. What happens to the average and to the standard deviation?
The nine points are readings from one tank probe. The slider multiplies the distance of every reading from the mean. The line of the mean does not move. The shaded band, one standard deviation each way, grows and shrinks with the distances.
The idea
Take the distance of each reading from the mean. Some distances are above and some are below, and added together they cancel to zero. So each distance is squared first, the squares are averaged, and the square root returns the result to the unit of the readings.
x is one reading, n is the number of readings, s is the standard deviation
The division is by n − 1 and not by n, because the mean was found from the same readings. With hundreds of readings the difference is too small to see.
When readings scatter around one steady value in a bell shape, about two in three lie within one s of the mean, and almost all lie within three. That is why three standard deviations is a common place for an alarm limit, as on a control chart. The rule fails for a machine that switches on and off: its readings form two groups, and s describes neither.
One worked number
A tank probe gives nine readings in °C: 4.1, 3.9, 4.0, 4.2, 3.8, 4.0, 4.1, 3.9, 4.0. What are the mean and the standard deviation?
Show the worked solution, 3 steps
- Find the mean
The readings add to 36.0. Mean = 36.0 ÷ 9 = 4.0 °C.
- Square each distance and add
The distances are 0.1, −0.1, 0, 0.2, −0.2, 0, 0.1, −0.1 and 0. Their squares are 0.01, 0.01, 0, 0.04, 0.04, 0, 0.01, 0.01 and 0, which add to 0.12.
- Divide by n − 1 and take the root
0.12 ÷ 8 = 0.015, and √0.015 = 0.122 °C. The figure opens on these nine readings and shows the same value.
The mistake to avoid
A second trap: one bad reading can own the result. Add a tenth reading of 40.0 °C from a loose connector, and s jumps from 0.122 °C to 11.4 °C. Find its cause before you trust the number.
Check yourself
A pump gives three pressure readings: 10 bar, 12 bar and 14 bar. What is the standard deviation?
A temperature probe is replaced. The new probe reads 1.0 °C higher than the old one on every reading. What happens to the standard deviation of a day of readings?
A cold room has a mean of 4.0 °C and a standard deviation of 0.5 °C. The stock must not pass 5.0 °C. A manager says: the mean plus one standard deviation is 4.5 °C, so the room never reaches 5.0 °C. Is that right?
Where you meet it
- A cold roomTwo rooms with the same average can differ in how far the air swings, and the swing is what warms the stock.
- A sensorThe spread of many readings of one steady quantity is the noise of the sensor.
- A filling machineThe spread of the bag weights decides how many bags leave under weight.
- The standard deviation is the typical distance of a reading from the mean, in the unit of the readings.
- Square the distances, divide the sum by n − 1, take the square root.
- It measures spread, not level. Moving every reading by the same amount does not change it.
- It is not the furthest reading, and one bad reading can make it many times larger.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.