Skip to content
BENIBIX Learn

Variance

General🔢 Math & StatisticsStatistics

Also known as Statistical Variance

The average squared gap from the mean. A bigger one means more spread out.

Think of it like

It is like checking how far each kid stands from the middle. Big gaps count extra.

Example

Two archers both average 8 points. Jack's arrows score 7, 8 and 9, so his variance is small. Lucy's score 4, 8 and 12, so hers is sixteen times bigger.

Why it matters

Many tools in statistics and machine learning work with variance. It is the step on the way to the standard deviation.

Formula

variance = average of (value - mean)²

Definition

Variance measures how spread out numbers are around their mean. For each value, you find its gap from the mean and square it. Then you take the average of those squares. Squaring makes every gap positive and makes big gaps count much more. The square root of the variance is the standard deviation.

Example code

excel
=VAR.P(1, 3, 5, 7)
5
The gaps from the mean of 4 are 3, 1, 1 and 3. Squared they make 20, and 20 shared by 4 is 5.
Each gap is squared into a box. The average box size, 5, is the variance.

Common mistake

Mixing up the two versions. A sample divides by one less than its count, so its variance comes out a little bigger.

Key takeaways

  1. 1
    Square the gaps. Every gap turns positive.
  2. 2
    Big gaps weigh more. A gap of 3 counts as 9.
  3. 3
    Squared units. Metres turn into square metres.

Compare

Learn it properly