Expand description
Standard normal distribution: density, cumulative distribution function and its inverse.
The CDF is W. J. Cody’s ANORM (ACM TOMS Algorithm 715, 1993), built on
W. J. Cody, “Rational Chebyshev approximations for the error function”,
Math. Comp. 23 (1969) 631–637. The inverse CDF is M. J. Wichura,
“Algorithm AS 241: The percentage points of the normal distribution”,
Applied Statistics 37 (1988) 477–484 (PPND16). Coefficients are
transcribed digit for digit from those sources.
Accuracy is checked against 25-digit reference values in
tests/vectors/normal_*.txt with a relative tolerance of 1e-14.
Functions§
- cdf
- Standard normal cumulative distribution function
Φ(x) = P(Z ≤ x)forZ ~ N(0, 1). - inverse_
cdf - Inverse of the standard normal CDF: the
xwithΦ(x) = p. - Standard normal probability density
φ(x) = exp(−x²/2) / sqrt(2π).