Sponsored Links
-->

Monday, June 25, 2018

Exponential Distribution - Part 1 - Deriving the Expected Value ...
src: i.ytimg.com

In probability theory and statistics, the exponential distribution (also known as negative exponential distribution) is the probability distribution that describes the time between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average rate. 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, 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.


Video Exponential distribution



Characterization

Probability density function

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

f ( x ; ? ) = { ? e - ? x x >= 0 , 0 x < 0. {\displaystyle f(x;\lambda )={\begin{cases}\lambda e^{-\lambda x}&x\geq 0,\\0&x<0.\end{cases}}}

Alternatively, this can be defined using the right-continuous Heaviside step function, H(x) where H(0)=1:

f ( x ; ? ) = ? e - ? x H ( x ) {\displaystyle f(x;\lambda )=\mathrm {\lambda } e^{-\lambda x}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

F ( x ; ? ) = { 1 - e - ? x x >= 0 , 0 x < 0 {\displaystyle F(x;\lambda )={\begin{cases}1-e^{-\lambda x}&x\geq 0,\\0&x<0\end{cases}}}

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

F ( x ; ? ) = ( 1 - e - ? x ) H ( x ) {\displaystyle F(x;\lambda )=\mathrm {(} 1-e^{-\lambda x})H(x)}

Alternative parameterization

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

f ( x ; ? ) = { 1 ? e - x ? x >= 0 , 0 x < 0. {\displaystyle f(x;\beta )={\begin{cases}{\frac {1}{\beta }}e^{-{\frac {x}{\beta }}}&x\geq 0,\\0&x<0.\end{cases}}}

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: reference uses ? for ?.


Maps Exponential 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

E [ X ] = 1 ? = ? {\displaystyle \operatorname {E} [X]={\frac {1}{\lambda }}=\beta } , see above.

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

Var [ X ] = 1 ? 2 = ? 2 {\displaystyle \operatorname {Var} [X]={\frac {1}{\lambda ^{2}}}=\beta ^{2}} ,

so the standard deviation is equal to the mean.

The moments of X, for n ? N {\displaystyle n\in \mathbb {N} } are given by

E [ X n ] = n ! ? n {\displaystyle \operatorname {E} \left[X^{n}\right]={\frac {n!}{\lambda ^{n}}}} .

The central moments of X, for n ? N {\displaystyle n\in \mathbb {N} } are given by

? n = ! n ? n = n ! ? n ? k = 0 n ( - 1 ) k k ! {\displaystyle \mu _{n}={\frac {!n}{\lambda ^{n}}}={\frac {n!}{\lambda ^{n}}}\sum _{k=0}^{n}{\frac {(-1)^{k}}{k!}}} .

where !n is the subfactorial of n

The median of X is given by

m [ X ] = ln ( 2 ) ? < E [ X ] {\displaystyle \operatorname {m} [X]={\frac {\ln(2)}{\lambda }}<\operatorname {E} [X]} ,

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

| E [ X ] - m [ X ] | = 1 - ln ( 2 ) ? < 1 ? = standard deviation {\displaystyle |\operatorname {E} [X]-\operatorname {m} [X]|={\frac {1-\ln(2)}{\lambda }}<{\frac {1}{\lambda }}={\text{standard deviation}}} ,

in accordance with the median-mean inequality.

Memorylessness

An exponentially distributed random variable T obeys the relation

Pr ( T > s + t | T > s ) = Pr ( T > t ) , ? s , t >= 0 {\displaystyle \Pr \left(T>s+t|T>s\right)=\Pr(T>t),\qquad \forall s,t\geq 0} .

This can be seen by considering the complementary cumulative distribution function:

Pr ( T > s + t | T > s ) = Pr ( T > s + t ? T > s ) Pr ( T > s ) = Pr ( T > s + t ) Pr ( T > s ) = e - ? ( s + t ) e - ? s = e - ? t = Pr ( T > t ) . {\displaystyle {\begin{aligned}\Pr \left(T>s+t|T>s\right)&={\frac {\Pr \left(T>s+t\cap T>s\right)}{\Pr \left(T>s\right)}}\\&={\frac {\Pr \left(T>s+t\right)}{\Pr \left(T>s\right)}}\\&={\frac {e^{-\lambda (s+t)}}{e^{-\lambda s}}}\\&=e^{-\lambda t}\\&=\Pr(T>t).\end{aligned}}}

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

F - 1 ( p ; ? ) = - ln ( 1 - p ) ? , 0 <= p < 1 {\displaystyle F^{-1}(p;\lambda )={\frac {-\ln(1-p)}{\lambda }},\qquad 0\leq p<1}

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 e ? {\displaystyle e^{\lambda }} ('approximating' distribution) from e ? 0 {\displaystyle e^{\lambda _{0}}} ('true' distribution) is given by

? ( ? 0 | | ? ) = E ? 0 ( log p ? 0 ( x ) p ? ( x ) ) = E ? 0 ( log ? 0 e - ? 0 x ? e - ? x ) = log ( ? 0 ) - log ( ? ) - ( ? 0 - ? ) E ? 0 ( x ) = log ( ? 0 ) - log ( ? ) + ? ? 0 - 1. {\displaystyle {\begin{aligned}\Delta (\lambda _{0}||\lambda )&=\mathbb {E} _{\lambda _{0}}\left(\log {\frac {p_{\lambda _{0}}(x)}{p_{\lambda }(x)}}\right)\\&=\mathbb {E} _{\lambda _{0}}\left(\log {\frac {\lambda _{0}e^{-\lambda _{0}x}}{\lambda e^{-\lambda x}}}\right)\\&=\log(\lambda _{0})-\log(\lambda )-(\lambda _{0}-\lambda )E_{\lambda _{0}}(x)\\&=\log(\lambda _{0})-\log(\lambda )+{\frac {\lambda }{\lambda _{0}}}-1.\end{aligned}}}

Maximum entropy distribution

Among all continuous probability distributions with support [0, ?) 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.

Distribution of the minimum of exponential random variables

Let X1, ..., Xn be independent exponentially distributed random variables with rate parameters ?1, ..., ?n. Then

min { X 1 , ... , X n } {\displaystyle \min \left\{X_{1},\dotsc ,X_{n}\right\}}

is also exponentially distributed, with parameter

? = ? 1 + ? + ? n {\displaystyle \lambda =\lambda _{1}+\dotsb +\lambda _{n}} .

This can be seen by considering the complementary cumulative distribution function:

Pr ( min { X 1 , ... , X n } > x ) = Pr ( X 1 > x , ... , X n > x ) = ? i = 1 n Pr ( X i > x ) = ? i = 1 n exp ( - x ? i ) = exp ( - x ? i = 1 n ? i ) . {\displaystyle {\begin{aligned}\Pr \left(\min\{X_{1},\dotsc ,X_{n}\}>x\right)&=\Pr \left(X_{1}>x,\dotsc ,X_{n}>x\right)\\&=\prod _{i=1}^{n}\Pr(X_{i}>x)\\&=\prod _{i=1}^{n}\exp(-x\lambda _{i})=\exp \left(-x\sum _{i=1}^{n}\lambda _{i}\right).\end{aligned}}}

The index of the variable which achieves the minimum is distributed according to the law

Pr ( k | X k = min { X 1 , ... , X n } ) = ? k ? 1 + ? + ? n . {\displaystyle \Pr \left(k|X_{k}=\min\{X_{1},\dotsc ,X_{n}\}\right)={\frac {\lambda _{k}}{\lambda _{1}+\dotsb +\lambda _{n}}}.}

Note that

max { X 1 , ... , X n } {\displaystyle \max\{X_{1},\dotsc ,X_{n}\}}

is not exponentially distributed.

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

Let X 1 , ... , X n {\displaystyle X_{1},\dotsc ,X_{n}} be n {\displaystyle n} independent and identically distributed exponential random variables with rate parameter ?. Let X ( 1 ) , ... , X ( n ) {\displaystyle X_{(1)},\dotsc ,X_{(n)}} denote the corresponding order statistics. For i < j {\displaystyle i<j} , the joint moment E [ X ( i ) X ( j ) ] {\displaystyle E[X_{(i)}X_{(j)}]} of the order statistics X ( i ) {\displaystyle X_{(i)}} and X ( j ) {\displaystyle X_{(j)}} is given by

E [ X ( i ) X ( j ) ] = 1 ( n - j + 1 ) ? E [ X ( i ) ] + E [ X ( i ) 2 ] = 1 ( n - j + 1 ) ? 1 ( n - i + 1 ) ? + 2 ( ( n - i + 1 ) ? ) 2 . {\displaystyle E[X_{(i)}X_{(j)}]={\frac {1}{(n-j+1)\lambda }}E[X_{(i)}]+E[X_{(i)}^{2}]={\frac {1}{(n-j+1)\lambda }}{\frac {1}{(n-i+1)\lambda }}+{\frac {2}{((n-i+1)\lambda )^{2}}}.}

This can be seen by invoking the Law of total expectation and the memoryless property:

E [ X ( i ) X ( j ) ] = ? x = 0 ? E [ X ( i ) X ( j ) | X ( i ) = x ] f X ( i ) ( x ) d x = ? x = 0 ? x E [ X ( j ) | X ( j ) >= x ] f X ( i ) ( x ) d x ( since   X ( i ) = x ? X ( j ) >= x ) = ? x = 0 ? x [ 1 ( n - j + 1 ) ? + x ] f X ( i ) ( x ) d x ( by the memoryless property ) = 1 ( n - j + 1 ) ? E [ X ( i ) ] + E [ X ( i ) 2 ] . {\displaystyle {\begin{aligned}E[X_{(i)}X_{(j)}]&=\int _{x=0}^{\infty }E[X_{(i)}X_{(j)}|X_{(i)}=x]f_{X_{(i)}}(x)dx\\&=\int _{x=0}^{\infty }xE[X_{(j)}|X_{(j)}\geq x]f_{X_{(i)}}(x)dx\qquad ({\textrm {since}}~X_{(i)}=x\implies X_{(j)}\geq x)\\&=\int _{x=0}^{\infty }x\left[{\frac {1}{(n-j+1)\lambda }}+x\right]f_{X_{(i)}}(x)dx\qquad ({\text{by the memoryless property}})\\&={\frac {1}{(n-j+1)\lambda }}E[X_{(i)}]+E[X_{(i)}^{2}].\end{aligned}}}

The first equation follows from the Law of total expectation. The second equation exploits the fact that once we condition on X ( i ) = x {\displaystyle X_{(i)}=x} , it must follow that X ( j ) >= x {\displaystyle X_{(j)}\geq x} . The third equation relies on the memoryless property to replace E [ X ( j ) | X ( j ) >= x ] {\displaystyle E[X_{(j)}|X_{(j)}\geq x]} with E [ X ( j ) ] + x {\displaystyle E[X_{(j)}]+x} .

Sum of two i.i.d. exponential random variables

The sum of two i.i.d. variables corresponds to the Convolution of probability distributions. If X 1 {\displaystyle X_{1}} and X 2 {\displaystyle X_{2}} are independent exponential random variables of i.i.d. observations, with respective rate parameters ? 1 {\displaystyle \lambda _{1}} and ? 2 {\displaystyle \lambda _{2}} , then the probability density of Z = X 1 + X 2 {\displaystyle Z=X_{1}+X_{2}} is given by,

f Z ( z ) = ? 0 z f X 1 ( x 1 ) f X 2 ( z - x 1 ) d x 1 = ? 1 ? 2 exp ( - ? 2 z ) ? 0 z exp ( ? 2 - ? 1 ) x 1 d x 1 = ? 1 ? 2 ? 2 - ? 1 ( exp ( - ? 1 z ) - exp ( - ? 2 z ) ) {\displaystyle {\begin{aligned}f_{Z}(z)=&\int _{0}^{z}f_{X_{1}}(x_{1})f_{X_{2}}(z-x_{1})\,dx_{1}\\=&\lambda _{1}\lambda _{2}\exp(-\lambda _{2}z)\int _{0}^{z}\exp(\lambda _{2}-\lambda _{1})x_{1}\,dx_{1}\\=&{\frac {\lambda _{1}\lambda _{2}}{\lambda _{2}-\lambda _{1}}}\left(\exp(-\lambda _{1}z)-\exp(-\lambda _{2}z)\right)\end{aligned}}}

The cumulative density function of the sum of two i.i.d. exponential random variables then follows as,

F Z ( z ) = P r ( Z <= z ) = ? 0 z f Z ( t ) d t = 1 + ? 1 ? 2 - ? 1 exp ( - ? 2 z ) - ? 2 ? 2 - ? 1 exp ( - ? 1 z ) {\displaystyle {\begin{aligned}F_{Z}(z)=\mathrm {Pr} (Z\leq z)=&\int _{0}^{z}f_{Z}(t)\,dt\\=&1+{\frac {\lambda _{1}}{\lambda _{2}-\lambda _{1}}}\exp(-\lambda _{2}z)-{\frac {\lambda _{2}}{\lambda _{2}-\lambda _{1}}}\exp(-\lambda _{1}z)\end{aligned}}}

pdf of exponential distribution - Dolap.magnetband.co
src: slideplayer.com

Parameter estimation

Below, suppose random variable X is exponentially distributed with rate parameter ?, and x 1 , ... , x n {\displaystyle x_{1},\dotsc ,x_{n}} are n independent samples from X, with sample mean x ¯ {\displaystyle {\bar {x}}} .

Maximum likelihood

The likelihood function for ?, given an independent and identically distributed sample x = (x1, ..., xn) drawn from the variable, is:

L ( ? ) = ? i = 1 n ? exp ( - ? x i ) = ? n exp ( - ? ? i = 1 n x i ) = ? n exp ( - ? n x ¯ ) , {\displaystyle L(\lambda )=\prod _{i=1}^{n}\lambda \exp(-\lambda x_{i})=\lambda ^{n}\exp \left(-\lambda \sum _{i=1}^{n}x_{i}\right)=\lambda ^{n}\exp \left(-\lambda n{\overline {x}}\right),}

where:

x ¯ = 1 n ? i = 1 n x i {\displaystyle {\overline {x}}={1 \over n}\sum _{i=1}^{n}x_{i}}

is the sample mean.

The derivative of the likelihood function's logarithm is:

d d ? ln ( L ( ? ) ) = d d ? ( n ln ( ? ) - ? n x ¯ ) = n ? - n x ¯   { > 0 , 0 < ? < 1 x ¯ , = 0 , ? = 1 x ¯ , < 0 , ? > 1 x ¯ . {\displaystyle {\frac {\mathrm {d} }{\mathrm {d} \lambda }}\ln(L(\lambda ))={\frac {\mathrm {d} }{\mathrm {d} \lambda }}\left(n\ln(\lambda )-\lambda n{\overline {x}}\right)={\frac {n}{\lambda }}-n{\overline {x}}\ {\begin{cases}>0,&0<\lambda <{\frac {1}{\overline {x}}},\\[8pt]=0,&\lambda ={\frac {1}{\overline {x}}},\\[8pt]<0,&\lambda >{\frac {1}{\overline {x}}}.\end{cases}}}

Consequently, the maximum likelihood estimate for the rate parameter is:

? ^ = 1 x ¯ = n ? i x i {\displaystyle {\widehat {\lambda }}={\frac {1}{\overline {x}}}={\frac {n}{\sum _{i}x_{i}}}}

Although this is not an unbiased estimator of ? {\displaystyle \lambda } , x ¯ {\displaystyle {\overline {x}}} is an unbiased MLE estimator of 1 / ? = ? , {\displaystyle 1/\lambda =\beta ,} where ? {\displaystyle \beta } is the scale parameter defined in the 'Alternative parameterization' section above and the distribution mean.

Approximate minimizer of expected squared error

Assume you have at least three samples. If we seek a minimizer of expected mean squared error (see also: Bias-variance tradeoff) that is similar to the maximum likelihood estimate (i.e. a multiplicative correction to the likelihood estimate) we have:

? ^ = ( n - 2 n ) ( 1 x ¯ ) = n - 2 ? i x i {\displaystyle {\widehat {\lambda }}=\left({\frac {n-2}{n}}\right)\left({\frac {1}{\bar {x}}}\right)={\frac {n-2}{\sum _{i}x_{i}}}}

This is derived from the mean and variance of the Inverse-gamma distribution: Inv-Gamma ( n , ? ) {\textstyle {\mbox{Inv-Gamma}}(n,\lambda )} .

Fisher Information

The Fisher information, denoted I ( ? ) {\displaystyle {\mathcal {I}}(\lambda )} , for an estimator of the rate parameter ? {\displaystyle \lambda } is given as:

I ( ? ) = E [ ( ? ? ? log f ( x ; ? ) ) 2 | ? ] = ? ( ? ? ? log f ( x ; ? ) ) 2 f ( x ; ? ) d x {\displaystyle {\mathcal {I}}(\lambda )=\operatorname {E} \left[\left.\left({\frac {\partial }{\partial \lambda }}\log f(x;\lambda )\right)^{2}\right|\lambda \right]=\int \left({\frac {\partial }{\partial \lambda }}\log f(x;\lambda )\right)^{2}f(x;\lambda )\,dx}

Plugging in the distribution and solving gives:

I ( ? ) = ? 0 ? ( ? ? ? log ? e - ? x ) 2 ? e - ? x d x = ? 0 ? ( 1 ? - x ) 2 ? e - ? x d x = ? - 2 {\displaystyle {\mathcal {I}}(\lambda )=\int _{0}^{\infty }\left({\frac {\partial }{\partial \lambda }}\log \lambda e^{-\lambda x}\right)^{2}\lambda e^{-\lambda x}\,dx=\int _{0}^{\infty }\left({\frac {1}{\lambda }}-x\right)^{2}\lambda e^{-\lambda x}\,dx=\lambda ^{-2}} .

This determines the amount of information each independent sample of an exponential distribution carries about the unknown rate parameter ? {\displaystyle \lambda } .

Confidence intervals

The 100(1 - ?)% confidence interval for the rate parameter of an exponential distribution is given by:

2 n ? ^ ? ? 2 , 2 n 2 < 1 ? < 2 n ? ^ ? 1 - ? 2 , 2 n 2 {\displaystyle {\frac {2n}{{\widehat {\lambda }}\chi _{{\frac {\alpha }{2}},2n}^{2}}}<{\frac {1}{\lambda }}<{\frac {2n}{{\widehat {\lambda }}\chi _{1-{\frac {\alpha }{2}},2n}^{2}}}}

which is also equal to:

2 n x ¯ ? ? 2 , 2 n 2 < 1 ? < 2 n x ¯ ? 1 - ? 2 , 2 n 2 {\displaystyle {\frac {2n{\overline {x}}}{\chi _{{\frac {\alpha }{2}},2n}^{2}}}<{\frac {1}{\lambda }}<{\frac {2n{\overline {x}}}{\chi _{1-{\frac {\alpha }{2}},2n}^{2}}}}

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:

? l o w = ? ^ ( 1 - 1.96 n ) {\displaystyle \lambda _{low}={\widehat {\lambda }}\left(1-{\frac {1.96}{\sqrt {n}}}\right)}
? u p p = ? ^ ( 1 + 1.96 n ) {\displaystyle \lambda _{upp}={\widehat {\lambda }}\left(1+{\frac {1.96}{\sqrt {n}}}\right)}

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

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:

G a m m a ( ? ; ? , ? ) = ? ? ? ( ? ) ? ? - 1 exp ( - ? ? ) . {\displaystyle \mathrm {Gamma} (\lambda ;\alpha ,\beta )={\frac {\beta ^{\alpha }}{\Gamma (\alpha )}}\lambda ^{\alpha -1}\exp(-\lambda \beta ).}

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

p ( ? ) ? L ( ? ) × G a m m a ( ? ; ? , ? ) = ? n exp ( - ? n x ¯ ) × ? ? ? ( ? ) ? ? - 1 exp ( - ? ? ) ? ? ( ? + n ) - 1 exp ( - ? ( ? + n x ¯ ) ) . {\displaystyle {\begin{aligned}p(\lambda )&\propto L(\lambda )\times \mathrm {Gamma} (\lambda ;\alpha ,\beta )\\&=\lambda ^{n}\exp \left(-\lambda n{\overline {x}}\right)\times {\frac {\beta ^{\alpha }}{\Gamma (\alpha )}}\lambda ^{\alpha -1}\exp(-\lambda \beta )\\&\propto \lambda ^{(\alpha +n)-1}\exp(-\lambda \left(\beta +n{\overline {x}}\right)).\end{aligned}}}

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 ( ? ) = G a m m a ( ? ; ? + n , ? + n x ¯ ) . {\displaystyle p(\lambda )=\mathrm {Gamma} (\lambda ;\alpha +n,\beta +n{\overline {x}}).}

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:

? + n ? + n x ¯ . {\displaystyle {\frac {\alpha +n}{\beta +n{\overline {x}}}}.}

Exponential distribution cumulative distribution function - YouTube
src: i.ytimg.com


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

T = F - 1 ( U ) {\displaystyle T=F^{-1}(U)}

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

F - 1 ( p ) = - ln ( 1 - p ) ? . {\displaystyle F^{-1}(p)={\frac {-\ln(1-p)}{\lambda }}.}

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

T = - ln ( U ) ? . {\displaystyle T={\frac {-\ln(U)}{\lambda }}.}

Other methods for generating exponential variates are discussed by Knuth and Devroye.

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


pdf of exponential distribution - Dolap.magnetband.co
src: slideplayer.com


Related distributions

  • Exponential distribution is closed under scaling by a positive factor. If X ~ Exp(?) then kX ~ Exp(?/k).
  • If X ~ Exp(1/2) then X ~ ?2
    2
    , i.e. X has a chi-squared distribution with 2 degrees of freedom. Hence:
Exp ( ? ) = 1 2 ? Exp ( 1 2 ) ~ 1 2 ? ? 2 2 => ? i = 1 n Exp ( ? ) ~ 1 2 ? ? 2 n 2 {\displaystyle {\mbox{Exp}}\left(\lambda \right)={\frac {1}{2\lambda }}{\mbox{Exp}}\left({\frac {1}{2}}\right)\sim {\frac {1}{2\lambda }}\chi _{2}^{2}\Rightarrow \sum \limits _{i=1}^{n}{{\mbox{Exp}}\left(\lambda \right)}\sim {\frac {1}{2\lambda }}\chi _{2n}^{2}}
  • If Xi ~ Exp(?i) then min{X1, ..., Xn} ~ Exp(?1+ ... +?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:
lim n -> ? n B e t a ( 1 , n ) = E x p ( 1 ) . {\displaystyle \lim _{n\to \infty }n{\rm {Beta}}(1,n)={\rm {Exp}}(1).}
  • If Xi ~ Exp(?) then the sum X1 + ... + Xk = ? i X i {\displaystyle \sum _{i}X_{i}} ~ Erlang(k, ?) which is just a Gamma(k, ?-1) (in (k, ?) parametrization) or Gamma(k, ?) (in (?,?) parametrization) with an integer shape parameter k.
  • If X ~ Exp(1) then ? - ? log(X) ~ GEV(?, ?, 0).
  • If X ~ Exp(?) then X ~ Gamma(1, ?-1) (in (k, ?) parametrization) or Gamma(1, ?) (in (?, ?) parametrization).
  • 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):
? - ? log ( e - X 1 - e - X ) ~ L o g i s t i c ( ? , ? ) {\displaystyle \mu -\beta \log \left({\tfrac {e^{-X}}{1-e^{-X}}}\right)\sim \mathrm {Logistic} (\mu ,\beta )}
  • If X, Y ~ Exp(1) then (logistic distribution):
? - ? log ( X Y ) ~ L o g i s t i c ( ? , ? ) {\displaystyle \mu -\beta \log \left({\tfrac {X}{Y}}\right)\sim \mathrm {Logistic} (\mu ,\beta )}
  • If X ~ Exp(?) then keX ~ Pareto(k, ?).
  • If X ~ Pareto(1, ?) then log(X) ~ Exp(?).
  • Exponential distribution is a special case of type 3 Pearson distribution.
  • If X ~ Exp(?) then e-X ~ Beta(?, 1).
  • If X ~ Exp(?) then e - X k ~ P o w e r L a w ( k , ? ) {\displaystyle {\tfrac {e^{-X}}{k}}\sim \mathrm {PowerLaw} (k,\lambda )} (power law)
  • If X ~ Exp(?) then X {\displaystyle {\sqrt {X}}} ~ R a y l e i g h ( 1 / 2 ? ) {\displaystyle \mathrm {Rayleigh} \left(1/{\sqrt {2\lambda }}\right)} .
  • If X ~ Exp(?) then X ~ W e i b u l l ( 1 ? , 1 ) {\displaystyle X\sim \mathrm {Weibull} ({\tfrac {1}{\lambda }},1)} (Weibull distribution)
  • If Xi ~ U(0, 1) then
lim n -> ? n min ( X 1 , ... , X n ) ~ Exp ( 1 ) {\displaystyle \lim _{n\to \infty }n\min \left(X_{1},\ldots ,X_{n}\right)\sim {\textrm {Exp}}(1)}
  • If Y|X ~ Poisson(X) where X ~ Exp(?-1) then Y ~ G e o m e t r i c ( 1 1 + ? ) {\displaystyle Y\sim \mathrm {Geometric} ({\tfrac {1}{1+\lambda }})} (geometric distribution)
  • If X ~ Exp(1) and Y ~ ? ( ? , ? ? ) {\displaystyle Y\sim \Gamma (\alpha ,{\tfrac {\beta }{\alpha }})} then X Y ~ K ( ? , ? ) {\displaystyle {\sqrt {XY}}\sim \mathrm {K} (\alpha ,\beta )} (K-distribution)
  • The Hoyt distribution can be obtained from Exponential distribution and Arcsine distribution
  • If X ~ Exp(?) and Y ~ Erlang(n, ?) then:
X Y + 1 ~ P a r e t o ( 1 , n ) {\displaystyle {\frac {X}{Y}}+1\sim \mathrm {Pareto} (1,n)}
  • If X ~ Exp(?) and Y ~ ? ( n , 1 ? ) {\displaystyle Y\sim \Gamma (n,{\tfrac {1}{\lambda }})} then X Y + 1 ~ P a r e t o ( 1 , n ) {\displaystyle {\tfrac {X}{Y}}+1\sim \mathrm {Pareto} (1,n)}
  • If X ~ SkewLogistic(?), then log(1 + e-X) ~ Exp(?).
  • If X ~ Exp(?) and Y = ? - ? log(X?) then Y ~ Gumbel(?, ?).
  • Let X ~ Exp(?X) and Y ~ Exp(?Y) be independent. Then Z = ? X X ? Y Y {\displaystyle Z={\frac {\lambda _{X}X}{\lambda _{Y}Y}}} has probability density function f Z ( z ) = 1 ( z + 1 ) 2 {\displaystyle f_{Z}(z)={\frac {1}{(z+1)^{2}}}} . This can be used to obtain a confidence interval for ? X ? Y {\displaystyle {\frac {\lambda _{X}}{\lambda _{Y}}}} .
  • Gamma mixture: If ? ~ Gamma(scale=k, shape=?) and X ~ Exponential(rate=?) then the marginal distribution of X is Lomax(scale=1/k, shape=?)

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.

StatQuest: Maximum Likelihood Example, The exponential ...
src: i.ytimg.com


Applications of exponential distribution

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.

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.

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 xn+1, conditioned on the observed samples x = (x1, ..., xn) given by

p M L ( x n + 1 | x 1 , ... , x n ) = ( 1 x ¯ ) exp ( - x n + 1 x ¯ ) {\displaystyle p_{\rm {ML}}(x_{n+1}\mid x_{1},\ldots ,x_{n})=\left({\frac {1}{\overline {x}}}\right)\exp \left(-{\frac {x_{n+1}}{\overline {x}}}\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 C N M L ( x n + 1 | x 1 , ... , x n ) = n n + 1 ( x ¯ ) n ( n x ¯ + x n + 1 ) n + 1 , {\displaystyle p_{\rm {CNML}}(x_{n+1}\mid x_{1},\ldots ,x_{n})={\frac {n^{n+1}\left({\overline {x}}\right)^{n}}{\left(n{\overline {x}}+x_{n+1}\right)^{n+1}}},}

which can be considered as

  • (1) a frequentist confidence distribution, obtained from the distribution of the pivotal quantity x n + 1 / x ¯ {\displaystyle {x_{n+1}}/{\overline {x}}} ;
  • (2) a profile predictive likelihood, obtained by eliminating the parameter ? from the joint likelihood of xn+1 and ? by maximization;
  • (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.

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

E ? 0 [ ? ( ? 0 || p M L ) ] = ? ( n ) + 1 n - 1 - log ( n ) E ? 0 [ ? ( ? 0 || p C N M L ) ] = ? ( n ) + 1 n - log ( n ) {\displaystyle {\begin{aligned}{\rm {E}}_{\lambda _{0}}\left[\Delta (\lambda _{0}\mid \mid p_{\rm {ML}})\right]&=\psi (n)+{\frac {1}{n-1}}-\log(n)\\{\rm {E}}_{\lambda _{0}}\left[\Delta (\lambda _{0}\mid \mid p_{\rm {CNML}})\right]&=\psi (n)+{\frac {1}{n}}-\log(n)\end{aligned}}}

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.


pdf of exponential distribution - Dolap.magnetband.co
src: slideplayer.com


See also

  • Dead time - an application of exponential distribution to particle detector analysis.
  • Laplace distribution, or the "double exponential distribution".
  • Relationships among probability distributions
  • Marshall-Olkin exponential distribution

Exponential and Gamma Distribution - YouTube
src: i.ytimg.com


References


Charting The Exponential Distribution Of Home Prices In The US By ...
src: www.zerohedge.com


External links

  • Hazewinkel, Michiel, ed. (2001) [1994], "Exponential distribution", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4 
  • Online calculator of Exponential Distribution

Source of article : Wikipedia