Standard deviation and variance

Last updated 30 November 2026

Glossary · Topics: Value at Risk, Risk and performance measures

Depth

The variance of a set of values is the average of their squared distances from their mean; the standard deviation is its square root, in the units of the values themselves.

Calculation. The sample variance is the sum of the squared differences between each observation and the mean, divided by the number of observations less one. Dividing by one less than the number of observations corrects for the mean having been estimated from the same observations.

Formula. For nn observations xix_i with mean xˉ\bar{x}, the sample variance is s2=1n−1∑i(xi−xˉ)2s^2 = \frac{1}{n-1}\sum_{i}(x_i - \bar{x})^2.

Use. A volatility is the standard deviation of returns, annualized. The variances of independent returns add up over time, so a standard deviation grows with the square root of time (square-root-of-time rule). The variances of the assets in a portfolio add up only together with their covariances (covariance matrix).

In our models. Volatility is the sample standard deviation of the changes, with the number of observations less one as the divisor. See Risk and performance measures: volatility.