skip to main content
article
Free Access

Computing standard deviations: accuracy

Published:01 September 1979Publication History
Skip Abstract Section

Abstract

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.

References

  1. 1 Chan, T.F.C., and Lewis, J.G. Rounding error analysis of algorithms for computing means and standard deviations. Tech. Rep. No. 289, Dept. of Mathematical Sciences, The Johns Hopkins U., Baltimore, Md., April 1978.Google ScholarGoogle Scholar
  2. 2 Cotton, I.W. Remark on stably updating mean and standard deviation of data. Comm. ACM 18, 8 (Aug. 1975), 458. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 Hanson, R.J. Stably updating mean and standard deviation of data. Comm. ACM 18, 1 (Jan. 1975), 57-58. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4 Ling, R.F. Comparison of several algorithms for computing means and variances. J. Amer. Statistical Assoc. 69, 348 (Dec. 1974), 859-866.Google ScholarGoogle ScholarCross RefCross Ref
  5. 5 Neely, P.M. Comparison of several algorithms for computation of means, standard deviations and correlation coefficients. Comm. ACM 9, 7 (July 1966), 496-499. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 Welford, B.P. Note on a method for calculating corrected sums of squares and products. Technometrics 4 (Aug. 1962), 419 -420.Google ScholarGoogle ScholarCross RefCross Ref
  7. 7 West, D.H.D. Updating mean and variance estimates: An improved method. Comm. ACM 22, 9 (Sept. 1979), 532-535. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 West, D.H.D. Incremental least squares and the approximate separation of exponentials. Nuclear Instruments and Methods 136 (1976), 137-143.Google ScholarGoogle ScholarCross RefCross Ref
  9. 9 Wilkinson, J.H. Rounding errors in algebraic processes. Prentice-Hall, Englewood Cliffs, N.J., 1963. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10 Youngs, E.A., and Cramer, E.M. Some results relevant to choice of sum and sum-of-product algorithms. Technometrics 13 (Aug. 1971 ), 657-665.Google ScholarGoogle ScholarCross RefCross Ref
  11. 11 Nelson, L.S. Further remarks on stably updating mean and standard deviation estimates. Comm. A CM 22, 8 (Aug. 1979), 483. Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in

Full Access

  • Published in

    cover image Communications of the ACM
    Communications of the ACM  Volume 22, Issue 9
    Sept. 1979
    47 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/359146
    Issue’s Table of Contents

    Copyright © 1979 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 1 September 1979

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • article

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader