Exponential distribution explained

In probability theory and statistics, the exponential distribution or negative exponential distribution is the probability distribution of the distance between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average rate; the distance parameter could be any meaningful mono-dimensional measure of the process, such as time between production errors, or length along a roll of fabric in the weaving manufacturing process. It is a particular case of the gamma distribution. It is the continuous analogue of the geometric distribution, and it has the key property of being memoryless. In addition to being used for the analysis of Poisson point processes it is found in various other contexts.

The exponential distribution is not the same as the class of exponential families of distributions. This is a large class of probability distributions that includes the exponential distribution as one of its members, but also includes many other distributions, like the normal, binomial, gamma, and Poisson distributions.

Definitions

Probability density function

The probability density function (pdf) of an exponential distribution is

f(x;λ)=\begin{cases} λe&x\ge0,\\ 0&x<0. \end{cases}

Here λ > 0 is the parameter of the distribution, often called the rate parameter. The distribution is supported on the interval . If a random variable X has this distribution, we write .

The exponential distribution exhibits infinite divisibility.

Cumulative distribution function

The cumulative distribution function is given by

F(x;λ)=\begin{cases} 1-e&x\ge0,\\ 0&x<0. \end{cases}

Alternative parametrization

The exponential distribution is sometimes parametrized in terms of the scale parameter, which is also the mean:f(x;\beta) = \begin \frac e^ & x \ge 0, \\ 0 & x < 0. \end \qquad\qquadF(x;\beta) = \begin 1- e^ & x \ge 0, \\ 0 & x < 0. \end

Properties

Mean, variance, moments, and median

The mean or expected value of an exponentially distributed random variable X with rate parameter λ is given by\operatorname[X] = \frac.

In light of the examples given below, this makes sense; a person who receives an average of two telephone calls per hour can expect that the time between consecutive calls will be 0.5 hour, or 30 minutes.

The variance of X is given by\operatorname[X] = \frac,so the standard deviation is equal to the mean.

The moments of X, for

n\in\N

are given by\operatorname\left[X^n\right] = \frac.

The central moments of X, for

n\in\N

are given by\mu_n = \frac = \frac\sum^n_\frac.where !n is the subfactorial of n

The median of X is given by\operatorname[X] = \frac < \operatorname[X],where refers to the natural logarithm. Thus the absolute difference between the mean and median is\left|\operatorname\left[X\right] - \operatorname\left[X\right]\right| = \frac < \frac = \operatorname[X],

in accordance with the median-mean inequality.

Memorylessness property of exponential random variable

An exponentially distributed random variable T obeys the relation\Pr \left (T > s + t \mid T > s \right) = \Pr(T > t), \qquad \forall s, t \ge 0.

This can be seen by considering the complementary cumulative distribution function: \begin \Pr\left(T > s + t \mid T > s\right) &= \frac \\[4pt] &= \frac \\[4pt] &= \frac \\[4pt] &= e^ \\[4pt] &= \Pr(T > t).\end

When T is interpreted as the waiting time for an event to occur relative to some initial time, this relation implies that, if T is conditioned on a failure to observe the event over some initial period of time s, the distribution of the remaining waiting time is the same as the original unconditional distribution. For example, if an event has not occurred after 30 seconds, the conditional probability that occurrence will take at least 10 more seconds is equal to the unconditional probability of observing the event more than 10 seconds after the initial time.

The exponential distribution and the geometric distribution are the only memoryless probability distributions.

The exponential distribution is consequently also necessarily the only continuous probability distribution that has a constant failure rate.

Quantiles

The quantile function (inverse cumulative distribution function) for Exp(λ) isF^(p;\lambda) = \frac,\qquad 0 \le p < 1

The quartiles are therefore:

ln(2)/λ

And as a consequence the interquartile range is ln(3)/λ.

Conditional Value at Risk (Expected Shortfall)

The conditional value at risk (CVaR) also known as the expected shortfall or superquantile for Exp(λ) is derived as follows:[1]

\begin\bar_\alpha (X) &= \frac \int_^ q_p (X) dp \\&= \frac \int_^ \frac dp \\&= \frac \int_^ -\ln (y) dy \\&= \frac \int_^ \ln (y) dy \\&= \frac [(1-\alpha) \ln(1-\alpha) - (1-\alpha) ] \\&= \frac \\\end

