Search

Search papers and lessons

Exponential Distribution

Level 2 · 9 min read

The exponential distribution models the wait until the next event when events arrive at a steady rate with no memory of how long you have already waited.

On this page

  • Colour = topic mix
  • Calculus
  • Probability
  • Discrete math
  • Sign in to see your progress

TL;DR

The exponential distribution describes how long you wait for the next event when events happen at a constant average rate, such as calls arriving at a help desk or radioactive atoms decaying. It has one parameter, the rate λ\lambda, and its mean wait is 1/λ1/\lambda. Its defining feature is that it forgets the past: the time already spent waiting tells you nothing about the time still to come.

Where you'll see it: in queueing models of call centres and servers, in reliability models of components that fail at random, and in the waiting-time part of Poisson processes.

Intuition

Waiting for the next bus

Suppose buses on a route come at random, on average one every 15 minutes, and they do not run to a timetable. You arrive at the stop. How long until the next bus? It could be a minute or half an hour, and the average is 15 minutes. The exponential distribution is the model for exactly this kind of wait: time until the next event when events are independent and arrive at a steady average rate.

Two things follow from that picture. Short waits are the most likely outcome, so the density is highest at zero and falls away. And the wait is memoryless. If you have already waited 10 minutes, the bus is not "due". Your remaining wait has the same distribution it had when you first arrived. A coin that has landed heads five times is no more likely to land tails next, and a bus that is late is no closer to arriving.

The rate λ\lambda sets the scale. Doubling the rate of buses halves the average wait. The shape stays the same; only the time axis is stretched.

01234567800.20.40.60.81waiting time tdensity f(t)
  • λ = 1
  • λ = 0.5
Each curve starts at its rate λ and decays. A smaller rate means a flatter curve and longer waits on average.

The math

Definition: Exponential distribution

A continuous random variable T≥0T \geq 0 is exponential with rate λ>0\lambda \gt 0, written T∼Exp(λ)T \sim \mathrm{Exp}(\lambda), if its density is

f(t)=λe−λt,t≥0,f(t) = \lambda e^{-\lambda t}, \qquad t \geq 0,

and f(t)=0f(t) = 0 for t<0t \lt 0. Here tt is the waiting time and ee is Euler's number, the base of the Exponential Function.

The density is a probability density, so its area must be 1. Check it: ∫0∞λe−λt dt=[−e−λt]0∞=0−(−1)=1\int_0^\infty \lambda e^{-\lambda t}\,dt = \left[-e^{-\lambda t}\right]_0^\infty = 0 - (-1) = 1.

The cumulative distribution

The probability that the wait is at most tt is the integral of the density from 0 to tt:

F(t)=P(T≤t)=1−e−λt,t≥0.F(t) = P(T \leq t) = 1 - e^{-\lambda t}, \qquad t \geq 0.

The probability that the wait is longer than tt is therefore P(T>t)=e−λtP(T \gt t) = e^{-\lambda t}. This is the form you will use most often, so it is worth remembering.

Mean and variance

The mean (Expected Value) is the integral of tt times the density. Use integration by parts with u=tu = t and dv=λe−λt dtdv = \lambda e^{-\lambda t}\,dt:

E[T]=∫0∞t λe−λt dt=[−te−λt]0∞+∫0∞e−λt dt=0+1λ=1λ.\mathbb{E}[T] = \int_0^\infty t\,\lambda e^{-\lambda t}\,dt = \left[-t e^{-\lambda t}\right]_0^\infty + \int_0^\infty e^{-\lambda t}\,dt = 0 + \frac{1}{\lambda} = \frac{1}{\lambda}.

The second moment works the same way and gives E[T2]=2/λ2\mathbb{E}[T^2] = 2/\lambda^2. So

Var⁡(T)=2λ2−(1λ)2=1λ2.\operatorname{Var}(T) = \frac{2}{\lambda^2} - \left(\frac{1}{\lambda}\right)^2 = \frac{1}{\lambda^2}.

The standard deviation equals the mean, a useful sanity check: an exponential wait is always about as variable as it is long.

The median

The median mm solves F(m)=12F(m) = \tfrac{1}{2}, so 1−e−λm=121 - e^{-\lambda m} = \tfrac{1}{2}, which gives m=ln⁡2/λ≈0.693/λm = \ln 2 / \lambda \approx 0.693/\lambda. The median is smaller than the mean. That is the long right tail at work: a few very long waits pull the average up.

Memorylessness

For s,t≥0s, t \geq 0:

P(T>s+t∣T>s)=P(T>s+t)P(T>s)=e−λ(s+t)e−λs=e−λt=P(T>t).P(T \gt s + t \mid T \gt s) = \frac{P(T \gt s + t)}{P(T \gt s)} = \frac{e^{-\lambda (s+t)}}{e^{-\lambda s}} = e^{-\lambda t} = P(T \gt t).

Having already waited ss changes nothing about the remaining wait. The exponential is the only continuous distribution with this property. This is why it is the default model for events with no ageing or wear, and why it is a poor model for things that do wear out, such as a car part near the end of its life.

