# Exponential distribution

Template:Distinguish2
Template:Probability distribution
In probability theory and statistics, the **exponential distribution** (a.k.a. **negative exponential distribution**) is the probability distribution that describes the time between events in a Poisson process, i.e. a process in which events occur continuously and independently at a constant average rate. 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 processes, it is found in various other contexts.

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

## Characterization

### Probability density function

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

Alternatively, this can be defined using the Heaviside step function, *H*(*x*).

Here λ > 0 is the parameter of the distribution, often called the *rate parameter*. The distribution is supported on the interval [0, ∞). If a random variable *X* has this distribution, we write *X* ~ Exp(λ).

The exponential distribution exhibits infinite divisibility.

### Cumulative distribution function

The cumulative distribution function is given by

Alternatively, this can be defined using the Heaviside step function, *H*(*x*).

### Alternative parameterization

A commonly used alternative parametrization is to define the probability density function (pdf) of an exponential distribution as

where β > 0 is mean, standard deviation, and scale parameter of the distribution, the reciprocal of the *rate parameter*, λ, defined above. In this specification, β is a *survival parameter* in the sense that if a random variable *X* is the duration of time that a given biological or mechanical system manages to survive and *X* ~ Exp(β) then E[*X*] = β. That is to say, the expected duration of survival of the system is β units of time. The parametrization involving the "rate" parameter arises in the context of events arriving at a rate λ, when the time between events (which might be modeled using an exponential distribution) has a mean of β = λ^{−1}.

The alternative specification is sometimes more convenient than the one given above, and some authors will use it as a standard definition. This alternative specification is not used here. Unfortunately this gives rise to a notational ambiguity. In general, the reader must check which of these two specifications is being used if an author writes "*X* ~ Exp(λ)", since either the notation in the previous (using λ) or the notation in this section (here, using *β* to avoid confusion) could be intended. An example of this notational switch^{[1]} uses λ for β.

Replacing β for λ, one derives the standard truncated mean (for x resampled if x>1) as

which reduces to

Substituting for and inverting, one obtains (since ) an approximate estimator for . The MLE for the untruncated is (see Parameter estimation) and suffices for estimating the censored mean (for ) as well.

Simulating an exponential random variable is , where ~standard uniform distribution.

## Properties

### Mean, variance, moments and median

The mean or expected value of an exponentially distributed random variable *X* with rate parameter λ is given by

In light of the examples given above, this makes sense: if you receive phone calls at an average rate of 2 per hour, then you can expect to wait half an hour for every call.

The variance of *X* is given by

so the standard deviation is equal to the mean.

The moments of *X*, for *n* = 1, 2, ..., are given by

The median of *X* is given by

where ln refers to the natural logarithm. Thus the absolute difference between the mean and median is

in accordance with the median-mean inequality.

### Memorylessness

An exponentially distributed random variable *T* obeys the relation

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 relative to 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(λ) is

The quartiles are therefore:

- first quartile: ln(4/3)/λ
- median: ln(2)/λ
- third quartile: ln(4)/λ

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

### Kullback–Leibler divergence

The directed Kullback–Leibler divergence of ('approximating' distribution) from ('true' distribution) is given by

### Maximum entropy distribution

Among all continuous probability distributions with support and mean , the exponential distribution with has the largest differential entropy. In other words, it is the maximum entropy probability distribution for a random variate for which is fixed and greater than zero.^{[3]}

### Distribution of the minimum of exponential random variables

Let *X*_{1}, ..., *X*_{n} be independent exponentially distributed random variables with rate parameters λ_{1}, ..., λ_{n}. Then

is 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 law

Note that

is not exponentially distributed.

## Parameter estimation

Suppose a given variable is exponentially distributed and the rate parameter λ is to be estimated. Among the estimators of λ, the maximum likelihood estimator (MLE) and the uniformly minimum variance unbiased estimator (UMVUE) are 1/Xbar and (n-1)/(Xbar*n), respectively. The one that minimizes the expected mean squared error is (n-2)/(Xbar*n).^{[4]}

### Maximum likelihood

The likelihood function for λ, given an independent and identically distributed sample *x* = (*x*_{1}, ..., *x*_{n}) 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:

Although this is *not* an unbiased estimator of , *is* an unbiased^{[5]} MLE^{[6]} estimator of where is the scale parameter defined in the 'Alternative parameterization' section above and the distribution mean.

### Confidence intervals

The 100(1 − α)% confidence interval for the rate parameter of an exponential distribution is given by:^{[7]}

which is also equal to:

where χ^{2}_{p,v} is the 100(*p*) percentile of the chi squared distribution with *v* degrees of freedom, n is the number of observations of inter-arrival times in the sample, and x-bar is the sample average. A simple approximation to the exact interval endpoints can be derived using a normal approximation to the *χ*^{2}_{p,v} 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.^{[8]}

### 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:

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 parameter α can be interpreted as the number of prior observations, and β as the sum of the prior observations. The posterior mean here is:

## Generating exponential variates

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 (0, 1), the variate

has an exponential distribution, where *F*^{ −1} 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^{[9]} and Devroye.^{[10]}

The ziggurat algorithm is a fast method for generating exponential variates.

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

## Related distributions

