IDEAS home Printed from
MyIDEAS: Log in (now much improved!) to save this paper

A Short Note on the Numerical Approximation of the Standard Normal Cumulative Distribution and Its Inverse

Listed author(s):
  • Chokri Dridi

We provide computer codes in ANSI-C and Python for a fast and accurate computation of the cumulative distribution function (cdf) of the standard normal distribution and the inverse cdf of the same function. For the cdf we use the 5th order Gauss-Legendre quadrature which gives more accurate results compared to Excel and Matlab. The Inverse cdf is computed using rational fraction approximations and gives a result that is seven-decimal place accurate.

If you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL:
Download Restriction: no

Paper provided by EconWPA in its series Computational Economics with number 0212001.

in new window

Length: 13 pages
Date of creation: 27 Dec 2002
Date of revision: 07 Mar 2003
Handle: RePEc:wpa:wuwpco:0212001
Note: Type of Document - ; pages: 13 ; figures: included. cdf.c : Is ANSI-C code to compute the cdf of standard normal dist. using a composite fifth-order Gauss-Legendre quadrature : same as cdf.c except the code is written in Python : Python code to compute the cdf using rational fraction approximations : Python code to compute the inverse cdf using rational fraction approximations.
Contact details of provider: Web page:

References listed on IDEAS
Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.:

in new window

  1. Geweke, John, 1996. "Monte carlo simulation and numerical integration," Handbook of Computational Economics,in: H. M. Amman & D. A. Kendrick & J. Rust (ed.), Handbook of Computational Economics, edition 1, volume 1, chapter 15, pages 731-800 Elsevier.
Full references (including those not matched with items on IDEAS)

This item is not listed on Wikipedia, on a reading list or among the top items on IDEAS.

When requesting a correction, please mention this item's handle: RePEc:wpa:wuwpco:0212001. See general information about how to correct material in RePEc.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (EconWPA)

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

If references are entirely missing, you can add them using this form.

If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

This information is provided to you by IDEAS at the Research Division of the Federal Reserve Bank of St. Louis using RePEc data.