Continuous distribution · also called Lévy distribution, Levy

Lévy distribution

The time a Brownian motion takes to first reach a level is Lévy with , so it describes first-passage times of diffusions. It is one of the few stable distributions with a closed-form density, and its tail is so heavy () that the mean is infinite: the walk reaches the level with probability 1, but the expected wait is unbounded.

Lévy probability calculator

P(X ≤ 0.55) = 0.500184

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.

PDF

00.511.50510152025f(x)

CDF

00.250.50.7510510152025F(x)

mean ∞ · variance ∞ · mode 0.08333 · entropy 1.938 nats

Formulas

Parameters
  • , the location (the smallest possible value)
  • , the scale
Support
PDF
CDF
Mean
Variance
Mode
Entropy

is the Euler–Mascheroni constant. The median is . If is standard normal, is Lévy(), which is the easy way to sample it.

Worked example

A standard Brownian motion starts at 0. What is the probability that it reaches the level 1 by time 4?

The hitting time of level is Lévy() = Lévy(), so (The same number comes from the reflection principle: .) answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.levy(loc=0, scale=0.25)
X.pdf(1)  # f(1) = 0.176
X.cdf(1)  # P(X ≤ 1) = 0.6171
X.mean(), X.var()  # ∞, ∞
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
0 + 0.25 / rng.standard_normal(size=10) ** 2

SciPy takes loc = μ and scale = c. NumPy has no Lévy sampler: divide c by a squared standard normal.

Choosing between this and its neighbours? Which distribution for waiting times and lifetimes? · Which distribution for extremes and heavy tails?

← Inverse GaussianBeta →