Inverse Gaussian distribution

From Wikipedia, the free encyclopedia
(Redirected from Inverse normal distribution)

Template:Short description Script error: No such module "For".

Page Module:Infobox/styles.css has no content.Page Template:Infobox probability distribution/styles.css has no content.

Inverse Gaussian
Probability density function
Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found.
Cumulative distribution function
Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found.
Notation IG(μ,λ)
Parameters μ>0
λ>0
Support x(0,)
PDF λ2πx3exp[λ(xμ)22μ2x]
CDF

Φ(λx(xμ1)) +exp(2λμ)Φ(λx(xμ+1))

where Φ is the standard normal (standard Gaussian) distribution c.d.f.
Mean

E[X]=μ

E[1X]=1μ+1λ
Mode μ[(1+9μ24λ2)123μ2λ]
Variance

Var[X]=μ3λ

Var[1X]=1μλ+2λ2
Skewness 3(μλ)1/2
Excess kurtosis 15μλ
MGF exp[λμ(112μ2tλ)]
CF exp[λμ(112μ2itλ)]

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.[1]Template:R/superscript Either μ or λ (or more generally any combination of the form μpλ1p 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.”[2]Template:R/superscript), and later on uses exclusively the (φ,λ) parametrization.[3]Template:R/superscript

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.[4]Template:R/superscript

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).[4]Template:R/superscript

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

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/2x1/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[μ(112t)].

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 YIG(λ/μ,(λ/μ)2)[5]Template:R/superscript. 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 YIG(aμ,aλ)[2]Template:R/superscript.

The standard form of inverse Gaussian distribution is

f(x;1,1)=12πx3exp((x1)22x).

Summation

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

S=i=1nXiIG(μ0wi,λ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

XIG(μ,λ)tXIG(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[6]Template:R/superscript 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+θx2λθ)𝟙[0,)(x).

Substituting θ=λ/(2μ2) makes the above expression equal to f(x;μ,λ).

Relationship with Brownian motion

File:Inverse gaussian as stopping time of random walk.png
Example of stopped random walks with α=1,ν=0.1,σ=0.2. The upper figure shows the histogram of waiting times, along with the prediction according to inverse gaussian distribution. The lower figure shows the trajectories.

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>0Xt=α}IG(αν,(ασ)2)=ασ2πx3exp((ανx)22σ2x)

i.e

P(Tα(T,T+dT))=ασ2πT3exp((ανT)22σ2T)dT

(cf. Schrödinger[7]Template:R/superscript equation 19, Smoluchowski[8]Template:R/superscript, equation 8, and Folks[5]Template:R/superscript, equation 1).

Page Template:Collapse top/styles.css has no content.

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[9]Template:R/superscript[10]Template:R/superscript). This is a Lévy distribution with parameters c=(ασ)2 and μ=0.

Maximum likelihood

The model where

XiIG(μ,λ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μ2i=1nwiXiλ2i=1nwi1Xi).

Solving the likelihood equation yields the following maximum likelihood estimates

μ^=i=1nwiXii=1nwi,1λ^=1ni=1nwi(1Xi1μ^).

μ^ and λ^ are independent and

μ^IG(μ,λi=1nwi),nλ^1λχn12.

Sampling from an inverse-Gaussian distribution

The following algorithm may be used.[11]Template:R/superscript

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

zU(0,1).

If zμμ+x then return x else return μ2x.

Sample code in Java:

public double inverseGaussian(double mu, double lambda) {
    Random rand = new Random();
    double v = rand.nextGaussian();  // Sample from a normal distribution with a mean of 0 and 1 standard deviation
    double y = v * v;
    double x = mu + (mu * mu * y) / (2 * lambda) - (mu / (2 * lambda)) * Math.sqrt(4 * mu * lambda * y + mu * mu * y * y);
    double test = rand.nextDouble();  // Sample from a uniform distribution between 0 and 1
    if (test <= (mu) / (mu + x))
        return x;
    else
        return (mu * mu) / x;
}
File:Wald Distribution matplotlib.jpg
Wald distribution using Python with aid of matplotlib and NumPy

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

import matplotlib.pyplot as plt
import numpy as np

h = plt.hist(np.random.wald(3, 2, 100000), bins = 200, density = True)

plt.show()
  • If XIG(μ,λ), then kXIG(kμ,kλ) for any number k>0.[1]Template:R/superscript
  • If XiIG(μ,λ) then 1.
  • If XiIG(μ,λ) for i=1,,n then X¯IG(μ,nλ).
  • If XiIG(μi,2μi2) then i=1nXiIG(i=1nμi,2(i=1nμi)2).
  • If XIG(μ,λ), then λ(Xμ)2/μ2Xχ2(1).[12]

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,[13]Template:R/superscript with visual search as one example.[14]

