In probability theory, the inverse Gaussian distribution (also known as the Wald distribution) is a two-parameter family of continuous probability distributions with support on (0,∞). Its probability density function is given by
f(x;μ,λ)=λ2πx3exp(−λ(x−μ)22μ2x) for x>0, where μ>0 is the mean and λ>0 is a shape parameter. Either μ or λ (or more generally any combination of the form μpλ1−p for any real p) can serve as a scale parameter, so a proper (i.e., unscaled) shape parameter would be any non-zero power of φ=λ/μ: Tweedie proposed to use the (μ,φ) and (φ,λ) parametrizations in addition to the standard (μ,λ) parametrization (“Each of these forms is convenient or suggestive for some purpose.”), and later on uses exclusively the (φ,λ) parametrization. The inverse Gaussian distribution has several properties analogous to a Gaussian distribution. The name can be misleading: it is an inverse only in that, while the Gaussian describes a Brownian motion's level at a fixed time, the inverse Gaussian describes the distribution of the time a Brownian motion with positive drift takes to reach a fixed positive level. The relationship between the Gaussian and inverse Gaussian distributions is thus the same as the relationship between the binomial (number of successes for a fixed number of Bernoulli trials) and negative binomial (number of Bernoulli trials for a fixed number of successes) distributions. The y-axis reflections of the cumulant generating functions of the Gaussian and inverse Gaussian distributions are inverse of each other (i.e., the graphs of the two cumulant generating functions are reflections of each other across the line y=−x), a property that is also shared between the binomial and negative binomial distributions (after dividing their cumulant generating functions by their respective fixed parameter). To indicate that a random variable X is inverse Gaussian-distributed with mean μ and shape parameter λ we write X∼IG(μ,λ).
Properties
Single parameter form The probability density function (pdf) of the inverse Gaussian distribution has a single parameter form given by
f(x;μ,μ2)=μ2πx3exp(−(x−μ)22x). In this form, the mean and variance of the distribution are equal, 𝔼[X]=Var(X). Also, the cumulative distribution function (cdf) of the single parameter inverse Gaussian distribution is related to the standard normal distribution by
Pr(X<x)=Φ(−z1)+e2μΦ(−z2), where z1=μx1/2−x1/2, z2=μx1/2+x1/2, and the Φ is the cdf of standard normal distribution. The variables z1 and z2 are related to each other by the identity z22=z12+4μ. In the single parameter form, the MGF simplifies to
M(t)=exp[μ(1−1−2t)]. An inverse Gaussian distribution in double parameter form f(x;μ,λ) can be transformed into a single parameter form f(y;μ0,μ02) by appropriate scaling y=μ2xλ, where μ0=μ3/λ. The above paragraph can be re-written as: if Y=λX/μ2<, then Y∼IG(λ/μ,(λ/μ)2). This approach is better in the sense that it clearly shows dimensionless nature of the single parameter form (note that dimλ=dimμ=dimx). This property follows from a more general fact: if a>0 and Y=aX, then Y∼IG(aμ,aλ). The standard form of inverse Gaussian distribution is
f(x;1,1)=12πx3exp(−(x−1)22x).
Summation If Xi has an IG(μ0wi,λ0wi2) distribution for i=1,2,…,n and all Xi are independent, then
S=∑i=1nXi∼IG(μ0∑wi,λ0(∑wi)2). The special case wi=1/n shows that the inverse Gaussian distribution is infinitely divisible. Note that
Var(Xi)E(Xi)=μ02wi2λ0wi2=μ02λ0 is constant for all i. This is a necessary condition for the summation. Otherwise S would not be Inverse Gaussian distributed.
Scaling For any t>0 it holds that
X∼IG(μ,λ)⇒tX∼IG(tμ,tλ).
Exponential family The inverse Gaussian distribution is a two-parameter exponential family with natural parameters −λ/(2μ2) and −λ/2, and natural statistics X and 1/X. For λ>0 fixed, it is also a single-parameter natural exponential family distribution where the base distribution has density
h(x)=λ2πx3exp(−λ2x)𝟙[0,∞)(x). Indeed, with θ≤0,
p(x;θ)=exp(θx)h(x)∫exp(θy)h(y)dy is a density over the reals. Evaluating the integral, we get
p(x;θ)=λ2πx3exp(−λ2x+θx−−2λθ)𝟙[0,∞)(x). Substituting θ=−λ/(2μ2) makes the above expression equal to f(x;μ,λ).
Relationship with Brownian motion
Let the stochastic process Xt be given by
X0=0 Xt=νt+σWt where Wt is a standard Brownian motion. That is, Xt is a Brownian motion with drift ν>0. Then the first passage time for a fixed level α>0 by Xt is distributed according to an inverse-Gaussian:
Tα=inf{t>0∣Xt=α}∼IG(αν,(ασ)2)=ασ2πx3exp(−(α−νx)22σ2x) i.e
P(Tα∈(T,T+dT))=ασ2πT3exp(−(α−νT)22σ2T)dT (cf. Schrödinger equation 19, Smoluchowski, equation 8, and Folks, equation 1).
When drift is zero A common special case of the above arises when the Brownian motion has no drift. In that case, parameter μ tends to infinity, and the first passage time for fixed level α has probability density function
f(x;0,(ασ)2)=ασ2πx3exp(−α22σ2x) (see also Bachelier). This is a Lévy distribution with parameters c=(ασ)2 and μ=0.
Maximum likelihood The model where
Xi∼IG(μ,λwi),i=1,2,…,n with all wi known, (μ,λ) unknown and all Xi independent has the following likelihood function:
L(μ,λ)=(λ2π)n2(∏i=1nwiXi3)12exp(λμ∑i=1nwi−λ2μ2∑i=1nwiXi−λ2∑i=1nwi1Xi). Solving the likelihood equation yields the following maximum likelihood estimates
μ^=∑i=1nwiXi∑i=1nwi,1λ^=1n∑i=1nwi(1Xi−1μ^). μ^ and λ^ are independent and
μ^∼IG(μ,λ∑i=1nwi),nλ^∼1λχn−12.
Sampling from an inverse-Gaussian distribution The following algorithm may be used.
Generate a random variate from a normal distribution with mean 0 and standard deviation equal 1
ν∼N(0,1). Square the value
y=ν2 and use the relation
x=μ+μ2y2λ−μ2λ4μλy+μ2y2. Generate another random variate, this time sampled from a uniform distribution between 0 and 1
z∼U(0,1). If z≤μμ+x then return x else return μ2x.
Sample code in Java:
And to plot Wald distribution in Python using matplotlib and NumPy:
Related distributions If X∼IG(μ,λ), then kX∼IG(kμ,kλ) for any number k>0. If Xi∼IG(μ,λ) then 1. If Xi∼IG(μ,λ) for i=1,…,n then X¯∼IG(μ,nλ). If Xi∼IG(μi,2μi2) then ∑i=1nXi∼IG(∑i=1nμi,2(∑i=1nμi)2). If X∼IG(μ,λ), then λ(X−μ)2/μ2X∼χ2(1). The convolution of an inverse Gaussian distribution (a Wald distribution) and an exponential (an ex-Wald distribution) is used as a model for response times in psychology, with visual search as one example.
… excerpt ends here. Continue reading the full article.




