Continuous distribution

Exponential distribution

The time until the next event when events arrive independently at a constant rate : the gap between customers, the lifetime of a part that does not wear out, the time to the next radioactive decay. It is memoryless: having waited an hour tells you nothing about how much longer you will wait.

Exponential probability calculator

P(X ≤ 0.69) = 0.498424

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.510123456f(x)mean

CDF

00.250.50.7510123456F(x)

mean 1 · variance 1 · sd 1 · mode 0 · entropy 1 nats

Formulas

Parameters
  • , the rate (events per unit time)
Support
PDF
CDF
Mean
Variance
Mode
MGF
Entropy

Worked example

A component's lifetime is exponential with mean 1,000 hours. What is the probability it lasts more than 1,500 hours? Given that it has already lasted 1,000, what is the probability it lasts 1,500 more?

, so . By memorylessness, the second answer is the same: . 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.expon(scale=1/1)
X.pdf(0.5)  # f(0.5) = 0.6065
X.cdf(0.5)  # P(X ≤ 0.5) = 0.3935
X.mean(), X.var()  # 1, 1
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.exponential(scale=1/1, size=10)

Both libraries take the scale 1/λ, not the rate.

Choosing between this and its neighbours? Which distribution for waiting times and lifetimes? · Which prior distribution should I use?

← Log-normalGamma →