Skip to content
You Start with one site
Amounts in Start with one site
Data & Statistics · Concept

Standard deviation

One idea Beginner 5 min read
Found this useful?

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.

Tank AEvery reading is between 3.8 °C and 4.2 °C.Average 4.0 °C
Tank BThe readings go from 3.0 °C to 5.0 °C.Average 4.0 °C
What tells them apart?How far a typical reading sits from the average.The standard deviation

See it

Predict first

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?

See it: nine readings and their distances from the average

Mean
Standard deviation s
Readings within one s

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.

s = √( sum of (x − mean)2 ÷ (n − 1) )

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

The question

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
  1. Find the mean

    The readings add to 36.0. Mean = 36.0 ÷ 9 = 4.0 °C.

  2. 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.

  3. 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

One standard deviation is not the edge of the data. It is a typical distance, so some readings always lie further out. In the figure, two of the nine readings are outside the band. A limit placed at the mean plus one s will be passed on an ordinary day.

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

Question 1

A pump gives three pressure readings: 10 bar, 12 bar and 14 bar. What is the standard deviation?

Question 2

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?

Question 3

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.
Key points
  • 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.
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.