statmod: Probability Calculations for the Inverse Gaussian Distribution
G\"oknur Giner, Gordon K. Smyth

TL;DR
This paper introduces the statmod package for R, providing fast, accurate probability functions for the inverse Gaussian distribution, including a novel method for computing quantiles with guaranteed convergence.
Contribution
It develops reliable, machine-precision probability functions for the inverse Gaussian distribution in R, including a new quantile computation method with proven convergence.
Findings
Probability functions achieve near full machine accuracy.
Newton's method for quantiles converges monotonically from the mode.
The package is available on CRAN for practical use.
Abstract
The inverse Gaussian distribution (IGD) is a well known and often used probability distribution for which fully reliable numerical algorithms have not been available. Our aim in this article is to develop software for this distribution for the R programming environment. We develop fast, reliable basic probability functions (dinvgauss, pinvgauss, qinvgauss and rinvgauss) that work for all possible parameter values and which achieve close to full machine accuracy. The most challenging task is to compute quantiles for given cumulative probabilities and we develop a simple but elegant mathematical solution to this problem. We show that Newton's method for finding the quantiles of a IGD always converges monotonically when started from the mode of the distribution. Simple Taylor series expansions are used to improve accuracy on the log-scale. The IGD probability functions provide the same…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