Buffered Probability of Exceedance (bPOE)

See main article: Buffered probability of exceedance. The buffered probability of exceedance is one minus the probability level at which the CVaR equals the threshold

x

. It is derived as follows:

\begin\bar_x (X) &= \ \\&= \ \\&= \ \\&= \ = \ = e^ \end

Kullback–Leibler divergence

The directed Kullback–Leibler divergence in nats of

eλ

("approximating" distribution) from
λ0
e
('true' distribution) is given by\begin\Delta(\lambda_0 \parallel \lambda) &= \mathbb_\left(\log \frac\right)\\&= \mathbb_\left(\log \frac\right)\\&= \log(\lambda_0) - \log(\lambda) - (\lambda_0 - \lambda)E_(x)\\&= \log(\lambda_0) - \log(\lambda) + \frac - 1.\end

Maximum entropy distribution

Among all continuous probability distributions with support and mean μ, the exponential distribution with λ = 1/μ has the largest differential entropy. In other words, it is the maximum entropy probability distribution for a random variate X which is greater than or equal to zero and for which E[''X''] is fixed.[2]

Distribution of the minimum of exponential random variables

Let X1, …, Xn be independent exponentially distributed random variables with rate parameters λ1, …, λn. Then\min\left\is also exponentially distributed, with parameter\lambda = \lambda_1 + \dotsb + \lambda_n.

This can be seen by considering the complementary cumulative distribution function:\begin &\Pr\left(\min\ > x\right) \\ = &\Pr\left(X_1 > x, \dotsc, X_n > x\right) \\ = &\prod_^n \Pr\left(X_i > x\right) \\ = &\prod_^n \exp\left(-x\lambda_i\right) = \exp\left(-x\sum_^n \lambda_i\right).\end

The index of the variable which achieves the minimum is distributed according to the categorical distribution\Pr\left(X_k = \min\\right) = \frac.

A proof can be seen by letting

I=\operatorname{argmin}i

}\. Then,\begin\Pr (I = k) &= \int_^ \Pr(X_k = x) \Pr(\forall_X_ > x) \,dx \\ &= \int_^ \lambda_k e^ \left(\prod_^ e^\right) dx \\ &= \lambda_k \int_^ e^ dx \\ &= \frac.\end

Note that\max\is not exponentially distributed, if X1, …, Xn do not all have parameter 0.[3]

Joint moments of i.i.d. exponential order statistics

Let

X1,...c,Xn

be

n

independent and identically distributed exponential random variables with rate parameter λ. Let

X(1),...c,X(n)

denote the corresponding order statistics. For

i<j

, the joint moment

\operatornameE\left[X(i)X(j)\right]

of the order statistics

X(i)

and

X(j)

is given by\begin \operatorname E\left[X_{(i)} X_{(j)}\right] &= \sum_^\frac \operatorname E\left[X_{(i)}\right] + \operatorname E\left[X_{(i)}^2\right] \\ &= \sum_^\frac\sum_^\frac + \sum_^\frac + \left(\sum_^\frac\right)^2.\end

This can be seen by invoking the law of total expectation and the memoryless property:\begin \operatorname E\left[X_{(i)} X_{(j)}\right] &= \int_0^\infty \operatorname E\left[X_{(i)} X_{(j)} \mid X_{(i)}=x\right] f_(x) \, dx \\ &= \int_^\infty x \operatorname E\left[X_{(j)} \mid X_{(j)} \geq x\right] f_(x) \, dx &&\left(\textrm~X_ = x \implies X_ \geq x\right) \\ &= \int_^\infty x \left[\operatorname E\left[X_{(j)}\right] + x \right] f_(x) \, dx &&\left(\text\right) \\ &= \sum_^\frac \operatorname E\left[X_{(i)}\right] + \operatorname E\left[X_{(i)}^2\right].\end

The first equation follows from the law of total expectation.The second equation exploits the fact that once we condition on

X(i)=x

, it must follow that

X(j)\geqx

. The third equation relies on the memoryless property to replace

\operatornameE\left[X(j)\midX(j)\geqx\right]

with

\operatornameE\left[X(j)\right]+x

.

Sum of two independent exponential random variables

