Skip to main content
QUICK REVIEW

[Paper Review] Simply Explicitly Invertible Approximations to 4 Decimals of Error Function and Normal Cumulative Distribution Function

Alessandro Soranzo, Emanuela Epure|arXiv (Cornell University)|Jan 5, 2012
Numerical Methods and AlgorithmsComputer Science12 citations
TL;DR

This paper presents a new, explicitly invertible approximation for the error function erf(x) with absolute error <2.27×10⁻⁵ and relative error <1.21×10⁻⁴ for all x ≥ 0, improving upon Winitzki’s prior method by reducing absolute error by a factor of ~5.5. The method uses a rational function exponent in a square-root expression, enabling closed-form inversion via biquadratic solution, and extends to approximations for the normal CDF Φ(x), erfc(x), and Q-function with four-decimal precision.

ABSTRACT

We improve the Modified Winitzki's Approximation of the error function $erf(x)\cong \sqrt{1-e^{-x^2\frac{\frac{4}π+0.147x^2}{1+0.147x^2}}}$ which has error $|\varepsilon (x)| &lt; 1.25 \cdot 10^{-4}$ $\forall x \ge 0$ till reaching 4 decimals of precision with $|\varepsilon (x)| &lt; 2.27 \cdot 10^{-5}$; also reducing slightly the relative error. Old formula and ours are both explicitly invertible, essentially solving a biquadratic equation, after obvious substitutions. Then we derive approximations to 4 decimals of normal cumulative distribution function $Φ(x)$, of erfc$(x)$ and of the $Q$ function (or cPhi).

Motivation & Objective

  • To improve the accuracy of Winitzki’s approximation for the error function erf(x) to achieve four-decimal precision.
  • To reduce the absolute error from 1.25×10⁻⁴ to below 2.27×10⁻⁵ while maintaining explicit invertibility.
  • To derive analogous approximations for the complementary error function erfc(x), normal cumulative distribution function Φ(x), and Q-function (cPhi) with four-decimal accuracy.
  • To ensure all approximations remain explicitly invertible by reducing to a biquadratic equation after substitution.
  • To validate the error bounds across the entire domain x ≥ 0, including asymptotic behavior for x > 4.

Proposed method

  • Propose a new rational function exponent in the form exp(-(a x² + b x⁴)/(1 + c x² + d x⁴)) to improve erf(x) approximation.
  • Use the transformation erf(x) ≈ √(1 - exp(E(x))) with E(x) = (-1.2735457x² - 0.1487936x⁴)/(1 + 0.1480931x² + 0.0005160x⁴).
  • Establish error bounds via analytical comparison for 0 ≤ x ≤ 4 using Mathematica-generated graphs and zoomed subdomains.
  • Prove that for x > 4, both erf(x) and the approximation η(x) approach 1 with |1 - erf(x)| < 10⁻⁷ and |1 - η(x)| < e⁻¹², ensuring combined error < 10⁻⁵.
  • Derive Φ(x) and Q(x) approximations by scaling the erf(x) formula with adjusted coefficients: Φ(x) ≈ ½ + ½√(1 - exp(E'(x))), where E'(x) uses half the x⁴ coefficient and doubled denominator constant.
  • Ensure all approximations remain explicitly invertible by reducing the inversion to solving a biquadratic equation after substitution of z = x².

Experimental results

Research questions

  • RQ1Can Winitzki’s erf(x) approximation be improved to achieve four-decimal precision while preserving explicit invertibility?
  • RQ2What coefficient adjustments to the rational function exponent yield a 5.5× reduction in absolute error?
  • RQ3How can the improved erf(x) approximation be systematically extended to Φ(x), erfc(x), and Q(x) with comparable accuracy?
  • RQ4What analytical and numerical techniques can rigorously bound the error across the full domain x ≥ 0, including the tail region x > 4?
  • RQ5To what extent can the relative error be reduced while maintaining computational simplicity and invertibility?

Key findings

  • The new erf(x) approximation achieves absolute error <2.27×10⁻⁵ for all x ≥ 0, a 5.5× improvement over Winitzki’s 1.25×10⁻⁴.
  • The relative error is reduced to <1.21×10⁻⁴, showing consistent improvement across the domain.
  • The approximation for Φ(x) achieves absolute error <1.14×10⁻⁵, enabling four-decimal precision in the normal CDF.
  • The Q-function and erfc(x) approximations also achieve absolute error <2.27×10⁻⁵ and <1.14×10⁻⁵ respectively, with comparable accuracy.
  • All approximations are explicitly invertible via solution of a biquadratic equation after substitution z = x².
  • For x > 4.125, the approximation erf(x) ≈ 1 has lower absolute error than the new formula, but the new formula remains valid and accurate in the transition region.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.