Continuous distribution · also called Wald
Inverse Gaussian distribution
The first time Brownian motion with a steady drift reaches a fixed level: the time for a diffusing particle to cross a membrane, for a stock with an upward trend to first hit a price, for wear to reach a failure threshold, for a decision process to reach a choice. It is right-skewed like the gamma and log-normal and is a common alternative to them for positive data. The name refers to the inverse relationship between its cumulant generating function and the normal's.
Inverse Gaussian probability calculator
P(X ≤ 0.8) = 0.496755
At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.
CDF
mean 1 · variance 0.5 · sd 0.7071 · mode 0.5
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode | |
| MGF |
For Brownian motion with drift and volatility started at 0, the time to reach level is inverse Gaussian with and . SciPy's invgauss has a different shape parameter: use invgauss(mu=, scale=). NumPy calls it wald(mean, scale) with scale .
Worked example
A quantity drifts upward at 1 unit per hour with Brownian noise of volatility 1 per . What is the probability that it takes more than 3 hours to first rise 2 units?
The first-passage time is inverse Gaussian with and , so . The mean time is 2 hours, but the right tail is long. answer checked by code
How it relates to others
- Limit→ Normal: As with fixed, Inverse Gaussian() is approximately Normal(). checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.invgauss(mu=0.5, scale=2)
X.pdf(0.8) # f(0.8) = 0.75
X.cdf(0.8) # P(X ≤ 0.8) = 0.4968
X.mean(), X.var() # 1, 0.5
X.ppf(0.95) # 95th percentile
X.rvs(size=10, random_state=0)
rng = np.random.default_rng(0)
rng.wald(mean=1, scale=2, size=10)In SciPy, mu = μ/λ and scale = λ.
Choosing between this and its neighbours? Which distribution for waiting times and lifetimes?