The probability distribution function (PDF) of a sum of two independent random variables is the convolution of their individual PDFs. If

X1

and

X2

are independent exponential random variables with respective rate parameters

λ1

and

λ2,

then the probability density of

Z=X1+X2

is given by \begin f_Z(z) &= \int_^\infty f_(x_1) f_(z - x_1)\,dx_1\\ &= \int_0^z \lambda_1 e^ \lambda_2 e^ \, dx_1 \\ &= \lambda_1 \lambda_2 e^ \int_0^z e^\,dx_1 \\ &= \begin \dfrac \left(e^ - e^\right) & \text \lambda_1 \neq \lambda_2 \\[4 pt] \lambda^2 z e^ & \text \lambda_1 = \lambda_2 = \lambda. \end \end The entropy of this distribution is available in closed form: assuming

λ1>λ2

(without loss of generality), then\begin H(Z) &= 1 + \gamma + \ln \left(\frac \right) + \psi \left(\frac \right),\endwhere

\gamma

is the Euler-Mascheroni constant, and

\psi()

is the digamma function.[4]

In the case of equal rate parameters, the result is an Erlang distribution with shape 2 and parameter

λ,

which in turn is a special case of gamma distribution.

The sum of n independent Exp(λ) exponential random variables is Gamma(n, λ) distributed.

Related distributions

log\left(1+e-X\right)\sim\operatorname{Exp}(\theta)

.

kX\sim\operatorname{Exp}\left(

λ
k

\right)

, closure under scaling by a positive factor.

\sqrt{X}\sim\operatorname{Rayleigh}\left(

1
\sqrt{
}\right), the Rayleigh distribution

X\sim\operatorname{Weibull}\left(

1
λ

,1\right)

, the Weibull distribution

X2\sim\operatorname{Weibull}\left(

1
λ2

,

1
2

\right)

\lfloorX\rfloor\sim\operatorname{Geometric}\left(1-e\right)

, a geometric distribution on 0,1,2,3,...

\lceilX\rceil\sim\operatorname{Geometric}\left(1-e\right)

, a geometric distribution on 1,2,3,4,...

Y\sim\Gamma\left(n,

1
λ

\right)

then
X
Y

+1\sim\operatorname{Pareto}(1,n)

X1++Xk=\sumiXi\sim

Erlang(k, λ) = Gamma(k, λ−1) = Gamma(k, λ) (in (k, θ) and (α, β) parametrization, respectively) with an integer shape parameter k.[5]

T=(X1++Xn)=

n
\sum
i=1

Xi

, then

2λT\sim

2
\chi
2n
.
Xi
Xi+Xj
~ U(0, 1)

Z=

λiXi
λjXj
has probability density function

fZ(z)=

1
(z+1)2
. This can be used to obtain a confidence interval for
λi
λj
.

\mu-\betalog\left(

e-X
1-e-X

\right)\sim\operatorname{Logistic}(\mu,\beta)

, the logistic distribution

\mu-\betalog\left(

Xi
Xj

\right)\sim\operatorname{Logistic}(\mu,\beta)

Y\sim\Gamma\left(\alpha,

\beta
\alpha

\right)

then

\sqrt{XY}\sim\operatorname{K}(\alpha,\beta)

(K-distribution)

X\sim\operatorname{Exp}\left(

1
λ

\right)

and

Y\midX

~ Poisson(X) then

Y\sim\operatorname{Geometric}\left(

1
1+λ

\right)

(geometric distribution)

\kappa=0

case.

\alpha=1

and

\nu=1

cases:

\lim(\alpha,\nu)\to(0,1)p\kappa(x)=(1+\kappa\nu)(2\kappa)\nu

\Gamma(1
+\nu
2
)
2\kappa
\Gamma(1
-\nu
2
)
2\kappa
\alphaλ\nu
\Gamma(\nu)

x\alpha\nu-1\exp\kappa(x\alpha)=λe

Other related distributions:

Statistical inference

Below, suppose random variable X is exponentially distributed with rate parameter λ, and

x1,...c,xn

are n independent samples from X, with sample mean

\bar{x}

.

Parameter estimation

The maximum likelihood estimator for λ is constructed as follows.

