IntermediateUpdated 2026-09-22

Standard Deviation and Variance

The mean tells you where data is centered; variance and standard deviation tell you how spread out it is around that center.

Variance

Average the squared distance of each value from the mean:

Squaring makes every term positive (so deviations above and below the mean don't cancel out) and penalizes large deviations more than small ones.

Standard deviation

The square root of the variance, which brings the units back in line with the original data (variance is in "squared" units, which aren't directly interpretable):

Worked example

Find the variance and standard deviation of .

The mean is . The deviations from the mean are , and their squares are , summing to . So

A note on samples

When your data is a sample meant to estimate a larger population, divide by instead of (called Bessel's correction) — it corrects for the fact that a sample's mean is itself estimated from the same data, which would otherwise make the variance a bit too small on average.

Practice

  1. 1.
    Variance is defined as:
  2. 2.
    Standard deviation is:
  3. 3.
    For , what is the population variance?