MathorynMathematical Formula Database

Statistics & Probability

Sample Variance

The sample variance measures the spread of data drawn from a larger population. Dividing by n−1n-1 (Bessel's correction) instead of nn makes it an unbiased estimate of the population variance. It is used throughout statistical inference.

s2=1n−1∑i=1n(xi−xˉ)2s^2=\frac{1}{n-1}\sum_{i=1}^{n}\left(x_i-\bar x\right)^2
LaTeXs^2=\frac{1}{n-1}\sum_{i=1}^{n}\left(x_i-\bar x\right)^2

Variables

s2s^2
sample variance
xix_i
data values
xˉ\bar x
sample mean
nn
sample size

Example

Find s2s^2 for 2,4,4,4,5,5,7,92,4,4,4,5,5,7,9.

  1. xˉ=408=5\bar x=\frac{40}{8}=5.
  2. Squared deviations: 9+1+1+1+0+0+4+16=329+1+1+1+0+0+4+16=32.
  3. s2=327s^2=\frac{32}{7}.

Answer: s2≈4.5714s^2\approx4.5714 (s≈2.1381s\approx2.1381).

Related formulas