The likelihood function for λ, given an independent and identically distributed sample x = (x1, …, xn) drawn from the variable, is: L(\lambda) = \prod_^n\lambda\exp(-\lambda x_i) = \lambda^n\exp\left(-\lambda \sum_^n x_i\right) = \lambda^n\exp\left(-\lambda n\overline\right),

where:\overline = \frac\sum_^n x_iis the sample mean.

The derivative of the likelihood function's logarithm is: \frac \ln L(\lambda) = \frac \left(n \ln\lambda - \lambda n\overline \right) = \frac - n\overline\ \begin > 0, & 0 < \lambda < \frac, \\[8pt] = 0, & \lambda = \frac, \\[8pt] < 0, & \lambda > \frac. \end

Consequently, the maximum likelihood estimate for the rate parameter is:\widehat_\text = \frac = \frac

This is an unbiased estimator of

λ,

although

\overline{x}

an unbiased[6] MLE[7] estimator of

1/λ

and the distribution mean.

The bias of

\widehat{λ}mle

is equal to B \equiv \operatorname\left[\left(\widehat{\lambda}_\text{mle} - \lambda\right)\right] = \frac which yields the bias-corrected maximum likelihood estimator\widehat^*_\text = \widehat_\text - B.

An approximate minimizer of mean squared error (see also: bias–variance tradeoff) can be found, assuming a sample size greater than two, with a correction factor to the MLE:\widehat = \left(\frac\right) \left(\frac\right) = \fracThis is derived from the mean and variance of the inverse-gamma distribution, \mbox(n, \lambda).[8]

Fisher information

The Fisher information, denoted

l{I}(λ)

, for an estimator of the rate parameter

λ

is given as:\mathcal(\lambda) = \operatorname \left[\left. \left(\frac{\partial}{\partial\lambda} \log f(x;\lambda)\right)^2\right|\lambda\right] = \int \left(\frac \log f(x;\lambda)\right)^2 f(x; \lambda)\,dx

Plugging in the distribution and solving gives: \mathcal(\lambda) = \int_^ \left(\frac \log \lambda e^\right)^2 \lambda e^\,dx = \int_^ \left(\frac - x\right)^2 \lambda e^\,dx = \lambda^.

This determines the amount of information each independent sample of an exponential distribution carries about the unknown rate parameter

λ

.

Confidence intervals

An exact 100(1 − α)% confidence interval for the rate parameter of an exponential distribution is given by:[9] \frac< \frac < \frac\,,which is also equal to\frac < \frac < \frac\,,where is the percentile of the chi squared distribution with v degrees of freedom, n is the number of observations and x-bar is the sample average. A simple approximation to the exact interval endpoints can be derived using a normal approximation to the distribution. This approximation gives the following values for a 95% confidence interval:\begin \lambda_\text &= \widehat\left(1 - \frac\right) \\ \lambda_\text &= \widehat\left(1 + \frac\right)\end

This approximation may be acceptable for samples containing at least 15 to 20 elements.[10]

Bayesian inference

The conjugate prior for the exponential distribution is the gamma distribution (of which the exponential distribution is a special case). The following parameterization of the gamma probability density function is useful:

\operatorname(\lambda; \alpha, \beta) = \frac \lambda^ \exp(-\lambda\beta).

The posterior distribution p can then be expressed in terms of the likelihood function defined above and a gamma prior:

\begin p(\lambda) &\propto L(\lambda) \Gamma(\lambda; \alpha, \beta) \\ &= \lambda^n \exp\left(-\lambda n\overline\right) \frac \lambda^ \exp(-\lambda \beta) \\ &\propto \lambda^ \exp(-\lambda \left(\beta + n\overline\right)).\end

Now the posterior density p has been specified up to a missing normalizing constant. Since it has the form of a gamma pdf, this can easily be filled in, and one obtains:

p(\lambda) = \operatorname(\lambda; \alpha + n, \beta + n\overline).

Here the hyperparameter α can be interpreted as the number of prior observations, and β as the sum of the prior observations.The posterior mean here is:\frac.

Occurrence and applications

Occurrence of events

The exponential distribution occurs naturally when describing the lengths of the inter-arrival times in a homogeneous Poisson process.

The exponential distribution may be viewed as a continuous counterpart of the geometric distribution, which describes the number of Bernoulli trials necessary for a discrete process to change state. In contrast, the exponential distribution describes the time for a continuous process to change state.

