CleverSphere

Sample Variance with n − 1

For a sample, divide the sum of squared deviations by n − 1, not n. The standard deviation is its square root.

Worked example

These values come from a sample. Work out the sample variance s² and the standard deviation s.

13; 14; 5; 15; 18; 6; 17

Worked solution

  1. 1x̄ = 88 / 7 = 12.5714
  2. 2Σ(xᵢ − x̄)² = 157.7143
  3. 3s² = Σ(xᵢ − x̄)² / (n − 1) = 157.7143 / 6 = 26.29
  4. 4s = √s² = 5.13

Typical mistake: Dividing by n instead of n − 1 for a sample.

Try it yourself with new numbers

Your turn

Three problems of exactly this type with new numbers: first one to tap, then two to work out. Comma or point; fractions like 1/6 work too.

  1. 1 · Variance & standard deviation
  2. 2
  3. 3

These values come from a sample. Work out the sample variance s² and the standard deviation s.

Data (n = 5)

18142313

s²

Formulas for this topic
  • Sample: s² = Σ(xᵢ − x̄)² / (n − 1)
  • Population: σ² = Σ(xᵢ − μ)² / N
  • Standard deviation: s = √s² or σ = √σ²

Typical mistake: Dividing by n instead of n − 1 for a sample.

Frequently asked questions

What is the typical mistake in "Sample variance and standard deviation (n − 1)"?

Dividing by n instead of n − 1 for a sample.

Why divide by n − 1 for a sample?

The sample mean is estimated from the same data, so dividing by n would make the spread systematically too small; n − 1 corrects this (unbiased estimate).