Dedekind psi function

From formulasearchengine
Revision as of 04:02, 2 September 2013 by en>Crisófilax
Jump to navigation Jump to search

Template:Probability distribution

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πx3]1/2expλ(xμ)22μ2x

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

XIG(μ,λ).

Properties

Summation

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

S=i=1nXiIG(μ0wi,λ0(wi)2).

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.

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μ²) and -λ/2, and natural statistics X and 1/X.

Relationship with Brownian motion

The stochastic process Xt given by

X0=0
Xt=νt+σWt

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

This is a Lévy distribution with parameters c=α2σ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.

Generating random variates from an inverse-Gaussian distribution

The following algorithm may be used.[1]

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=μ+μ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:

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, normed=True)

plt.show()

Related distributions

The convolution of a Wald distribution and an exponential (the ex-Wald distribution) is used as a model for response times in psychology.[2]

History

This distribution appears to have been first derived by Schrödinger in 1915 as the time to first passage of a Brownian motion.[3] The name inverse Gaussian was proposed by Tweedie in 1945.[4] 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.

Software

The R programming language has software for this distribution. [1]

See also

Notes

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

References

  • The inverse gaussian distribution: theory, methodology, and applications by Raj Chhikara and Leroy Folks, 1989 ISBN 0-8247-7997-5
  • System Reliability Theory by Marvin Rausand and Arnljot Høyland
  • The Inverse Gaussian Distribution by Dr. V. Seshadri, Oxford Univ Press, 1993

External links

55 yrs old Metal Polisher Records from Gypsumville, has interests which include owning an antique car, summoners war hack and spelunkering. Gets immense motivation from life by going to places such as Villa Adriana (Tivoli).

my web site - summoners war hack no survey ios

  1. Generating Random Variates Using Transformations with Multiple Roots by John R. Michael, William R. Schucany and Roy W. Haas, American Statistician, Vol. 30, No. 2 (May, 1976), pp. 88–90
  2. Schwarz W (2001) The ex-Wald distribution as a descriptive model of response times. Behav Res Methods Instrum Comput 33(4):457-469
  3. Schrodinger E (1915) Zur Theorie der Fall—und Steigversuche an Teilchenn mit Brownscher Bewegung. Physikalische Zeitschrift 16, 289-295
  4. Folks JL & Chhikara RS (1978) The inverse Gaussian and its statistical application - a review. J Roy Stat Soc 40(3) 263-289