Sign up
ContentsHideShow

Quant glossary · Statistics & estimation

Variance calculation

Variance is the average squared deviation from a mean, measuring dispersion in squared units.

Definition

Variance is the average squared deviation from a mean, measuring dispersion in squared units. A population variance divides by N when the listed values are the whole population of interest; a sample variance divides by n minus 1 when estimating a population variance from a sample. The divisor is part of the definition, not a rounding detail.

How it is calculated

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

Sample variance = sum of squared deviations from the sample mean divided by n minus 1; population variance divides by N.

Symbol Meaning Unit
s sample standard deviation x units
x observation measurement units
n sample size count
N population count count
  1. Compute the sample mean.

  2. Square each observation's deviation from that mean.

  3. Add the squared deviations and divide by the sample size minus one for sample variance.

  4. Use the population count as the denominator when every population value is known.

Interpretation

Squaring makes deviations on both sides of the mean positive and gives larger misses more weight. The sample divisor n minus 1 corrects the average squared deviation for estimating a population variance from a fitted sample mean. It is not appropriate when the list already is the complete finite population being described.

Assumptions and conventions

  • The sample versus population target is identified.

  • The sample size satisfies n >= 2.

  • The n-1 correction is unbiased under iid sampling with finite variance; dependence requires separate analysis.

  • All observations use comparable units and the same mean definition.

Squared units of x for variance; standard deviation has x units.

Variants

  • The sample versus population target is identified.

  • Sample variance and population variance use different divisors for different targets.

Limitations and common misreadings

  • Variance and standard deviation have different units.

  • Sample variance and population variance use different divisors for different targets.

References

  1. Larry Wasserman. (2004). All of Statistics: A Concise Course in Statistical Inference. Springer Texts in Statistics. Chapter 3, Expectation — variance and sample variance. doi:10.1007/978-0-387-21736-9. Source

Variance calculation FAQ

What is Variance calculation?

Variance is the average squared deviation from a mean, measuring dispersion in squared units.

How is Variance calculation calculated?

Sample variance = sum of squared deviations from the sample mean divided by n minus 1; population variance divides by N.

What does Variance calculation not tell you or assume?

Variance and standard deviation have different units.

Browse all glossary termsStatistics and estimation termsQuant research library

Definitions are educational and descriptive, not investment advice. Worked examples use labelled sample data.