Variance

The variance measures the spread of a series around its mean: it is the mean of the squared deviations from the mean. It is expressed in the square of the data's unit. For a sample, we divide by n - 1 rather than n to estimate the population variance.

Example

df['x'].var()  # sample variance (n - 1) with pandas

Related concepts

The whole glossary