On the computation of the cumulative distribution function of the Normal Inverse Gaussian distribution
Guillermo Navas-Palencia
TL;DR
This work develops a comprehensive framework for computing the Normal Inverse Gaussian CDF by deriving diverse series and asymptotic expansions from Laplace-type representations, supplemented with reliable numerical integration. It covers special cases ($\beta=0$ and $x=\mu$) and the general case, including uniform and accelerated expansions that maintain accuracy across broad parameter regimes. The authors implement these methods in C++, provide rigorous error considerations, and demonstrate substantial speedups (often 5–60×) over existing adaptive numerical integration in open-source libraries while maintaining near-machine precision. The practical impact is a robust, fast, and versatile tool for NIG CDF computation, with potential extensions to related GH-family distributions and broader numerical applications.
Abstract
In this paper, we obtain various series and asymptotic expansions involving the modified Bessel function of the second kind for the normal inverse Gaussian cumulative distribution function. The new expansions accelerate computations, complementing the numerical integration methods implemented in statistical software packages. We also provide a detailed description of the algorithm and its corresponding implementation in C++. The performance and accuracy of the algorithm are extensively tested and benchmarked with open-source implementations, offering superior accuracy and speed-ups of a factor from 5 to 60.
