Algorithms for Computing the Sample Variance: Analysis and Recommendations

Citation
F. Chan, Tony et al., Algorithms for Computing the Sample Variance: Analysis and Recommendations, American statistician , 37(3), 1983, pp. 242-247
Journal title
ISSN journal
00031305
Volume
37
Issue
3
Year of publication
1983
Pages
242 - 247
Database
ACNP
SICI code
Abstract
The problem of computing the variance of a sample of N data points {xi } may be difficult for certain data sets, particularly when N is large and the variance is small.We present a survey of possible algorithms and their round-off error bounds, including some new analysis for computations with shifted data.Experimental results confirm these bounds and illustrate the dangers of some algorithms.Specific recommendations are made as to which algorithm should be used in various contexts.