History

This distribution appears to have been first derived in 1900 by Louis Bachelier[9]Template:R/superscript[10]Template:R/superscript as the time a stock reaches a certain price for the first time. In 1915 it was used independently by Erwin Schrödinger[7]Template:R/superscript and Marian v. Smoluchowski[8]Template:R/superscript as the time to first passage of a Brownian motion. In the field of reproduction modeling it is known as the Hadwiger function, after Hugo Hadwiger who described it in 1940.[15] Abraham Wald re-derived this distribution in 1944[16]Template:R/superscript as the limiting form of a sample in a sequential probability ratio test. The name inverse Gaussian was proposed by Maurice Tweedie in 1945.[4] Tweedie investigated this distribution in 1956[17] and 1957[2][3] and established some of its statistical properties. The distribution was extensively reviewed by Folks and Chhikara in 1978.[5]Template:R/superscript

Rated inverse Gaussian distribution

Assuming that the time intervals between occurrences of a random phenomenon follow an inverse Gaussian distribution, the probability distribution for the number of occurrences of this event within a specified time window is referred to as rated inverse Gaussian.[18] While, first and second moment of this distribution are calculated, the derivation of the moment generating function remains an open problem.

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.[19] Functions for the inverse Gaussian distribution are provided for the R programming language by several packages including rmutil,[20][21] SuppDists,[22] STAR,[23] invGauss,[24] LaplacesDemon,[25] and statmod.[26]

See also

References

