Introduction to the Exponential Distribution

The exponential distribution models the time between independent events. Let's take a look at its parameter, PDF, CDF, and real-world applications.

Posted on Mathematics Simulation Statistics

The exponential distribution is one of the most important probability distributions in applied mathematics and simulation. It models the time between independent events that occur at a constant average rate. Examples: how long until the next customer arrives, how long until a machine fails, or how long until a radioactive atom decays.

If you’re building simulations, this distribution will be your workhorse. It’s vital that we understand this distribution and how it works.

The Parameter: Lambda

The exponential distribution has a single parameter: the rate parameter λ\lambda (lambda), where λ>0\lambda > 0.

Lambda represents the average number of events per unit time, often called the tick in simulations. From this single parameter, we derive everything else:

PropertyFormula
Mean (expected value)E[X]=1λE[X] = \frac{1}{\lambda}
VarianceVar(X)=1λ2\text{Var}(X) = \frac{1}{\lambda^2}
Standard deviationσ=1λ\sigma = \frac{1}{\lambda}

Notice that the mean and standard deviation are equal: 1λ\frac{1}{\lambda}. This is a distinctive feature of the exponential distribution.

Example: If customers arrive at a coffee shop at an average rate of λ=3\lambda = 3 per hour, the expected time between arrivals is 13\frac{1}{3} hour, or 20 minutes.

Probability Density Function (PDF)

The PDF gives the probability of the random variable having a specific value. For the exponential distribution:

f(x)=λeλxfor x0f(x) = \lambda e^{-\lambda x} \quad \text{for } x \geq 0

The PDF is 00 for x<0x < 0. Negative time does not make sense.

Key observations:

Use the slider below to see how λ\lambda shapes the PDF:

mean = 2.00

Cumulative Distribution Function (CDF)

The CDF gives the probability that the random variable is less than or equal to a given value. For the exponential distribution:

F(x)=P(Xx)=1eλxfor x0F(x) = P(X \leq x) = 1 - e^{-\lambda x} \quad \text{for } x \geq 0

Key observations:

Use the slider below to see how λ\lambda shapes the CDF:

mean = 2.00

Reading the CDF: Pick a point on the x-axis (a time xx) and read the corresponding y-value. That’s the probability the event has occurred by time xx. For example, with λ=0.5\lambda = 0.5, the probability of the event occurring within 2 time units is F(2)=1e0.52=1e10.632F(2) = 1 - e^{-0.5 \cdot 2} = 1 - e^{-1} \approx 0.632.

The Survival Function

A natural companion to the CDF is the survival function (also called the reliability function):

S(x)=P(X>x)=1F(x)=eλxS(x) = P(X > x) = 1 - F(x) = e^{-\lambda x}

Where the CDF answers “what’s the probability the event has happened by time xx?”, the survival function answers “what’s the probability the event has not happened by time xx?” This perspective is especially useful in reliability engineering and medical statistics.

Real-World Examples

The exponential distribution appears whenever events occur independently at a roughly constant rate:

In each case, the key assumption is that events are independent and occur at a constant average rate. When this assumption holds, the exponential distribution is the right model. When it doesn’t — say, if failure rates increase with equipment age — a different distribution is needed.