Unit 10, lesson 64

Exponential Distributions

How the exponential distribution models a waiting time, how its rate and scale differ, and how the survival function, memorylessness and the natural logarithm give tail probabilities and quantiles.

  • Video 64
  • Exponential Waiting Times

A uniform waiting time has a last possible moment, but many waits have no natural cutoff. A model for such a wait can make long waits unlikely without ruling out any finite wait. The exponential distribution is one of the simplest models of this kind, with one positive parameter called the rate. This lesson finds its tail probabilities, mean and quantiles, separates the rate from the scale, and explains the memoryless property together with the situations it does not fit.

Key terms

Exponential distribution

Definition Let λ>0\lambda > 0. A random variable TT has the exponential distribution with rate λ\lambda, written T∼Exp⁡(λ)T \sim \operatorname{Exp}(\lambda), if it has the density

f(t)={λe−λt,t≥0,0,t<0.f(t) = \begin{cases} \lambda e^{-\lambda t}, & t \ge 0, \\ 0, & t < 0. \end{cases}

Here e≈2.718e \approx 2.718 is the base of the natural exponential function, and e−λte^{-\lambda t} falls from 11 at t=0t = 0 toward 00 as tt grows. The support is [0,∞)[0, \infty), and the density has total area 11, since

∫0∞λe−λt dt=[−e−λt]0∞=0−(−1)=1.\begin{aligned} &\int_0^{\infty} \lambda e^{-\lambda t}\,dt \\[0.4em] &\quad = \Bigl[-e^{-\lambda t}\Bigr]_0^{\infty} \\[0.4em] &\quad = 0 - (-1) = 1. \end{aligned}

In plain words An exponential wait is never negative, and every interval of positive length inside [0,∞)[0, \infty) has positive probability, however far out it lies. The density is highest at 00 and decreases, so of two intervals of the same positive length inside [0,∞)[0, \infty), the one closer to 00 carries more probability. A density value is not a probability. Each single time, including 00, has probability 00, and the height λ\lambda at t=0t = 0 is larger than 11 whenever λ>1\lambda > 1.

Example A constructed model measures a waiting time TT in minutes with rate λ=0.5\lambda = 0.5 per minute, so f(t)=0.5 e−0.5tf(t) = 0.5\,e^{-0.5t} for t≥0t \ge 0. The probability that the wait is over within 33 minutes is

P(T≤3)=∫030.5 e−0.5t dt=1−e−1.5≈0.7769.\begin{aligned} &P(T \le 3) \\[0.4em] &\quad = \int_0^{3} 0.5\,e^{-0.5t}\,dt \\[0.4em] &\quad = 1 - e^{-1.5} \approx 0.7769. \end{aligned}

A model with rate 33 per minute has density 33 per minute at t=0t = 0. That height is larger than 11 and still valid, because only areas under the density are probabilities.

Rate and scale parameter

Definition The parameter λ>0\lambda > 0 of Exp⁡(λ)\operatorname{Exp}(\lambda) is the rate. It is measured in reciprocal time units, such as per minute, so the exponent λt\lambda t has no units. The scale parameter is θ=1/λ\theta = 1/\lambda, measured in time units, and in terms of it the density is f(t)=θ−1e−t/θf(t) = \theta^{-1} e^{-t/\theta} for t≥0t \ge 0. The mean and variance are

E[T]=1λ=θ,Var⁡(T)=1λ2=θ2,\begin{gathered} E[T] = \frac{1}{\lambda} = \theta, \\[0.4em] \operatorname{Var}(T) = \frac{1}{\lambda^{2}} = \theta^{2}, \end{gathered}

so SD⁡(T)=1/λ\operatorname{SD}(T) = 1/\lambda as well. For the mean, the product rule shows that −(t+1/λ)e−λt-(t + 1/\lambda)e^{-\lambda t} has derivative λte−λt\lambda t e^{-\lambda t}, and this expression tends to 00 as t→∞t \to \infty. Hence

E[T]=∫0∞tλe−λt dt=[−(t+1λ)e−λt]0∞=0−(−1λ)=1λ.\begin{aligned} E[T] &= \int_0^{\infty} t \lambda e^{-\lambda t}\,dt \\[0.4em] &= \Bigl[-\bigl(t + \tfrac{1}{\lambda}\bigr)e^{-\lambda t}\Bigr]_0^{\infty} \\[0.4em] &= 0 - \Bigl(-\frac{1}{\lambda}\Bigr) = \frac{1}{\lambda}. \end{aligned}

In the same way −(t2+2t/λ+2/λ2)e−λt-(t^{2} + 2t/\lambda + 2/\lambda^{2})e^{-\lambda t} is an antiderivative of λt2e−λt\lambda t^{2} e^{-\lambda t}, which gives E[T2]=2/λ2E[T^{2}] = 2/\lambda^{2} and Var⁡(T)=2/λ2−1/λ2=1/λ2\operatorname{Var}(T) = 2/\lambda^{2} - 1/\lambda^{2} = 1/\lambda^{2}. A positive rate is required. With λ=0\lambda = 0 the formula gives the zero function, whose total area is 00, and a negative λ\lambda would give negative density values.

In plain words The rate and the scale carry the same information in reciprocal form. A larger rate means shorter waits on average, and a larger scale means longer ones. The mean wait equals the scale, and so does the standard deviation. The name rate comes from counting models. If the number of events in the time interval (0,t](0, t] is Pois⁡(λt)\operatorname{Pois}(\lambda t) for every t>0t > 0, as in the constant-rate model of Poisson Distributions, then the first event comes after time tt exactly when no event falls in (0,t](0, t], which has probability e−λte^{-\lambda t}. So the wait for the first event is Exp⁡(λ)\operatorname{Exp}(\lambda), with the same rate as the count. The rate is an average, not a promise of a fixed number of events in every minute, and a single wait is not forced to equal the mean. Books and software differ on whether “exponential with parameter 22” means a rate or a scale, so state which one is meant before substituting numbers.

Example For the rate 0.50.5 per minute, the scale is θ=2\theta = 2 minutes. The mean wait is 22 minutes, the variance is 44 minutes squared and the standard deviation is 22 minutes. Reading the same number 0.50.5 as a scale describes a different model, with scale 0.50.5 minutes, rate 22 per minute and a mean wait of 0.50.5 minutes, a quarter of the first mean.

Survival function

Definition The survival function of a random variable TT is S(t)=P(T>t)=1−F(t)S(t) = P(T > t) = 1 - F(t), where FF is the CDF of TT. For T∼Exp⁡(λ)T \sim \operatorname{Exp}(\lambda) and t≥0t \ge 0, integrating the density gives

S(t)=∫t∞λe−λu du=e−λt,S(t) = \int_t^{\infty} \lambda e^{-\lambda u}\,du = e^{-\lambda t},

while S(t)=1S(t) = 1 for t<0t < 0. So F(t)=1−e−λtF(t) = 1 - e^{-\lambda t} for t≥0t \ge 0 and F(t)=0F(t) = 0 for t<0t < 0. For 0≤a<b0 \le a < b,

P(a<T≤b)=S(a)−S(b)=e−λa−e−λb,\begin{aligned} &P(a < T \le b) \\[0.4em] &\quad = S(a) - S(b) \\[0.4em] &\quad = e^{-\lambda a} - e^{-\lambda b}, \end{aligned}

and because TT has a density, including or excluding either endpoint does not change the probability.

In plain words The survival function gives the probability that the wait is still going on at time tt. For the exponential it is a single exponential factor, so tail and interval probabilities need no new integral once the formula is known. The formula e−λte^{-\lambda t} is used only for t≥0t \ge 0. A negative threshold is certainly exceeded, so S(t)=1S(t) = 1 and F(t)=0F(t) = 0 there. Continuing 1−e−λt1 - e^{-\lambda t} to negative tt would give negative values, which no probability can have.

Example In the model with rate 0.50.5 per minute, the probability of waiting more than 33 minutes is S(3)=e−1.5≈0.2231S(3) = e^{-1.5} \approx 0.2231, and the probability of being done by 33 minutes is F(3)≈0.7769F(3) \approx 0.7769. These two events split all possible waits, so their probabilities add to 11. A wait between 11 and 33 minutes has probability

P(1<T<3)=e−0.5−e−1.5≈0.6065−0.2231≈0.3834.\begin{aligned} &P(1 < T < 3) \\[0.4em] &\quad = e^{-0.5} - e^{-1.5} \\[0.4em] &\quad \approx 0.6065 - 0.2231 \\[0.4em] &\quad \approx 0.3834. \end{aligned}

At t=−1t = -1 the CDF is 00, while the expression 1−e0.5≈−0.64871 - e^{0.5} \approx -0.6487 is negative.

Memorylessness

Definition A random variable TT with values in [0,∞)[0, \infty) is memoryless if

P(T>s+t∣T>s)=P(T>t)\begin{aligned} &P(T > s + t \mid T > s) \\[0.4em] &\quad = P(T > t) \end{aligned}

for all s,t≥0s, t \ge 0 with P(T>s)>0P(T > s) > 0. For T∼Exp⁡(λ)T \sim \operatorname{Exp}(\lambda) every probability P(T>s)=e−λsP(T > s) = e^{-\lambda s} is positive, and for t≥0t \ge 0 the event {T>s+t}\{T > s + t\} lies inside {T>s}\{T > s\}, so

P(T>s+t∣T>s)=e−λ(s+t)e−λs=e−λt.\begin{aligned} &P(T > s + t \mid T > s) \\[0.4em] &\quad = \frac{e^{-\lambda (s + t)}}{e^{-\lambda s}} = e^{-\lambda t}. \end{aligned}

So every exponential distribution is memoryless. Among random variables with values in [0,∞)[0, \infty) that have a density, the exponential distributions are the only memoryless ones. For waits counted in whole trials, the geometric distribution has the same property when ss and tt are whole numbers.

In plain words Given that the wait has already lasted ss, the remaining wait T−sT - s has the same Exp⁡(λ)\operatorname{Exp}(\lambda) distribution as a fresh wait. Within the model, the time already spent does not change the distribution of the time still to come. This is a property of the model, not a law about real waits. A task with a fixed deadline, or a part that wears out with age, has an outlook that changes as time passes, and such waits may need a different model.

Example In the model with rate 0.50.5 per minute, suppose the wait has already lasted 22 minutes. The probability of more than 33 further minutes is

P(T>5∣T>2)=e−2.5e−1=e−1.5≈0.2231,\begin{aligned} &P(T > 5 \mid T > 2) \\[0.4em] &\quad = \frac{e^{-2.5}}{e^{-1}} \\[0.4em] &\quad = e^{-1.5} \approx 0.2231, \end{aligned}

the same as P(T>3)P(T > 3) for a fresh wait. The expected remaining wait is still 22 minutes, so the expected total wait given T>2T > 2 is 44 minutes. A uniform wait behaves differently. If T∼Uniform⁡(0,10)T \sim \operatorname{Uniform}(0, 10) in minutes, then P(T>3)=0.7P(T > 3) = 0.7, but after 55 minutes of waiting

P(T>8∣T>5)=0.20.5=0.4,\begin{aligned} &P(T > 8 \mid T > 5) \\[0.4em] &\quad = \frac{0.2}{0.5} = 0.4, \end{aligned}

because the end of the support at 1010 minutes is getting closer.

Natural logarithm and exponential quantile

Definition For y>0y > 0, the natural logarithm ln⁡y\ln y is the unique real number xx with ex=ye^{x} = y. Hence ln⁡(ex)=x\ln(e^{x}) = x for every real xx and eln⁡y=ye^{\ln y} = y for every y>0y > 0. The logarithm is increasing, ln⁡1=0\ln 1 = 0, and ln⁡y<0\ln y < 0 when 0<y<10 < y < 1. For 0<p<10 < p < 1, the pp-quantile of Exp⁡(λ)\operatorname{Exp}(\lambda) is the unique time Q(p)Q(p) with F(Q(p))=pF(Q(p)) = p. It exists and is unique because FF is continuous and strictly increasing on [0,∞)[0, \infty), starting at 00 and approaching 11. Solving 1−e−λt=p1 - e^{-\lambda t} = p gives e−λt=1−pe^{-\lambda t} = 1 - p, then −λt=ln⁡(1−p)-\lambda t = \ln(1 - p), so

Q(p)=−ln⁡(1−p)λ=1λln⁡11−p.\begin{aligned} Q(p) &= -\frac{\ln(1 - p)}{\lambda} \\[0.4em] &= \frac{1}{\lambda}\ln\frac{1}{1 - p}. \end{aligned}

The median is Q(0.5)=(ln⁡2)/λQ(0.5) = (\ln 2)/\lambda.

In plain words The logarithm undoes the exponential, so it recovers the exponent −λt-\lambda t from the tail probability e−λte^{-\lambda t}, and dividing by −λ-\lambda gives the time. The remaining tail 1−p1 - p lies strictly between 00 and 11, its logarithm is negative, and the minus sign in the formula makes the time positive. A negative quantile signals a sign error. The logarithm acts on a probability, which has no units, and dividing by the rate returns time units. The median is below the mean, because ln⁡2≈0.693\ln 2 \approx 0.693 is less than 11, and the long right tail pulls the mean upward.

Example For the rate 0.50.5 per minute, the 0.90.9-quantile is the time by which the wait is over with probability 0.90.9. It solves e−0.5t=0.1e^{-0.5t} = 0.1, so

Q(0.9)=ln⁡100.5=2ln⁡10≈4.605\begin{aligned} Q(0.9) &= \frac{\ln 10}{0.5} = 2\ln 10 \\[0.4em] &\approx 4.605 \end{aligned}

minutes. The median is 2ln⁡2≈1.3862\ln 2 \approx 1.386 minutes, below the mean of 22 minutes. Every exponential model gives P(T≤1/λ)=1−e−1≈0.632P(T \le 1/\lambda) = 1 - e^{-1} \approx 0.632, so about 6363 percent of the probability lies at or below the mean, whatever the rate.

Check yourself

  1. A constructed model says a waiting time TT in minutes is exponential with mean 44 minutes. Find the rate, the probability of waiting more than 66 minutes, and the median.
Show the answer

The rate is the reciprocal of the mean, λ=1/4=0.25\lambda = 1/4 = 0.25 per minute, and the scale is 44 minutes. Then

P(T>6)=e−6/4=e−1.5≈0.2231.\begin{aligned} P(T > 6) &= e^{-6/4} = e^{-1.5} \\[0.4em] &\approx 0.2231. \end{aligned}

The median is Q(0.5)=(ln⁡2)/0.25=4ln⁡2≈2.773Q(0.5) = (\ln 2)/0.25 = 4\ln 2 \approx 2.773 minutes, below the mean of 44 minutes.

  1. In the same model, the wait has already lasted 1010 minutes. Find the probability that it lasts at least 22 more minutes. Why is P(T>12)≈0.0498P(T > 12) \approx 0.0498 not the answer?
Show the answer

The question asks for P(T≥12∣T>10)P(T \ge 12 \mid T > 10). Since TT has a density, this equals P(T>12∣T>10)P(T > 12 \mid T > 10), and memorylessness gives

P(T>12∣T>10)=e−0.25⋅2=e−0.5≈0.6065.\begin{aligned} &P(T > 12 \mid T > 10) \\[0.4em] &\quad = e^{-0.25 \cdot 2} = e^{-0.5} \\[0.4em] &\quad \approx 0.6065. \end{aligned}

The value P(T>12)=e−3≈0.0498P(T > 12) = e^{-3} \approx 0.0498 is the probability, judged at the start, that the total wait exceeds 1212 minutes. It ignores the information that 1010 minutes have already passed. The answer 0.60650.6065 holds under the exponential model, not for every real wait that has lasted ten minutes.

  1. A constructed report says a repair time TT, in hours, is “exponential with parameter 22” and does not say whether 22 is a rate or a scale. Find the mean and P(T>1)P(T > 1) under each reading.
Show the answer

Read as a rate, λ=2\lambda = 2 per hour, the mean is 0.50.5 hours and P(T>1)=e−2≈0.1353P(T > 1) = e^{-2} \approx 0.1353. Read as a scale, θ=2\theta = 2 hours, the rate is λ=0.5\lambda = 0.5 per hour, the mean is 22 hours and P(T>1)=e−0.5≈0.6065P(T > 1) = e^{-0.5} \approx 0.6065. The means differ by a factor of 44 and the tail probabilities by a factor of about 4.54.5, so the convention has to be settled before any number is used.

How this lesson connects

It also uses derivatives of exponential functions and the product rule.