calculator.onl
Categories50

Exponential waiting time calculator

Find the chance of waiting beyond a deadline, the probability of an event in a time window and the time corresponding to a chosen percentile.

A worked example

Give the next arrival a second hour. Watch the clock and the chance of arriving within the window.

P(t₁ < T ≤ t₂) (%)23.2544P(T > t₂) (%)13.5335E[T] (h)0.5tₚ (h)1.1513
1/h
λ (1/h)

h
t₁ (h)

h
t₂ (h)

%
p (%) · 0 … 100

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

P(t₁ < T ≤ t₂) (%)

23.2544

Calculated from your inputs

P(T > t₂) (%)13.5335
E[T] (h)0.5
tₚ (h)1.1513
P(T ≤ t₂) (%)86.4665
P(T ≤ t₂ ∣ T > t₁) (%)63.2121
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

When events arrive more frequently on average, more first arrivals can fall before the specified window even if the window itself stays fixed. Change “λ” from 2 1/h to 4 1/h and keep the other inputs from the worked example. The value for “P(t₁ < T ≤ t₂) (%)” goes from 23.2544 to 11.702. For a related calculation, try Poisson distribution calculator.

An average of two arrivals per hour does not tell you exactly when the next arrival will occur. A useful question is how likely it is that the first arrival lands inside a particular window. Under a constant event rate with independent Poisson increments, the time until the next event has an exponential distribution. Enter a positive rate per hour and the beginning and end of the window, also in hours. The result counts only runs in which the first event occurs inside those bounds.

Imagine observing a process at noon and calling that instant time zero. A window from half an hour to one hour asks for a first event after 12:30 and by 13:00. At two events per hour the probability of reaching 12:30 without an event is e to the power minus one. The probability of reaching 13:00 without an event is e to the power minus two. Subtract the latter from the former to obtain about 23.254 percent. An event at 12:10 followed by another at 12:40 does not meet the first-event condition.

The second probability describes the upper tail. In the example it is about 13.534 percent at one hour. A graph of that tail starts at one hundred percent at time zero and falls as the deadline moves away. Equal steps in time multiply the surviving fraction by the same factor. They do not subtract the same number of percentage points. This distinction is easier to see if you compare the first half hour with the second half hour on the curve.

The mean and percentile answer two different planning questions. A rate of two per hour gives a mean wait of half an hour, yet more than half of all first events happen before the mean. The distribution has a long right tail. A ninetieth percentile of about 1.1513 hours means ninety percent of first events occur by that time in this model. Ten percent take longer. A one hundred percent deadline has no finite answer because every finite time leaves a positive theoretical tail.

Consider how the question changes if you have already waited half an hour. Conditional on no event so far, the remaining wait has the same exponential distribution with the same rate. To find the chance of seeing an event in the next half hour from that point, use zero for the start and half an hour for the end. This gives about 63.212 percent at the example rate. The conditional result in the calculator makes the same comparison directly. It differs from the original window probability because the original question included runs that had already ended before the window began.

Rate units must match the time scale. A process averaging one event every fifteen minutes corresponds to four events per hour. For a ten-minute deadline enter one sixth of an hour. If the rate changes between morning and afternoon, combining both periods into a single constant rate can conceal important differences. Scheduled arrivals, queues with dependencies, and equipment whose chance of failure grows strongly with age each call for examining whether the model fits before relying on the numbers.

Use the interval with identical bounds as a quick arithmetic check. A continuous distribution gives zero probability to a window with zero width. Use a zero start to obtain the chance of at least one arrival before the end time. These two checks help distinguish a probability for a time interval from an event count or a probability density at a single point.

What to enter

InputWhat it meansExample value
λλ (1/h)2 1/h
t₁t₁ (h)0.5 h
t₂t₂ (h)1 h
pp (%) · 0 … 10090 %

How the calculation works

  1. Find the chance of waiting beyond a deadline, the probability of an event in a time window and the time corresponding to a chosen percentile.
  2. S(t) = exp(−λt), tₚ = −ln(1 − p)/λ
  3. At 2 events per hour, the probability of a first event between 0.5 and 1 hour is about 23.2544%. The chance of waiting longer than one hour is about 13.5335%.
The formulaS(t) = exp(−λt), tₚ = −ln(1 − p)/λ

A worked example

At 2 events per hour, the probability of a first event between 0.5 and 1 hour is about 23.2544%. The chance of waiting longer than one hour is about 13.5335%.

Example you can load

What to enter
Result for this example · P(t₁ < T ≤ t₂) (%)23.2544

This is a fixed example; changing the form above does not change these numbers.

Worked comparisons

Start with these reference inputs — λ = 2 1/h, t₁ = 0.5 h, t₂ = 1 h, p = 90 %. The corresponding results, in the order shown on the form, are — P(t₁ < T ≤ t₂) (%) = 23.25442, P(T > t₂) (%) = 13.53353, E[T] (h) = 0.5, tₚ (h) = 1.151293, P(T ≤ t₂) (%) = 86.46647, P(T ≤ t₂ ∣ T > t₁) (%) = 63.21206. Each example starts again from the reference inputs. The arrows show exactly which entries to change. All other entries keep their original values.

Case 1. Change one setting or the indicated combination to reproduce this case — λ 2 1/h → 1 1/h. Read the following results — P(t₁ < T ≤ t₂) (%) = 23.86512, P(T > t₂) (%) = 36.78794, E[T] (h) = 1, tₚ (h) = 2.302585, P(T ≤ t₂) (%) = 63.21206, P(T ≤ t₂ ∣ T > t₁) (%) = 39.34693.

Case 2. For the second comparison, restore the reference settings first, then enter — t₁ 0.5 h → 0 h. Compare the new answers with the reference result above — P(t₁ < T ≤ t₂) (%) = 86.46647, P(T > t₂) (%) = 13.53353, E[T] (h) = 0.5, tₚ (h) = 1.151293, P(T ≤ t₂) (%) = 86.46647, P(T ≤ t₂ ∣ T > t₁) (%) = 86.46647.

Case 3. For a third check use the following changes — p 90 % → 50 %. The calculation now gives — P(t₁ < T ≤ t₂) (%) = 23.25442, P(T > t₂) (%) = 13.53353, E[T] (h) = 0.5, tₚ (h) = 0.3465736, P(T ≤ t₂) (%) = 86.46647, P(T ≤ t₂ ∣ T > t₁) (%) = 63.21206.

Case 4. For the last case enter — λ 2 1/h → 4 1/h. Read across the outputs to see which quantities changed and which stayed fixed — P(t₁ < T ≤ t₂) (%) = 11.70196, P(T > t₂) (%) = 1.831564, E[T] (h) = 0.25, tₚ (h) = 0.5756463, P(T ≤ t₂) (%) = 98.16844, P(T ≤ t₂ ∣ T > t₁) (%) = 86.46647.

Assumptions & limits

Enter an hourly rate and two times in hours. The conditional probability assumes the first event has not yet occurred at the start.

Reference ·

Frequently asked questions

Do I enter the mean or the rate?

Enter expected events per hour. A mean wait of fifteen minutes corresponds to four events per hour.

Does the interval probability condition on survival to the start?

The first output is measured from time zero. The last output conditions on reaching the start without an event.

Why is a percentile of 100% unavailable?

The model assigns a positive upper tail to every finite time. A finite 100th percentile does not exist.