Evaluating the Normal Distribution
George Marsaglia
Journal of Statistical Software, 2004, vol. 011, issue i04
Abstract:
This article provides a little table-free C function that evaluates the normal distribution with absolute error less than 8 x 10 -16 . A small extension provides relative error near the limit available in double precision: 14 to 16 digits, the limits determined mainly by the computer's ability to evaluate exp(-t) for large t. Results are compared with those provided by calls to erf or erfc functions, the best of which compare favorably, others do not, and all appear to be much more complicated than need be to get either absolute accuracy less than 10-15 or relative accuracy to the exp()-limited 14 to 16 digits. Also provided: A short history of the error function erf and its intended use, as well as, in the "browse files" attachment, various erf or erfc versions used for comparison.
Date: 2004-07-18
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v011i04/v11i04.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... 011i04/sources.c.zip
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:011:i04
DOI: 10.18637/jss.v011.i04
Access Statistics for this article
Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis
More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum ().