Trisha Shetty (Editor)

Inverse Gaussian distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Inverse Gaussian distribution

Parameters
  
λ > 0 {displaystyle lambda >0} μ > 0 {displaystyle mu >0}

Support
  
x ∈ ( 0 , ∞ ) {displaystyle xin (0,infty )}

PDF
  
[ λ 2 π x 3 ] 1 / 2 exp ⁡ { − λ ( x − μ ) 2 2 μ 2 x } {displaystyle left[{ rac {lambda }{2pi x^{3}}} ight]^{1/2}exp left{{ rac {-lambda (x-mu )^{2}}{2mu ^{2}x}} ight}}

CDF
  
Φ ( λ x ( x μ − 1 ) ) {displaystyle Phi left({sqrt { rac {lambda }{x}}}left({ rac {x}{mu }}-1 ight) ight)} + exp ⁡ ( 2 λ μ ) Φ ( − λ x ( x μ + 1 ) ) {displaystyle +exp left({ rac {2lambda }{mu }} ight)Phi left(-{sqrt { rac {lambda }{x}}}left({ rac {x}{mu }}+1 ight) ight)} where Φ ( ) {displaystyle Phi left( ight)} is the standard normal (standard Gaussian) distribution c.d.f.

Mean
  
E [ X ] = μ {displaystyle scriptstyle mathbf {E} [X]=mu } E [ 1 X ] = 1 μ + 1 λ {displaystyle scriptstyle mathbf {E} [{ rac {1}{X}}]={ rac {1}{mu }}+{ rac {1}{lambda }}}

Mode
  
μ [ ( 1 + 9 μ 2 4 λ 2 ) 1 2 − 3 μ 2 λ ] {displaystyle mu left[left(1+{ rac {9mu ^{2}}{4lambda ^{2}}} ight)^{ rac {1}{2}}-{ rac {3mu }{2lambda }} ight]}

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,∞).

Contents

Its probability density function is given by

f ( x ; μ , λ ) = [ λ 2 π x 3 ] 1 / 2 exp { λ ( x μ ) 2 2 μ 2 x }

for x > 0, where μ > 0 is the mean and λ > 0 is the shape parameter.

As λ tends to infinity, the inverse Gaussian distribution becomes more like a normal (Gaussian) distribution. 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.

Its cumulant generating function (logarithm of the characteristic function) is the inverse of the cumulant generating function of a Gaussian random variable.

To indicate that a random variable X is inverse Gaussian-distributed with mean μ and shape parameter λ we write

X I G ( μ , λ ) .

Single parameter form

The probability density function (pdf) of inverse Gaussian distribution has a single parameter form given by

f ( x ; μ , μ 2 ) = μ 2 π x 3 / 2 exp { 1 2 ( x μ ) 2 x } .

In this form, the mean and variance of the distribution are equal, μ = σ 2 .

Also, the cumulative distribution function (cdf) of the single parameter inverse Gaussian distribution is related to the standard normal distribution by

P r ( X < x ) = Φ ( z 1 ) + e μ Φ ( z 2 ) , f o r 0 < x μ , P r ( X > x ) = Φ ( z 1 ) e μ Φ ( z 2 ) , f o r x μ .

where z 1 = μ x 1 / 2 x 1 / 2 and z 2 = μ x 1 / 2 + x 1 / 2 , where the Φ is the cdf of standard normal distribution. The variables z 1 and z 2 are related to each other by the identity z 2 2 = z 1 2 + 4 μ .

In the single parameter form, the MGF simplifies to

M ( t ) = exp [ μ ( 1 1 2 t ) ] .

An inverse Gaussian distribution in double parameter form f ( x ; μ , λ ) can be transformed into a single parameter form f ( y ; μ 0 , μ 0 2 ) by appropriate scaling y = μ 2 x λ , where μ 0 = μ 3 / λ .

The standard form of inverse Gaussian distribution is

f ( x ; 1 , 1 ) = 1 2 π x 3 / 2 exp { 1 2 ( x 1 ) 2 x } .

Summation

