GARETH GRANTTECHNOLOGY · DATA · INNOVATION
Explore

09 / Distributions

Exponential distribution: time until a random event

The exponential distribution models a non-negative waiting time with a constant event rate. It is a useful building block for random-arrival and some reliability models, provided the constant-hazard assumption is reasonable.

IntermediateLive exploration + Python

The business question

How long might we wait for the next event when the event rate is constant?

  • Explore time between unscheduled service requests at an approximately stable arrival rate.
  • Model a simplified time to failure during a constant-hazard operating regime.
  • Translate a mean waiting time into percentiles or exceedance probabilities.

How the method works

Use one consistent time unit and distinguish a rate from a mean duration. A rate of three calls per hour corresponds to a mean inter-arrival time of one third of an hour, or twenty minutes. In a homogeneous Poisson arrival model, the time to the next arrival has an exponential distribution. The count question and the waiting-time question use different variables even though their parameters are related.

The survival probability exp(−λt) is the chance of waiting longer than t. Subtracting it from one gives the probability that the event has occurred by t. The inverse relationship gives a percentile: a 95th percentile is the time by which the model places 95% of waiting times. That is a statement about individual waits under the model, not uncertainty about the mean.

The defining memoryless property means the modelled probability of waiting another s units does not depend on how long the current wait has already lasted. This can be defensible for random arrivals at a stable rate. It is often unsuitable for task durations with a minimum setup time, a near-fixed cycle or ageing equipment whose hazard changes with use. Memorylessness is an assumption to check, not a general business law.

The calculation

P(T > t) = exp(−λt); E[T] = 1/λ; t_q = −ln(1 − q)/λ
Read the symbols
SymbolMeaning
TNon-negative time until the event.
λConstant event rate per time unit.
tWaiting-time threshold in the matching time unit.
qDesired cumulative probability, such as 0.95 for a 95th percentile.

A worked business example

ILLUSTRATIVE SCENARIO

Illustrative technical support desk receives unscheduled requests during a quiet, stable period. The scenario assumes a mean of twenty minutes between arrivals. The manager asks how unusual a thirty-minute gap would be.

Inputs

  • Mean inter-arrival time = 20 minutes, so λ = 1/20 = 0.05 per minute.
  • Threshold t = 30 minutes.
  • Percentile of interest q = 0.95.

Work through the numbers

  1. Calculate P(T > 30) = exp(−0.05 × 30) = exp(−1.5) = 0.2231302.
  2. The chance of an arrival within thirty minutes is 1 − 0.2231302 = 0.7768698.
  3. Calculate the 95th percentile: −ln(0.05)/0.05 = 59.9146 minutes.
  4. Under memorylessness, after ten minutes without an arrival, the modelled mean additional wait is still twenty minutes.
A gap longer than thirty minutes has probability 22.31%; the modelled 95th percentile is 59.91 minutes.

A thirty-minute quiet period is not especially rare under this scenario. Staffing decisions still need the volume and service work over the whole period rather than assuming that each current gap predicts the next one.

Explore the decision

Explore time to the next event. The live explorer has its own example inputs; it is separate from the worked calculation above.

Enable JavaScript to use this calculator. The worked example and executable Python remain available.

Apply it at work

  1. Choose the event, exposure clock and a comparable operating regime.
  2. Estimate rate from event counts and observed exposure, allowing for incomplete observation where relevant.
  3. Inspect waiting times and changes in rate before applying a constant-hazard model.
  4. Use the resulting probabilities in a broader capacity or reliability decision and validate them against later records.

Check these assumptions

  • The model uses a constant event rate within the period being analysed.
  • The associated random-event mechanism has no duration-dependent hazard.
  • Times are non-negative and measured consistently, with any censoring recorded.
  • The numerical parameter is treated as known; uncertainty in its estimate is not included in the example.

Common mistakes and how to avoid them

  • Using an hourly rate with a threshold expressed in minutes changes the answer by a factor of sixty in the exponent.
  • A memoryless arrival process does not imply that customer service tasks are memoryless.
  • Applying the same rate across lunch, promotions and closing time can conceal systematic variation.

How this can help the business

  • Managers can interpret quiet or busy gaps without declaring every departure from the mean abnormal.
  • Reliability and staffing models gain an explicit, testable waiting-time assumption instead of an unexplained average duration.
A decision rule to adapt

Use an exponential model when a constant-rate, memoryless mechanism is defensible; choose service or maintenance actions using costs and the complete operating context.

When to use another approach

Use Weibull for changing hazard, gamma or lognormal for positive task durations, or time-varying arrival models for predictable peaks.

Reproduce the worked example in Python

The code is self-contained for this example. Dependencies and run instructions are included with the downloadable notebook.

Show executable code and recorded output
from scipy.stats import expon
mean_gap = 20
probability_long_gap = expon.sf(30,scale=mean_gap)
percentile_95 = expon.ppf(0.95,scale=mean_gap)
print(f'Gap longer than 30 min: {probability_long_gap:.2%}')
print(f'Arrival within 30 min: {1-probability_long_gap:.2%}')
print(f'95th percentile gap: {percentile_95:.2f} min')

Recorded output

Gap longer than 30 min: 22.31%
Arrival within 30 min: 77.69%
95th percentile gap: 59.91 min
Download all worked examples

Sources and further reading

Concepts are linked to primary teaching or technical sources. The business examples are illustrative applications, not reported client results.