In real-world scenarios, the assumption of a constant rate (or probability per unit time) is rarely satisfied. For example, the rate of incoming phone calls differs according to the time of day. But if we focus on a time interval during which the rate is roughly constant, such as from 2 to 4 p.m. during work days, the exponential distribution can be used as a good approximate model for the time until the next phone call arrives. Similar caveats apply to the following examples which yield approximately exponentially distributed variables:

Exponential variables can also be used to model situations where certain events occur with a constant probability per unit length, such as the distance between mutations on a DNA strand, or between roadkills on a given road.

In queuing theory, the service times of agents in a system (e.g. how long it takes for a bank teller etc. to serve a customer) are often modeled as exponentially distributed variables. (The arrival of customers for instance is also modeled by the Poisson distribution if the arrivals are independent and distributed identically.) The length of a process that can be thought of as a sequence of several independent tasks follows the Erlang distribution (which is the distribution of the sum of several independent exponentially distributed variables).Reliability theory and reliability engineering also make extensive use of the exponential distribution. Because of the memoryless property of this distribution, it is well-suited to model the constant hazard rate portion of the bathtub curve used in reliability theory. It is also very convenient because it is so easy to add failure rates in a reliability model. The exponential distribution is however not appropriate to model the overall lifetime of organisms or technical devices, because the "failure rates" here are not constant: more failures occur for very young and for very old systems.

In physics, if you observe a gas at a fixed temperature and pressure in a uniform gravitational field, the heights of the various molecules also follow an approximate exponential distribution, known as the Barometric formula. This is a consequence of the entropy property mentioned below.

In hydrology, the exponential distribution is used to analyze extreme values of such variables as monthly and annual maximum values of daily rainfall and river discharge volumes.[11]

The blue picture illustrates an example of fitting the exponential 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.In operating-rooms management, the distribution of surgery duration for a category of surgeries with no typical work-content (like in an emergency room, encompassing all types of surgeries).

Prediction

Having observed a sample of n data points from an unknown exponential distribution a common task is to use these samples to make predictions about future data from the same source. A common predictive distribution over future samples is the so-called plug-in distribution, formed by plugging a suitable estimate for the rate parameter λ into the exponential density function. A common choice of estimate is the one provided by the principle of maximum likelihood, and using this yields the predictive density over a future sample xn+1, conditioned on the observed samples x = (x1, ..., xn) given byp_(x_ \mid x_1, \ldots, x_n) = \left(\frac1 \right) \exp \left(- \frac \right).

The Bayesian approach provides a predictive distribution which takes into account the uncertainty of the estimated parameter, although this may depend crucially on the choice of prior.

A predictive distribution free of the issues of choosing priors that arise under the subjective Bayesian approach is

p_(x_ \mid x_1, \ldots, x_n) = \frac,

which can be considered as

  1. a frequentist confidence distribution, obtained from the distribution of the pivotal quantity

{xn+1

}/;[12]
  1. a profile predictive likelihood, obtained by eliminating the parameter λ from the joint likelihood of xn+1 and λ by maximization;[13]
  2. an objective Bayesian predictive posterior distribution, obtained using the non-informative Jeffreys prior 1/λ;
  3. the Conditional Normalized Maximum Likelihood (CNML) predictive distribution, from information theoretic considerations.[14]

The accuracy of a predictive distribution may be measured using the distance or divergence between the true exponential distribution with rate parameter, λ0, and the predictive distribution based on the sample x. The Kullback–Leibler divergence is a commonly used, parameterisation free measure of the difference between two distributions. Letting Δ(λ0||p) denote the Kullback–Leibler divergence between an exponential with rate parameter λ0 and a predictive distribution p it can be shown that

\begin\operatorname_ \left[\Delta(\lambda_0\parallel p_{\rm ML}) \right] &= \psi(n) + \frac - \log(n) \\\operatorname_ \left[\Delta(\lambda_0\parallel p_{\rm CNML}) \right] &= \psi(n) + \frac - \log(n)\end

where the expectation is taken with respect to the exponential distribution with rate parameter, and is the digamma function. It is clear that the CNML predictive distribution is strictly superior to the maximum likelihood plug-in distribution in terms of average Kullback–Leibler divergence for all sample sizes .

