Computing standard deviations
Tony Fan-Cheong Chan, John Gregg Lewis · Communications of the ACM · 1979
Four algorithms for the numerical computation of the standard deviation of (unweighted) sampled data are analyzed. Two of the algorithms are well-known in the statistical and computational literature; the other two are new algorithms specifically intended for automatic computation. Our discussion is expository, with emphasis on reaching a suitable definition of “accuracy.” Each of the four algorithms is analyzed for the conditions under which it will be accurate. We conclude that all four algorithms will provide accurate answers for many problems, but two of the algorithms, one new, one old, are substantially more accurate on difficult problems than are the other two.
Cited by 45 works. doi:10.1145/359146.359152 Open-access PDF
Authors
References
- Rounding errors in algebraic processes
- 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
- Comparison of several algorithms for computation of means, standard deviations and correlation coefficients
- Some Results Relevant to Choice of Sum and Sum-of-Product Algorithms
- Remark on stably updating mean and standard deviation of data
- Comparison of Several Algorithms for Computing Sample Means and Variances
- Incremental least squares and the approximate seperation of exponentials
- Further remark on stably updating mean and standard deviation estimates