Continuous distribution

Gompertz distribution

A lifetime whose hazard (the instantaneous death rate) grows exponentially, : Gompertz's 1825 law of human mortality, under which the adult death rate doubles roughly every eight years. Actuaries and demographers fit it to adult lifetimes, and biologists to ageing in animals; it is also used for the time to failure of things that wear out faster and faster.

Gompertz probability calculator

P(X ≤ 0.87) = 0.500154

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

CDF

00.250.50.7510123456F(x)

mean 0.9229 · variance 0.3296 · sd 0.5741 · mode 0.6931

Formulas

Parameters
  • , the shape (the starting hazard is )
  • , the rate at which the hazard grows (SciPy's scale is )
Support
PDF
CDF
Mean
Variance
Mode

is the exponential integral. If is Exponential(1), is Gompertz(), and the quantile is . This is SciPy's gompertz(c=η, scale=1/b). Many demography texts write the hazard as , so .

Worked example

Remaining lifetime at age 30 in a population follows a Gompertz law with per year and . What is the median remaining lifetime?

Solve : years, so half of 30-year-olds live past about 103. The mean, years, is lower: the left tail of early deaths pulls it down. 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.gompertz(c=0.5, scale=1)
X.pdf(1.5)  # f(1.5) = 0.393
X.cdf(1.5)  # P(X ≤ 1.5) = 0.8246
X.mean(), X.var()  # 0.9229, 0.3296
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
np.log1p(rng.exponential(size=10) / 0.5) / 1

SciPy takes c = η and scale = 1/b. NumPy has no Gompertz sampler: transform an exponential, ln(1 + E/η)/b.

Choosing between this and its neighbours? Which distribution for waiting times and lifetimes?

← Maxwell–BoltzmannGumbel →