Random variate generation

A conceptually very simple method for generating exponential variates is based on inverse transform sampling: Given a random variate U drawn from the uniform distribution on the unit interval, the variate

T = F^(U)

has an exponential distribution, where F is the quantile function, defined by

F^(p)=\frac.

Moreover, if U is uniform on (0, 1), then so is 1 − U. This means one can generate exponential variates as follows:

T = \frac.

Other methods for generating exponential variates are discussed by Knuth[15] and Devroye.[16]

A fast method for generating a set of ready-ordered exponential variates without using a sorting routine is also available.[16]

See also

External links

Notes and References

  1. Norton . Matthew . Khokhlov . Valentyn . Uryasev . Stan . 2019 . Calculating CVaR and bPOE for common probability distributions with application to portfolio optimization and density estimation . Annals of Operations Research . 299 . 1-2 . 1281-1315 . Springer . 10.1007/s10479-019-03373-1 . 2023-02-27 . 2023-03-31 . https://web.archive.org/web/20230331230821/http://uryasev.ams.stonybrook.edu/wp-content/uploads/2019/10/Norton2019_CVaR_bPOE.pdf . dead .
  2. Park . Sung Y. . Bera . Anil K. . 2009 . Maximum entropy autoregressive conditional heteroskedasticity model . Journal of Econometrics . 150 . 2 . 219–230 . Elsevier . 10.1016/j.jeconom.2008.12.014 . 2011-06-02 . https://web.archive.org/web/20160307144515/http://wise.xmu.edu.cn/uploadfiles/paper-masterdownload/2009519932327055475115776.pdf . 2016-03-07 . dead .
  3. Web site: Michael. Lugo. The expectation of the maximum of exponentials. 13 December 2016. https://web.archive.org/web/20161220132822/https://www.stat.berkeley.edu/~mlugo/stat134-f11/exponential-maximum.pdf . 20 December 2016. dead.
  4. Eckford . Andrew W. . Thomas . Peter J. . 2016 . Entropy of the sum of two independent, non-identically-distributed exponential random variables . cs.IT . 1609.02911.
  5. Book: Ibe, Oliver C.. Fundamentals of Applied Probability and Random Processes. 128. 2nd. 2014. Academic Press. 9780128010358.
  6. Book: Richard Arnold Johnson. Dean W. Wichern. Applied Multivariate Statistical Analysis. 10 August 2012. 2007 . Pearson Prentice Hall. 978-0-13-187715-3.
  7. NIST/SEMATECH e-Handbook of Statistical Methods
  8. Abdulaziz . Elfessi . David M. . Reineke . A Bayesian Look at Classical Estimation: The Exponential Distribution . Journal of Statistics Education . 9 . 1 . 2001 . 10.1080/10691898.2001.11910648. free .
  9. Book: Ross, Sheldon M.. Introduction to probability and statistics for engineers and scientists. 267. 4th. 2009. Associated Press. 978-0-12-370483-2.
  10. V. . Guerriero . 2012 . Power Law Distribution: Method of Multi-scale Inferential Statistics. Journal of Modern Mathematics Frontier . 1 . 21–28.
  11. Book: Ritzema. H.P.. Frequency and Regression Analysis. 1994. Chapter 6 in: Drainage Principles and Applications, Publication 16, International Institute for Land Reclamation and Improvement (ILRI), Wageningen, The Netherlands. 175–224. 90-70754-33-9.
  12. Lawless . J. F. . Fredette . M. . Frequentist predictions intervals and predictive distributions . Biometrika . 2005 . 92 . 3 . 529–542 . 10.1093/biomet/92.3.529 .
  13. Bjornstad . J.F. . 1990 . Predictive Likelihood: A Review . Statist. Sci. . 5 . 2. 242–254 . 10.1214/ss/1177012175. free .
  14. D. F. Schmidt and E. Makalic, "Universal Models for the Exponential Distribution", IEEE Transactions on Information Theory, Volume 55, Number 7, pp. 3087–3090, 2009
  15. [Donald Knuth|Donald E. Knuth]
  16. Luc Devroye (1986). Non-Uniform Random Variate Generation. New York: Springer-Verlag. . See chapter IX, section 2, pp. 392–401.