# Gompertz distribution

In probability and statistics, the Gompertz distribution is a continuous probability distribution, named after Benjamin Gompertz. The Gompertz distribution is often applied to describe the distribution of adult lifespans by demographers and actuaries. Related fields of science such as biology and gerontology also considered the Gompertz distribution for the analysis of survival. More recently, computer scientists have also started to model the failure rates of computer code by the Gompertz distribution. In Marketing Science, it has been used as an individual-level simulation for customer lifetime value modeling. In network theory, particularly the Erdős–Rényi model, the walk length of a random self-avoiding walk (SAW) is distributed according to the Gompertz distribution.

## Specification
### Probability density function

The probability density function of the Gompertz distribution is:
    $f\left(x;\eta ,b\right)=b\eta \exp \left(\eta +bx-\eta e^{bx}\right){\text{for }}x\geq 0,\,$
where $b>0\,\!$ is the scale parameter and $\eta >0\,\!$ is the shape parameter of the Gompertz distribution. In the actuarial and biological sciences and in demography, the Gompertz distribution is parametrized slightly differently (Gompertz–Makeham law of mortality).

### Cumulative distribution function

The cumulative distribution function of the Gompertz distribution is:
    $F\left(x;\eta ,b\right)=1-\exp \left(-\eta \left(e^{bx}-1\right)\right),$
where $\eta ,b>0,$ and $x\geq 0\,.$

### Moment generating function

The moment generating function is:
    ${\text{E}}\left(e^{-tX}\right)=\eta e^{\eta }{\text{E}}_{t/b}\left(\eta \right)$
where
    ${\text{E}}_{t/b}\left(\eta \right)=\int _{1}^{\infty }e^{-\eta v}v^{-t/b}dv,\ t>0.$

## Properties

The Gompertz distribution is a flexible distribution that can be skewed to the right and to the left. Its hazard function $h(x)=\eta be^{bx}$ is a convex function of $F\left(x;\eta ,b\right)$. The model can be fitted into the innovation-imitation paradigm with $p=\eta b$ as the coefficient of innovation and $b$ as the coefficient of imitation. When $t$ becomes large, $z(t)$ approaches $\infty$. The model can also belong to the propensity-to-adopt paradigm with
$\eta$ as the propensity to adopt and $b$ as the overall appeal of the new offering.

### Shapes

The Gompertz density function can take on different shapes depending on the values of the shape parameter $\eta \,\!$:
* When $\eta \geq 1,\,$ the probability density function has its mode at 0.
* When $0<\eta <1,\,$ the probability density function has its mode at
       $x^{*}=\left(1/b\right)\ln \left(1/\eta \right){\text{with }}0<F\left(x^{*}\right)<1-e^{-1}=0.632121$

### Kullback-Leibler divergence

If $f_{1}$ and $f_{2}$ are the probability density functions of two Gompertz distributions, then their Kullback-Leibler divergence is given by
    ${\begin{aligned}D_{KL}(f_{1}\parallel f_{2})&=\int _{0}^{\infty }f_{1}(x;b_{1},\eta _{1})\,\ln {\frac {f_{1}(x;b_{1},\eta _{1})}{f_{2}(x;b_{2},\eta _{2})}}dx\\&=\ln {\frac {e^{\eta _{1}}\,b_{1}\,\eta _{1}}{e^{\eta _{2}}\,b_{2}\,\eta _{2}}}+e^{\eta _{1}}\left[\left({\frac {b_{2}}{b_{1}}}-1\right)\,\operatorname {Ei} (-\eta _{1})+{\frac {\eta _{2}}{\eta _{1}^{\frac {b_{2}}{b_{1}}}}}\,\Gamma \left({\frac {b_{2}}{b_{1}}}+1,\eta _{1}\right)\right]-(\eta _{1}+1)\end{aligned}}$
where $\operatorname {Ei} (\cdot )$ denotes the exponential integral and $\Gamma (\cdot ,\cdot )$ is the upper incomplete gamma function.

## Related distributions

* If X is defined to be the result of sampling from a Gumbel distribution until a negative value Y is produced, and setting X=−Y, then X has a Gompertz distribution.
* The gamma distribution is a natural conjugate prior to a Gompertz likelihood with known scale parameter $b\,\!.$
* When $\eta \,\!$ varies according to a gamma distribution with shape parameter $\alpha \,\!$ and scale parameter $\beta \,\!$ (mean = $\alpha /\beta \,\!$), the distribution of $x$ is Gamma/Gompertz.
* If $Y\sim \mathrm {Gompertz}$, then $X=\exp(Y)\sim \mathrm {Weibull} ^{-1}$, and hence $\exp(-Y)\sim \mathrm {Weibull}$.

## Applications

* In hydrology the Gompertz distribution is applied to extreme events such as annual maximum one-day rainfalls and river discharges. The blue picture illustrates an example of fitting the Gompertz distribution to ranked annually maximum one-day rainfalls showing also the 90% confidence belt based on the binomial distribution. The rainfall data are represented by plotting positions as part of the cumulative frequency analysis.