How Math Works
Probability & Statisticsformulafoundations

Spread: Variance & Standard Deviation

β€œStandard deviation is 'how far from the mean, on average'.”

The formula

σ² = { (xβ‚βˆ’xΜ„)Β² + β‹― + (xβ‚™βˆ’xΜ„)Β² } / n

How to read it: the variance is the average of the squared deviations of each value from the mean, and its square root is the standard deviation

xα΅’ βˆ’ xΜ„
β€” the deviation β€” how far a value sits from the mean
(xα΅’ βˆ’ xΜ„)Β²
β€” the squared deviation (squaring removes the sign)
σ²
β€” the variance β€” the average of the squared deviations
Οƒ
β€” the standard deviation β€” the (positive) square root of the variance

The hook

Two datasets can share the same mean yet be worlds apart in 'how spread out' they are β€” variance and standard deviation are the rulers for that spread.

In plain words

The average of the squared deviations of each value from the mean is the variance; its square root is the standard deviation.

The intuition

The mean is the bullseye, and the standard deviation is how far the arrows land from center on average. Small means tightly clustered; large means widely scattered.

How it's built

β‘  Find the mean, β‘‘ find each deviation (value βˆ’ mean), β‘’ the deviations just add to 0, so square them to kill the sign and average β†’ variance, β‘£ squaring inflated the units, so take the square root to get back β†’ standard deviation.

Example

Data 3, 4, 5, 6, 7 β†’ mean 5. Deviations βˆ’2, βˆ’1, 0, 1, 2; squares 4, 1, 0, 1, 4 sum to 10. Variance = 10/5 = 2, standard deviation = √2 β‰ˆ 1.41.

Common mistake

Averaging the raw deviations always gives 0, so it can't measure spread β€” that's why we square. Also, variance is in squared units (e.g. pointsΒ²), so to speak in the original units you use the standard deviation.

Where it's used

How evenly test scores fall, how stable a product's quality is, investment risk (volatility) β€” measuring the 'stability the mean alone hides'.

Where it came from

The name and symbol for standard deviation came from Karl Pearson in the late 1800s; this tool for capturing spread in one number became a pillar of modern statistics.

Prerequisites

Quick check

If a dataset has a variance of 9, what is its standard deviation?

  • 3βœ“
  • 4.5
  • 9
  • 81

Practice

What is the variance of the data 4, 4, 4, 4?

Answer: 0

Solution:
  1. Every value equals the mean 4
  2. All deviations are 0 β†’ variance 0

Takeaway: If all values are equal, there's no spread, so the variance is 0.

What is the variance of the data 2, 4, 6, 8, 10?

Answer: 8

Solution:
  1. Mean = 30/5 = 6
  2. Deviations βˆ’4, βˆ’2, 0, 2, 4; squares 16, 4, 0, 4, 16 sum to 40
  3. 40 / 5 = 8

Takeaway: Mean β†’ deviation β†’ square β†’ average, in that order.

Find the variance and standard deviation of the data 1, 2, 3, 4, 5.

Answer: undefined

Solution:
  1. Mean = 3
  2. Deviations βˆ’2, βˆ’1, 0, 1, 2; squares sum to 10
  3. Variance = 10/5 = 2, standard deviation = √2 β‰ˆ 1.41

Takeaway: The standard deviation is the variance's square root, restoring the original units.

Related mathematicians

Keep learning in the app

Touch-and-drag widgets, self-graded practice and daily formulas β€” free on iOS and Android.