Page Template:Reflist/styles.css has no content.

  1. ^ a b Page Module:Citation/CS1/styles.css has no content.Chhikara, Raj S.; Folks, J. Leroy (1989), The Inverse Gaussian Distribution: Theory, Methodology and Applications, New York, NY, USA: Marcel Dekker, Inc, ISBN 0-8247-7997-5
  2. ^ a b c Page Module:Citation/CS1/styles.css has no content.Tweedie, M. C. K. (1957). "Statistical Properties of Inverse Gaussian Distributions I". Annals of Mathematical Statistics. 28 (2): 362–377. doi:10.1214/aoms/1177706964. JSTOR 2237158.
  3. ^ a b Page Module:Citation/CS1/styles.css has no content.Tweedie, M. C. K. (1957). "Statistical Properties of Inverse Gaussian Distributions II". Annals of Mathematical Statistics. 28 (3): 696–705. doi:10.1214/aoms/1177706881. JSTOR 2237229.
  4. ^ a b c Page Module:Citation/CS1/styles.css has no content.Tweedie, M. C. K. (1945). "Inverse Statistical Variates". Nature. 155 (3937): 453. Bibcode:1945Natur.155..453T. doi:10.1038/155453a0. S2CID 4113244.
  5. ^ a b c Page Module:Citation/CS1/styles.css has no content.Folks, J. Leroy; Chhikara, Raj S. (1978), "The Inverse Gaussian Distribution and Its Statistical Application—A Review", Journal of the Royal Statistical Society, Series B (Methodological), 40 (3): 263–275, doi:10.1111/j.2517-6161.1978.tb01039.x, JSTOR 2984691, S2CID 125337421
  6. ^ Page Module:Citation/CS1/styles.css has no content.Seshadri, V. (1999), The Inverse Gaussian Distribution, Springer-Verlag, ISBN 978-0-387-98618-0
  7. ^ a b Page Module:Citation/CS1/styles.css has no content.Schrödinger, Erwin (1915), "Zur Theorie der Fall- und Steigversuche an Teilchen mit Brownscher Bewegung" [On the Theory of Fall- and Rise Experiments on Particles with Brownian Motion], Physikalische Zeitschrift (in Deutsch), 16 (16): 289–295
  8. ^ a b Page Module:Citation/CS1/styles.css has no content.Smoluchowski, Marian (1915), "Notiz über die Berechnung der Brownschen Molekularbewegung bei der Ehrenhaft-Millikanschen Versuchsanordnung" [Note on the Calculation of Brownian Molecular Motion in the Ehrenhaft-Millikan Experimental Set-up], Physikalische Zeitschrift (in Deutsch), 16 (17/18): 318–321
  9. ^ a b Page Module:Citation/CS1/styles.css has no content.Bachelier, Louis (1900), "Théorie de la spéculation" [The Theory of Speculation] (PDF), Ann. Sci. Éc. Norm. Supér. (in français), Serie 3, 17: 21–89, doi:10.24033/asens.476
  10. ^ a b Page Module:Citation/CS1/styles.css has no content.Bachelier, Louis (1900), "The Theory of Speculation", Ann. Sci. Éc. Norm. Supér., Serie 3, 17: 21–89 (Engl. translation by David R. May, 2011), doi:10.24033/asens.476
  11. ^ Page Module:Citation/CS1/styles.css has no content.Michael, John R.; Schucany, William R.; Haas, Roy W. (1976), "Generating Random Variates Using Transformations with Multiple Roots", The American Statistician, 30 (2): 88–90, doi:10.1080/00031305.1976.10479147, JSTOR 2683801
  12. ^ Page Module:Citation/CS1/styles.css has no content.Shuster, J. (1968). "On the inverse Gaussian distribution function". Journal of the American Statistical Association. 63 (4): 1514–1516. doi:10.1080/01621459.1968.10480942.
  13. ^ Page Module:Citation/CS1/styles.css has no content.Schwarz, Wolfgang (2001), "The ex-Wald distribution as a descriptive model of response times", Behavior Research Methods, Instruments, and Computers, 33 (4): 457–469, doi:10.3758/bf03195403, PMID 11816448
  14. ^ Page Module:Citation/CS1/styles.css has no content.Palmer, E. M.; Horowitz, T. S.; Torralba, A.; Wolfe, J. M. (2011). "What are the shapes of response time distributions in visual search?". Journal of Experimental Psychology: Human Perception and Performance. 37 (1): 58–71. doi:10.1037/a0020747. PMC 3062635. PMID 21090905.
  15. ^ Page Module:Citation/CS1/styles.css has no content.Hadwiger, H. (1940). "Eine analytische Reproduktionsfunktion für biologische Gesamtheiten". Skandinavisk Aktuarietidskrijt. 7 (3–4): 101–113. doi:10.1080/03461238.1940.10404802.
  16. ^ Page Module:Citation/CS1/styles.css has no content.Wald, Abraham (1944), "On Cumulative Sums of Random Variables", Annals of Mathematical Statistics, 15 (3): 283–296, doi:10.1214/aoms/1177731235, JSTOR 2236250
  17. ^ Page Module:Citation/CS1/styles.css has no content.Tweedie, M. C. K. (1956). "Some Statistical Properties of Inverse Gaussian Distributions". Virginia Journal of Science. New Series. 7 (3): 160–165.
  18. ^ Capacity per unit cost-achieving input distribution of rated-inverse gaussian biological neuron M Nasiraee, HM Kordy, J Kazemitabar IEEE Transactions on Communications 70 (6), 3788-3803
  19. ^ Page Module:Citation/CS1/styles.css has no content.Giner, Göknur; Smyth, Gordon (August 2016). "statmod: Probability Calculations for the Inverse Gaussian Distribution". The R Journal. 8 (1): 339–351. arXiv:1603.06687. doi:10.32614/RJ-2016-024.
  20. ^ Page Module:Citation/CS1/styles.css has no content.Lindsey, James (2013-09-09). "rmutil: Utilities for Nonlinear Regression and Repeated Measurements Models".
  21. ^ Page Module:Citation/CS1/styles.css has no content.Swihart, Bruce; Lindsey, James (2019-03-04). "rmutil: Utilities for Nonlinear Regression and Repeated Measurements Models".
  22. ^ Page Module:Citation/CS1/styles.css has no content.Wheeler, Robert (2016-09-23). "SuppDists: Supplementary Distributions".
  23. ^ Page Module:Citation/CS1/styles.css has no content.Pouzat, Christophe (2015-02-19). "STAR: Spike Train Analysis with R".
  24. ^ Page Module:Citation/CS1/styles.css has no content.Gjessing, Hakon K. (2014-03-29). "Threshold regression that fits the (randomized drift) inverse Gaussian distribution to survival data".
  25. ^ Page Module:Citation/CS1/styles.css has no content.Hall, Byron; Hall, Martina; Statisticat, LLC; Brown, Eric; Hermanson, Richard; Charpentier, Emmanuel; Heck, Daniel; Laurent, Stephane; Gronau, Quentin F.; Singmann, Henrik (2014-03-29). "LaplacesDemon: Complete Environment for Bayesian Inference".
  26. ^ Page Module:Citation/CS1/styles.css has no content.Giner, Göknur; Smyth, Gordon (2017-06-18). "statmod: Statistical Modeling".

Further reading

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Authority control/config' not found.