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.
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.
The cumulative distribution function is given by
F(x;λ)=\begin{cases} 1-e-λ&x\ge0,\\ 0&x<0. \end{cases}
The exponential distribution is sometimes parametrized in terms of the scale parameter, which is also the mean:
The mean or expected value of an exponentially distributed random variable X with rate parameter λ is given by
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 byso the standard deviation is equal to the mean.
The moments of X, for
n\in\N
The central moments of X, for
n\in\N
The median of X is given bywhere refers to the natural logarithm. Thus the absolute difference between the mean and median is
in accordance with the median-mean inequality.
An exponentially distributed random variable T obeys the relation
This can be seen by considering the complementary cumulative distribution function:
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.
The quantile function (inverse cumulative distribution function) for Exp(λ) is
The quartiles are therefore:
ln(2)/λ
And as a consequence the interquartile range is ln(3)/λ.
The conditional value at risk (CVaR) also known as the expected shortfall or superquantile for Exp(λ) is derived as follows:[1]
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
The directed Kullback–Leibler divergence in nats of
eλ
λ0 | |
e |
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]
Let X1, …, Xn be independent exponentially distributed random variables with rate parameters λ1, …, λn. Thenis also exponentially distributed, with parameter
This can be seen by considering the complementary cumulative distribution function:
The index of the variable which achieves the minimum is distributed according to the categorical distribution
A proof can be seen by letting
I=\operatorname{argmin}i
Note thatis not exponentially distributed, if X1, …, Xn do not all have parameter 0.[3]
Let
X1,...c,Xn
n
X(1),...c,X(n)
i<j
\operatornameE\left[X(i)X(j)\right]
X(i)
X(j)
This can be seen by invoking the law of total expectation and the memoryless property:
The first equation follows from the law of total expectation.The second equation exploits the fact that once we condition on
X(i)=x
X(j)\geqx
\operatornameE\left[X(j)\midX(j)\geqx\right]
\operatornameE\left[X(j)\right]+x
The probability distribution function (PDF) of a sum of two independent random variables is the convolution of their individual PDFs. If
X1
X2
λ1
λ2,
Z=X1+X2
λ1>λ2
\gamma
\psi( ⋅ )
In the case of equal rate parameters, the result is an Erlang distribution with shape 2 and parameter
λ,
The sum of n independent Exp(λ) exponential random variables is Gamma(n, λ) distributed.
log\left(1+e-X\right)\sim\operatorname{Exp}(\theta)
kX\sim\operatorname{Exp}\left(
λ | |
k |
\right)
\sqrt{X}\sim\operatorname{Rayleigh}\left(
1 | |
\sqrt{2λ |
X\sim\operatorname{Weibull}\left(
1 | |
λ |
,1\right)
X2\sim\operatorname{Weibull}\left(
1 | |
λ2 |
,
1 | |
2 |
\right)
\lfloorX\rfloor\sim\operatorname{Geometric}\left(1-e-λ\right)
\lceilX\rceil\sim\operatorname{Geometric}\left(1-e-λ\right)
Y\sim\Gamma\left(n,
1 | |
λ |
\right)
X | |
Y |
+1\sim\operatorname{Pareto}(1,n)
X1+ … +Xk=\sumiXi\sim
T=(X1+ … +Xn)=
n | |
\sum | |
i=1 |
Xi
2λT\sim
2 | |
\chi | |
2n |
Xi | |
Xi+Xj |
Z=
λiXi | |
λjXj |
fZ(z)=
1 | |
(z+1)2 |
λi | |
λj |
\mu-\betalog\left(
e-X | |
1-e-X |
\right)\sim\operatorname{Logistic}(\mu,\beta)
\mu-\betalog\left(
Xi | |
Xj |
\right)\sim\operatorname{Logistic}(\mu,\beta)
Y\sim\Gamma\left(\alpha,
\beta | |
\alpha |
\right)
\sqrt{XY}\sim\operatorname{K}(\alpha,\beta)
X\sim\operatorname{Exp}\left(
1 | |
λ |
\right)
Y\midX
Y\sim\operatorname{Geometric}\left(
1 | |
1+λ |
\right)
\kappa=0
\alpha=1
\nu=1
\lim(\alpha,\nu)\to(0,1)p\kappa(x)=(1+\kappa\nu)(2\kappa)\nu
| ||||||||
|
\alphaλ\nu | |
\Gamma(\nu) |
x\alpha\nu-1\exp\kappa(-λx\alpha)=λe
Other related distributions:
Below, suppose random variable X is exponentially distributed with rate parameter λ, and
x1,...c,xn
\bar{x}
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:
where:is the sample mean.
The derivative of the likelihood function's logarithm is:
Consequently, the maximum likelihood estimate for the rate parameter is:
This is an unbiased estimator of
λ,
\overline{x}
1/λ
The bias of
\widehat{λ}mle
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:This is derived from the mean and variance of the inverse-gamma distribution, .[8]
The Fisher information, denoted
l{I}(λ)
λ
Plugging in the distribution and solving gives:
This determines the amount of information each independent sample of an exponential distribution carries about the unknown rate parameter
λ
An exact 100(1 − α)% confidence interval for the rate parameter of an exponential distribution is given by:[9] which is also equal towhere 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:
This approximation may be acceptable for samples containing at least 15 to 20 elements.[10]
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:
The posterior distribution p can then be expressed in terms of the likelihood function defined above and a gamma prior:
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:
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:
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).
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 by
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
which can be considered as
{xn+1
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
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 .
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
has an exponential distribution, where F is the quantile function, defined by
Moreover, if U is uniform on (0, 1), then so is 1 − U. This means one can generate exponential variates as follows:
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]