- Exponential distribution is closed under scaling by a positive factor. If
*X*~ Exp(λ) then*kX*~ Exp(λ/*k*).

- If
*X*~ Exp(λ) and*Y*~ Exp(ν) then min(*X*,*Y*) ~ Exp(λ + ν).

- If
*X*~ Exp(λ) then min{_{i}*X*_{1}, ...,*X*} ~ Exp(_{n}*n*λ).

- The Benktander Weibull distribution reduces to a truncated exponential distribution. If
*X*~ Exp(λ) then 1+*X*~ BenktanderWeibull(λ, 1).

- The exponential distribution is a limit of a scaled beta distribution:

- If
*X*~ Exp(λ) then_{i}*X*_{1}+ ... +*X*~ Erlang(_{k}*k*, λ) which is just a Gamma(*k*, λ) with an integer shape parameter k.

- If
*X*~ Exp(1) then μ − σ log(*X*) ~ GEV(μ, σ, 0).

- If
*X*~ Exp(λ) then*X*~ Gamma(1, λ)

- If
*X*~ Exp(λ) and*Y*~ Exp(ν) then λ*X*− ν*Y*~ Laplace(0, 1).

- If
*X*,*Y*~ Exp(λ) then*X*−*Y*~ Laplace(0, λ^{−1}).

- If
*X*~ Laplace(μ, β^{−1}) then |*X*− μ| ~ Exp(β).

- If
*X*~ Exp(1) then (logistic distribution):

- If
*X*,*Y*~ Exp(1) then (logistic distribution):

- If
*X*~ Exp(λ) then*ke*~ Pareto(^{X}*k*, λ).

- If
*X*~ Pareto(1, λ) then log(*X*) ~ Exp(λ).

- Exponential distribution is a special case of type 3 Pearson distribution.

- If
*X*~ Exp(λ) then (power law)

- If
*X*~ Rayleigh(λ^{−1/2}) then*X*^{2}/2 ~ Exp(λ).

- If
*X*~ Exp(λ) then (Weibull distribution)

- If
*X*~_{i}*U*(0, 1) then

- If
*Y|X*~ Poisson(*X*) where*X*~ Exp(λ^{−1}) then (geometric distribution)

- If
*X*~ Exp(1) and then (K-distribution)

- The Hoyt distribution can be obtained from Exponential distribution and Arcsine distribution

- If
*X*~ Exp(λ) and*Y*~ Erlang(*n*, λ) then:

- If
*X*~ SkewLogistic(θ), then log(1 +*e*) ~ Exp(θ).^{-X}

- If
*X*~ Exp(λ) and*Y*= μ − β log(*X*λ) then*Y*∼ Gumbel(μ, β).

- If
*X*~ Exp(1/2) then*X*∼ χ_{2}^{2}, i.e.*X*has a chi-squared distribution with 2 degrees of freedom.

- Let
*X*∼ Exp(λ_{X}) and*Y*∼ Exp(λ_{Y}) be independent. Then has probability density function . This can be used to obtain a confidence interval for .

Other related distributions:

- Hyper-exponential distribution – the distribution whose density is a weighted sum of exponential densities.
- Hypoexponential distribution – the distribution of a general sum of exponential random variables.
- exGaussian distribution – the sum of an exponential distribution and a normal distribution.

## 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:

- The time until a radioactive particle decays, or the time between clicks of a geiger counter
- The time it takes before your next telephone call
- The time until default (on payment to company debt holders) in reduced form credit risk modeling

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.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}}

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.^{[12]}

- 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.

### 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 *x*_{n+1}, conditioned on the observed samples *x* = (*x*_{1}, ..., *x _{n}*) 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

- (1) a frequentist confidence distribution, obtained from the distribution of the pivotal quantity ;
^{[13]} - (2) a profile predictive likelihood, obtained by eliminating the parameter λ from the joint likelihood of
*x*_{n+1}and λ by maximization;^{[14]} - (3) an objective Bayesian predictive posterior distribution, obtained using the non-informative Jeffreys prior 1/λ;
- (4) the Conditional Normalized Maximum Likelihood (CNML) predictive distribution, from information theoretic considerations.
^{[15]}

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 λ_{0} ∈ (0, ∞), 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 *n* > 0.

## See also

- Dead time – an application of exponential distribution to particle detector analysis.
- Laplace distribution, or the "double exponential distribution".

## References

- ↑ David Olive,
*Chapter 4. Truncated Distributions*, "Lemma 4.3", Southern Illinois University, February 18, 2010, p.107. - ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ Abdulaziz Elfessi and David M. Reineke, "A Bayesian Look at Classical Estimation: The Exponential Distribution",
*Journal of Statistics Education*Volume 9, Number 1 (2001). - ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑
*NIST/SEMATECH e-Handbook of Statistical Methods* - ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ Donald E. Knuth (1998).
*The Art of Computer Programming*, volume 2:*Seminumerical Algorithms*, 3rd edn. Boston: Addison–Wesley. ISBN 0-201-89684-2.*See section 3.4.1, p. 133.* - ↑
^{10.0}^{10.1}Luc Devroye (1986).*Non-Uniform Random Variate Generation*. New York: Springer-Verlag. ISBN 0-387-96305-7.*See chapter IX, section 2, pp. 392–401.* - ↑ Template:Cite web
- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ Lawless, J.F., Fredette, M.,"Frequentist predictions intervals and predictive distributions", Biometrika (2005), Vol 92, Issue 3, pp 529–542.
- ↑ Bjornstad, J.F., "Predictive Likelihood: A Review", Statist. Sci. Volume 5, Number 2 (1990), 242–254.
- ↑ 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 Template:Hide in printTemplate:Only in print

## External links

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- REDIRECT Template:Probability distributions