[Home]Algorithms for calculating variance

HomePage | Recent Changes | Preferences

The variance of a population is defined as the root mean squared deviation from the mean. That mouthful says the same as the formula below.

There is another formula for calculating variance which you may see. It uses the sum of all the data and the sum of the squares. The formula is:

This formula was introduced when the prevailing calculators made it much easier to sum squares and the raw data than to sum the squared deviations. Because this formula can result in loss of precision, it should no longer be recommended except for small exercises.

The method of calculation may be more easily understood from the table below where the mean is 8.

(index)(datum)(deviation)(squared deviation)

  • mean = 40/5 = 8
  • variance = 18/5 = 3.6
  • standard deviation = 1.897366596101 or 1.9

Note that the column of deviations sums to zero. This is always the case. Note also that we round the standard deviation to one more than the number of significant digits in the mean.

back to Variance


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions
Last edited July 1, 2001 4:22 pm by 203.184.149.xxx (diff)