Skip to the workspace
Pebellslearn by building
Descriptive Analysis  ›  Lesson

Dispersion: Range, Variance and Standard Deviation

Dispersion 18 minRange, variance and standard deviation measure how spread out values are; the standard deviation is the typical distance from the mean, in the data's own units.

data analyst / Dispersion: Range, Variance and Standard Deviation

Explore each scene at your own pace.

01 · The rule

The rule

Dispersion: Range, Variance and Standard Deviation

Two cafés both average 48 cold coffees a day. One sells between 45 and 51 every day; the other swings from 10 to 120. Same average, completely different businesses to run. The average tells you the centre. Dispersion tells you how far to trust it.

The week again, with its mean of 48: 40, 38, 36, 43, 46, 95, 38.

The rule

Spread is distance from the centre: square it, average it, root it.

  • Range = max − min = 95 − 36 = 59. Quick, but it depends only on the two most extreme values.
  • Variance is the average squared distance from the mean. Squaring makes every distance positive and weighs big gaps heavily.
  • Standard deviation (SD) is the square root of the variance. It brings the answer back into the data's own units, so it reads as "the typical distance from the mean".

Working it out for the week:

day cups minus 48 squared
Mon 40 −8 64
Tue 38 −10 100
Wed 36 −12 144
Thu 43 −5 25
Fri 46 −2 4
Sat 95 47 2,209
Sun 38 −10 100
sum 2,646

Now divide. Two versions exist:

  • Sample variance divides by n − 1: 2,646 ÷ 6 = 441, so SD = √441 = 21 cups. Use this when your data is a sample standing in for a bigger picture, such as one week representing a typical week. This is =VAR.S and =STDEV.S in Excel.
  • Population variance divides by n: 2,646 ÷ 7 = 378, SD ≈ 19.4. Use this only when you have every value you care about. This is =VAR.P and =STDEV.P.

Notice Saturday alone contributes 2,209 of the 2,646. Squaring makes the far-out values dominate.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.