Variance

Variance measures how spread out data are around the mean. If you just add the deviations (data value − mean) you always get 0, so you square them to make them all 0 or greater and then take their mean. The larger the variance, the more spread out the data are.

Chalcack concept card · Reviewed by the Chalcack team ·

For data 2, 4, 6, squaring each distance from the mean 4 (the deviation) gives square areas 4, 0, 4.

Formulas

  • deviation=data value−mean\text{deviation} = \text{data value} - \text{mean}
  • variance=sum of (deviation)2number of data values\text{variance} = \frac{\text{sum of (deviation)}^2}{\text{number of data values}}
  • standard deviation=variance\text{standard deviation} = \sqrt{\text{variance}}

When to use it

Use it when you compare how spread out two data sets are, or which one is clustered more tightly around its mean.

Worked example

Find the variance of 2, 4, 6. Step 1: the mean is (2+4+6)÷3=4(2+4+6) \div 3 = 4. Step 2: the deviations are −2, 0, 2-2,\ 0,\ 2, and their squares are 4, 0, 4. Step 3: the variance is (4+0+4)÷3=83(4+0+4) \div 3 = \frac{8}{3}.

Common mistake

If you add the deviations without squaring them, you always get 0. To get the variance you must add up the squared deviations and then divide by the number of data values.

Related concepts

All 181 math concepts