/** * Inverse of the standard normal cumulative distribution function (quantile function). * * Implements Wichura's algorithm AS 241 (PPND16), accurate to about 1 part in 10^16. * * Reference: M. J. Wichura (1988), "Algorithm AS 241: The Percentage Points of the * Normal Distribution", Applied Statistics 37(3), 477-484. * * @param {number} p - Probability in [0, 1]. * @returns {number} The value `x` such that P(Z <= x) = p for Z ~ N(0, 1). * Returns -Infinity for p = 0, Infinity for p = 1 and NaN outside [0, 1]. */ export function inverseNormalCDF(p: number): number; /** * Standard normal cumulative distribution function, computed through a * high precision complementary error function (W. J. Cody's rational approximations). * * @param {number} x * @returns {number} P(Z <= x) for Z ~ N(0, 1). */ export function normalCDF(x: number): number; /** * Complementary error function, relative accuracy ~1e-15 (W. J. Cody, 1969). * * @param {number} x * @returns {number} */ export function erfc(x: number): number;