Exponential Distribution
The exponential distribution models the waiting time until an event that happens at a constant average rate λ. Its density is f(x) = λe^(−λx) for x ≥ 0, so the chance of waiting longer than t is e^(−λt). Its mean is 1/λ, its variance is 1/λ², and it is memoryless: time already spent waiting does not change the future wait.
Before this lesson: Cumulative Distribution Functions, Expected Value of a Continuous Random Variable and Poisson Distribution
Waiting for a random event
A help desk gets calls at random moments, at an average rate of 2 per minute. How long until the next call? Short waits are common and long waits are rare, but no wait is impossible. So the density starts high at 0 and decays toward 0.
The decay rate is the event rate λ. When events come faster, the waits shrink, so the mean wait is 1/λ. Two calls per minute means a mean wait of half a minute.
Exponential distribution formulas
X has an exponential distribution with rate \lambda \gt 0, written X ~ Exp(λ), when
f(x) = \lambda e^{-\lambda x} \text{ for } x \ge 0, \qquad F(x) = 1 - e^{-\lambda x} \text{ for } x \ge 0with f(x) = 0 and F(x) = 0 for negative x. The chance of waiting longer than t, the mean and the variance are
P(X \gt t) = e^{-\lambda t}, \qquad E(X) = \dfrac{1}{\lambda}, \qquad \operatorname{Var}(X) = \dfrac{1}{\lambda^2}The memoryless property says that for any s, t ≥ 0,
P(X \gt s + t \mid X \gt s) = P(X \gt t)
Steps
- Find the rate λ. If you are given the mean μ instead, use λ = 1/μ.
- For a right tail, use P(X \gt t) = e^{-\lambda t}.
- For a left tail, use P(X \le t) = 1 - e^{-\lambda t}. For an interval, subtract two right tails.
- For a percentile p, solve 1 − e^(−λx) = p with natural logs.
Exponential distribution examples
Example 1: Length of a phone call (word problem)
Call lengths at a help desk are exponential with a mean of 4 minutes. Find the probability that a call lasts at most 2 minutes, more than 6 minutes, and between 2 and 6 minutes.
\lambda = \dfrac{1}{4} = 0.25The rate is 1 divided by the mean.
P(X \le 2) = 1 - e^{-0.25(2)}Use the CDF.
P(X \le 2) = 1 - e^{-0.5} \approx 1 - 0.6065 = 0.3935Multiply in the exponent and evaluate.
P(X \gt 6) = e^{-0.25(6)} = e^{-1.5} \approx 0.2231Use the right-tail formula.
P(2 \le X \le 6) = e^{-0.5} - e^{-1.5}Subtract the tail past 6 from the tail past 2.
P(2 \le X \le 6) \approx 0.6065 - 0.2231 = 0.3834
Evaluate and subtract.
Answer: about 0.3935, 0.2231 and 0.3834. The three pieces cover every call, and they add to 1.
Example 2: Deriving the mean and variance
Show that X ~ Exp(λ) has mean 1/λ and variance 1/λ².
E(X) = \int_0^\infty x \lambda e^{-\lambda x}\,dxMultiply x by the density and integrate (see improper integrals).
E(X) = \Big[-x e^{-\lambda x}\Big]_0^\infty + \int_0^\infty e^{-\lambda x}\,dxUse integration by parts with u = x and dv = λe^(−λx) dx.
E(X) = 0 + \Big[-\dfrac{1}{\lambda} e^{-\lambda x}\Big]_0^\infty = \dfrac{1}{\lambda}The boundary term is 0 because x e^(−λx) goes to 0; then integrate.
E(X^2) = \Big[-x^2 e^{-\lambda x}\Big]_0^\infty + \int_0^\infty 2x e^{-\lambda x}\,dxIntegrate x²λe^(−λx) by parts with u = x².
E(X^2) = \dfrac{2}{\lambda} \int_0^\infty x \lambda e^{-\lambda x}\,dx = \dfrac{2}{\lambda} \cdot \dfrac{1}{\lambda} = \dfrac{2}{\lambda^2}The boundary term is 0, and the integral left is E(X).
\operatorname{Var}(X) = \dfrac{2}{\lambda^2} - \dfrac{1}{\lambda^2} = \dfrac{1}{\lambda^2}Subtract the square of the mean.
Answer: E(X) = 1/λ and Var(X) = 1/λ², so the standard deviation is also 1/λ.
Example 3: A used light bulb (memoryless property)
An LED bulb’s lifetime is exponential with a mean of 20,000 hours. The bulb has already lasted 5,000 hours. Find the probability that it lasts more than 15,000 hours in all, and compare it with the chance that a new bulb lasts more than 10,000 hours.
\lambda = \dfrac{1}{20{,}000}The rate is 1 divided by the mean.
P(X \gt 15{,}000 \mid X \gt 5{,}000) = \dfrac{P(X \gt 15{,}000)}{P(X \gt 5{,}000)}Use the definition of conditional probability; the first event lies inside the second.
P(X \gt 15{,}000 \mid X \gt 5{,}000) = \dfrac{e^{-0.75}}{e^{-0.25}}Use the right-tail formula twice: 15,000/20,000 = 0.75 and 5,000/20,000 = 0.25.
P(X \gt 15{,}000 \mid X \gt 5{,}000) = e^{-0.5} \approx 0.6065Subtract the exponents (see exponent rules).
P(X \gt 10{,}000) = e^{-10{,}000/20{,}000} = e^{-0.5} \approx 0.6065A new bulb lasting 10,000 hours.
Answer: both probabilities are about 0.6065. The used bulb is as good as new, which is exactly what memoryless means.
Example 4: Median and 90th percentile
For the call lengths in Example 1 (λ = 0.25), find the median call length and the 90th percentile.
1 - e^{-0.25m} = 0.5The median m has F(m) = 0.5.
e^{-0.25m} = 0.5Subtract 1 from both sides and multiply by −1.
-0.25m = \ln 0.5
Take the natural log of both sides (see solving exponential equations).
m = \dfrac{\ln 0.5}{-0.25} = 4\ln 2 \approx 2.77Divide both sides by −0.25.
1 - e^{-0.25x} = 0.9The 90th percentile has F(x) = 0.9.
e^{-0.25x} = 0.1Subtract 1 from both sides and multiply by −1.
x = \dfrac{\ln 0.1}{-0.25} = 4\ln 10 \approx 9.21Take the natural log of both sides and divide by −0.25.
Answer: the median is about 2.77 minutes and the 90th percentile is about 9.21 minutes. The median is below the mean of 4 because the long right tail pulls the mean up.
Example 5: Finding the rate from data (word problem)
A warranty study finds that 30% of a brand’s water heaters last more than 10 years. Assume lifetimes are exponential. Find λ, the mean lifetime and the probability that a heater fails within 3 years.
e^{-10\lambda} = 0.3Set the right tail at 10 years equal to 0.3.
-10\lambda = \ln 0.3
Take the natural log of both sides.
\lambda = \dfrac{\ln 0.3}{-10} \approx 0.1204Divide both sides by −10.
E(X) = \dfrac{1}{\lambda} \approx 8.31The mean is 1/λ.
e^{-3\lambda} = \left(e^{-10\lambda}\right)^{0.3} = 0.3^{0.3} \approx 0.6968Rewrite with a power of a power, since 3λ = 0.3 × 10λ.
P(X \le 3) = 1 - e^{-3\lambda} \approx 1 - 0.6968 = 0.3032Use the CDF.
Answer: λ ≈ 0.1204 per year, the mean lifetime is about 8.31 years, and about 30.3% of heaters fail within 3 years.
Common mistakes
| Mistake | Example of the error | Fix |
|---|---|---|
| Using the mean as the rate | Writing e^(−4 × 2) for P(X more than 2) when the mean is 4 | The rate is λ = 1/4, so the right tail is e^(−0.5). |
| Mixing up the two tails | P(X ≤ 2) = e^(−0.5) ≈ 0.6065 in Example 1 | e^(−λt) is the right tail; P(X ≤ 2) = 1 − e^(−0.5) ≈ 0.3935. |
| Using the mean as the median | Median call = 4 minutes in Example 1 | Solve F(m) = 0.5: m = ln 2/λ ≈ 2.77. |
| Ignoring the memoryless property | Answering e^(−0.75) in Example 3 | Given survival to time s, only the extra time counts: e^(−0.5). |
| Forgetting to square in the variance | Var(X) = 1/λ = 4 when λ = 0.25 | Var(X) = 1/λ² = 16; the standard deviation is 4. |
Related ideas
The geometric distribution is the discrete version
The geometric distribution counts trials until the first success, and it is memoryless too. The exponential distribution is the only memoryless continuous distribution, just as the geometric is the only memoryless one on the counting numbers.
Poisson counts and exponential waits
If events arrive as a Poisson process with rate λ, the number in time t is Poisson with mean λt. Waiting longer than t for the first event means zero events by time t, so P(X > t) = e^(−λt). The next lesson, Poisson Process, builds on this link.
Rate or scale?
Some books and software use the scale β = 1/λ, which is the mean, and write f(x) = (1/β)e^(−x/β). Check which one a calculator or program expects before you enter a number.
Practice problems
- X ~ Exp(0.5). Find P(X ≤ 2).
- X is exponential with mean 5. Find P(X \gt 5).
- X ~ Exp(2). Find the mean, variance and standard deviation.
- X ~ Exp(0.1). Find P(10 ≤ X ≤ 20).
- Wait times at a coffee shop are exponential with a mean of 10 minutes. Find the median wait.
- A battery’s lifetime is exponential with a mean of 8 years. It has lasted 3 years. Find the probability that it lasts more than 5 more years.
- X is exponential and P(X \gt 4) = 0.5. Find λ.
- X ~ Exp(3). Write the CDF and find F(0.5).
- X ~ Exp(0.2). Find the 95th percentile.
- Show that the probability of waiting longer than the mean is the same for every λ.
Show answers
1.
P(X \le 2) = 1 - e^{-0.5(2)} = 1 - e^{-1}Use the CDF.
P(X \le 2) \approx 1 - 0.3679 = 0.6321
Evaluate and subtract.
Answer: about 0.6321
2.
\lambda = \dfrac{1}{5} = 0.2The rate is 1 divided by the mean.
P(X \gt 5) = e^{-0.2(5)} = e^{-1} \approx 0.3679Use the right-tail formula.
Answer: about 0.3679
3.
E(X) = \dfrac{1}{2} = 0.5The mean is 1/λ.
\operatorname{Var}(X) = \dfrac{1}{2^2} = 0.25The variance is 1/λ².
\sigma = \sqrt{0.25} = 0.5Take the square root.
Answer: mean 0.5, variance 0.25, standard deviation 0.5
4.
P(10 \le X \le 20) = e^{-0.1(10)} - e^{-0.1(20)} = e^{-1} - e^{-2}Subtract the tail past 20 from the tail past 10.
P(10 \le X \le 20) \approx 0.36788 - 0.13534 \approx 0.2325
Evaluate and subtract.
Answer: about 0.2325
5.
\lambda = \dfrac{1}{10} = 0.1The rate is 1 divided by the mean.
e^{-0.1m} = 0.5Half of the waits are longer than the median.
m = \dfrac{\ln 0.5}{-0.1} = 10\ln 2 \approx 6.93Take the natural log of both sides and divide by −0.1.
Answer: about 6.93 minutes
6.
P(X \gt 8 \mid X \gt 3) = P(X \gt 5)
Memoryless property with s = 3 and t = 5.
P(X \gt 5) = e^{-5/8} = e^{-0.625} \approx 0.5353Use the right-tail formula with λ = 1/8.
Answer: about 0.5353
7.
e^{-4\lambda} = 0.5Write the right tail at 4.
-4\lambda = \ln 0.5
Take the natural log of both sides.
\lambda = \dfrac{\ln 0.5}{-4} = \dfrac{\ln 2}{4} \approx 0.1733Divide both sides by −4.
Answer: about 0.1733
8.
F(x) = 1 - e^{-3x} \text{ for } x \ge 0CDF with λ = 3 (and F(x) = 0 for negative x).
F(0.5) = 1 - e^{-1.5} \approx 1 - 0.2231 = 0.7769Substitute x = 0.5 and evaluate.
Answer: F(0.5) ≈ 0.7769
9.
1 - e^{-0.2x} = 0.95The 95th percentile has F(x) = 0.95.
e^{-0.2x} = 0.05Subtract 1 from both sides and multiply by −1.
x = \dfrac{\ln 0.05}{-0.2} = 5\ln 20 \approx 14.98Take the natural log of both sides and divide by −0.2.
Answer: about 14.98
10.
P\left(X \gt \dfrac{1}{\lambda}\right) = e^{-\lambda \cdot \frac{1}{\lambda}}Use the right-tail formula at the mean 1/λ.
P\left(X \gt \dfrac{1}{\lambda}\right) = e^{-1} \approx 0.3679The λ cancels.
Answer: e^(−1) ≈ 0.3679 for every λ, so only about 37% of waits are longer than the mean.
Exponential distribution FAQ
What is the exponential distribution used for?
It models the waiting time until an event that happens at random at a constant rate. Examples are the time between calls or arrivals, the time until a radioactive atom decays, and the lifetime of a part that doesn’t wear out.
What does memoryless mean?
It means the time you have already waited does not change the distribution of the time you still have to wait. In symbols, P(X \gt s + t \mid X \gt s) = P(X \gt t).
How are the exponential and Poisson distributions related?
They describe the same random process. The Poisson distribution counts the events in a fixed time, and the exponential distribution measures the time between events. Both use the same rate λ.
Is λ the mean of the exponential distribution?
No. λ is the rate, the average number of events per unit of time, and the mean wait is 1/λ. The standard deviation is also 1/λ.
Summary
- X ~ Exp(λ) has density λe^(−λx) for x ≥ 0 and CDF 1 − e^(−λx).
- The right tail is P(X \gt t) = e^{-\lambda t}.
- The mean and the standard deviation are both 1/λ, and the variance is 1/λ².
- The median is ln 2/λ, which is less than the mean.
- The distribution is memoryless: a used item is as good as new.
Previous lesson: Uniform Distribution
Next lesson: Poisson Process
Back to the Probability Theory Index