Algorithms for Computing the Sample Variance: Analysis and Recommendations
Tony Fan-Cheong Chan, Gene Howard Golub, Randall J. LeVeque · The American Statistician · 1983
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.
Cited by 354 works. doi:10.1080/00031305.1983.10483115
Authors
References
- Note on a Method for Calculating Corrected Sums of Squares and Products
- Stably updating mean and standard deviation of data
- Updating mean and variance estimates
- Some Results Relevant to Choice of Sum and Sum-of-Product Algorithms
- Computing standard deviations
- Remark on stably updating mean and standard deviation of data
- Note on a Method for Calculating Corrected Sums of Squares and Products
- Updating Formulae and a Pairwise Algorithm for Computing Sample Variances