Skip to content

Variance

Variance measures how spread out a set of numbers / results is - how varied they are.

It’s a better measurement of spread than the range, because it takes into account all the values in the set, not just the absolute extremes.

Because variance is just the standard deviation squared, we write it as as is the symbol for standard deviation.

To calculate variance, we first need to calculate the mean of the set of numbers.

Then, for each number in the set, we calculate the difference between that number and the mean, and square that difference.

Then finally, we average that sum of squared differences by dividing it by the number of values in the set (to find the mean).

There are three formulas we can use, they’re the same thing, but sometimes one is easier than the others, depending on what we know.

Calculating from mean of squares and square of mean

Section titled “Calculating from mean of squares and square of mean”

If we know the mean of squares (the average of the squares of the numbers) - which we write as - and the square of the mean (the square of the average of the numbers) - which we write as - then we can calculate the variance using this formula:

(Remember that the (bar) symbol means “mean of”

If we just have the values, then we can calculate the variance using this formula:

That does mean we need to calculate the difference between the mean and each value. We can rearrange it to stop us having to do this:

Which, actually, is just the same as the first formula! We’ve just substituted for and for into our formula of .