If Xi has an IG(μ0wiλ0wi2) distribution for i = 1, 2, ..., n and all Xi are independent, then

S = i = 1 n X i I G ( μ 0 w i , λ 0 ( w i ) 2 ) .

Note that

Var ( X i ) E ( X i ) = μ 0 2 w i 2 λ 0 w i 2 = μ 0 2 λ 0

is constant for all i. This is a necessary condition for the summation. Otherwise S would not be inverse Gaussian.

Scaling

For any t > 0 it holds that

X I G ( μ , λ ) t X I G ( t μ , t λ ) .

Exponential family

The inverse Gaussian distribution is a two-parameter exponential family with natural parameters -λ/(2μ²) and -λ/2, and natural statistics X and 1/X.

Differential equation

{ 2 μ 2 x 2 f ( x ) + f ( x ) ( λ μ 2 + λ x 2 + 3 μ 2 x ) = 0 , f ( 1 ) = λ e λ ( 1 μ ) 2 2 μ 2 2 π }

Relationship with Brownian motion

The stochastic process Xt given by

X 0 = 0 X t = ν t + σ W t

(where Wt is a standard Brownian motion and ν > 0 ) is a Brownian motion with drift ν.

Then, the first passage time for a fixed level α > 0 by Xt is distributed according to an inverse-gaussian:

T α = inf { t > 0 X t = α } I G ( α ν , α 2 σ 2 ) .

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 π x 3 exp ( α 2 2 x σ 2 ) .

This is a Lévy distribution with parameters c = α 2 σ 2 and μ = 0 .

Maximum likelihood

The model where

X i I G ( μ , λ w i ) , i = 1 , 2 , , n

with all wi known, (μλ) unknown and all Xi independent has the following likelihood function

L ( μ , λ ) = ( λ 2 π ) n 2 ( i = 1 n w i X i 3 ) 1 2 exp ( λ μ i = 1 n w i λ 2 μ 2 i = 1 n w i X i λ 2 i = 1 n w i 1 X i ) .

Solving the likelihood equation yields the following maximum likelihood estimates

μ ^ = i = 1 n w i X i i = 1 n w i , 1 λ ^ = 1 n i = 1 n w i ( 1 X i 1 μ ^ ) .

μ ^ and λ ^ are independent and

μ ^ I G ( μ , λ i = 1 n w i ) n λ ^ 1 λ χ n 1 2 .

Generating random variates from an inverse-Gaussian distribution

The following algorithm may be used.

Generate a random variate from a normal distribution with a mean of 0 and 1 standard deviation

ν = N ( 0 , 1 ) .

Square the value

y = ν 2

and use this relation

x = μ + μ 2 y 2 λ μ 2 λ 4 μ λ y + μ 2 y 2 .

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

μ 2 x .

Sample code in Java:

And to plot Wald distribution in Python using matplotlib and NumPy:

  • If X IG ( μ , λ ) , then k X IG ( k μ , k λ ) for any number k > 0 .
  • If X i IG ( μ , λ ) then i = 1 n X i IG ( n μ , n 2 λ )
  • If X i IG ( μ , λ ) for i = 1 , , n then X ¯ IG ( μ , n λ )
  • If X i IG ( μ i , 2 μ i 2 ) then i = 1 n X i IG ( i = 1 n μ i , 2 ( i = 1 n μ i ) 2 )
  • 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.

    History

    This distribution appears to have been first derived by Schrödinger in 1915 as the time to first passage of a Brownian motion. The name inverse Gaussian was proposed by Tweedie in 1945. Wald re-derived this distribution in 1947 as the limiting form of a sample in a sequential probability ratio test. Tweedie investigated this distribution in 1957 and established some of its statistical properties.

    Numeric computation and software

    Despite the simple formula for the probability density function, numerical probability calculations for the inverse Gaussian distribution nevertheless require special care to achieve full machine accuracy in floating point arithmetic for all parameter values. Functions for the inverse Gaussian distribution are provided for the R programming language by the statmod package, available from the Comprehensive R Archive Network (CRAN).

    References

    Inverse Gaussian distribution Wikipedia