Worked examples

Example
A tiny case you can do by hand

A machine fails at random with rate λ=0.5\lambda = 0.5 per hour.

  1. Mean time to failure: E[T]=1/0.5=2\mathbb{E}[T] = 1/0.5 = 2 hours.
  2. Median time to failure: ln⁡2/0.5≈1.386\ln 2 / 0.5 \approx 1.386 hours. Half the machines fail before about 83 minutes.
  3. Probability it fails within 2 hours: F(2)=1−e−0.5⋅2=1−e−1≈1−0.36788=0.63212F(2) = 1 - e^{-0.5 \cdot 2} = 1 - e^{-1} \approx 1 - 0.36788 = 0.63212.
  4. Probability it survives beyond 3 hours: e−0.5⋅3=e−1.5≈0.22313e^{-0.5 \cdot 3} = e^{-1.5} \approx 0.22313.

Interpretation: the mean is 2 hours, but the median is shorter, and about 22 percent of machines are still running at 3 hours. The long tail is visible in step 4.

Example
Help-desk calls

Calls reach a help desk at an average rate of 4 per hour, so λ=4/60=1/15\lambda = 4/60 = 1/15 per minute and the mean gap between calls is 15 minutes.

  1. Probability the next call takes more than 10 minutes: e−10/15=e−2/3≈0.51342e^{-10/15} = e^{-2/3} \approx 0.51342.
  2. Probability the next call arrives between 5 and 20 minutes from now: F(20)−F(5)=e−5/15−e−20/15=e−1/3−e−4/3≈0.71653−0.26360=0.45293F(20) - F(5) = e^{-5/15} - e^{-20/15} = e^{-1/3} - e^{-4/3} \approx 0.71653 - 0.26360 = 0.45293.
  3. You have already waited 10 minutes without a call. Probability of waiting at least 15 more minutes: P(T>25∣T>10)=e−25/15/e−10/15=e−15/15=e−1≈0.36788P(T \gt 25 \mid T \gt 10) = e^{-25/15} / e^{-10/15} = e^{-15/15} = e^{-1} \approx 0.36788. This equals the unconditional P(T>15)=e−1P(T \gt 15) = e^{-1}, which is memorylessness in numbers.

Interpretation: the desk manager should plan staffing from the rate, not from how long the queue has been quiet. A quiet 10 minutes says nothing about the next gap.

Tradeoffs and failure modes

SituationProblemBetter choice
Events arrive at a steady rate, independentlyNone. The model fits.Exponential waits
Parts that wear out, ageing mattersMemoryless assumption is false; failure risk rises with ageWeibull distribution
Several stages each take an exponential timeSum of exponentials is not exponentialGamma distribution
Rate changes through the dayOne λ\lambda misses the peaksPiecewise or time-varying rate
Waits are heavy-tailed (rare huge delays)Exponential tails die too fastHeavy-tailed distributions such as the Pareto

The most common mistake is to fit an exponential to data by matching the mean and never checking the shape. Plot the empirical survival curve on a log scale: a straight line means exponential, and a curve means the memoryless assumption is wrong.

History

The exponential as a model of waiting times appeared in the early twentieth century in telephone traffic and queueing work, most notably in the study of how many calls a telephone exchange could handle. Agner Krarup Erlang, a Danish engineer working for the Copenhagen Telephone Company, began this line of work around 1909. The memoryless property was understood as the key feature that makes such models tractable. Radioactive decay, which Ernest Rutherford and Frederick Soddy described in the early 1900s, gave the same mathematics a physical home. The distribution caught on because it is the only continuous memoryless model, and that makes calculations simple.

Check yourself

QuestionRecall: what is the mean of an exponential distribution with rate λ\lambda?Show answer

1/λ1/\lambda. The average wait is the reciprocal of the rate, so a higher rate means shorter average waits.

QuestionComputation: if λ=0.2\lambda = 0.2 per minute, what is the probability that the wait is more than 5 minutes?Show answer

P(T>5)=e−0.2⋅5=e−1≈0.368P(T \gt 5) = e^{-0.2 \cdot 5} = e^{-1} \approx 0.368. About 37 percent of waits last longer than 5 minutes, even though the mean wait is 5 minutes.

QuestionWhy: why does an exponential distribution have the memoryless property?Show answer

The survival probability multiplies. P(T>s+t)=e−λse−λtP(T \gt s + t) = e^{-\lambda s} e^{-\lambda t}, so dividing by P(T>s)=e−λsP(T \gt s) = e^{-\lambda s} removes the ss term. The exponential function turns addition of times into multiplication of probabilities, and that is exactly what memorylessness needs.

QuestionApplied: a server's time between failures is exponential with mean 500 hours. Is it reasonable to say a server that has run for 400 hours is more likely to fail in the next hour than a new one?Show answer

No, not under this model. Memorylessness says the chance of failing in the next hour is the same for a server that has run 400 hours and for a new one. If wear matters, the exponential is the wrong model, and a distribution with increasing failure rate such as the Weibull should be used instead.

Sources