Your Equation

Library / Probability distributions / PRD-22

Probability distributions

Gamma waiting time: expected value

Average of a gamma waiting time: the shape times the scale.

Ref
PRD-22
Rev
v1
Field
Probability distributions
Result
E[X] [h]

The mean waiting time is the shape times the scale. With a rate parameter λ = 1/s the same mean is k/λ, so check which parameter a source or a fitting tool uses: a rate where a scale is expected inverts the answer.

Average of a gamma waiting time: the shape times the scale. With a rate parameter λ = 1/s the same mean is k/λ.

Calculator

Solve for
h
0.510
h
0.510
  • Event rate, 1/s0.5 1/h
  • Standard deviation, s√k3.464 h
  • Mean time between single events, s2 h

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Expected waiting time (h) current value 6 h
sScale sKey driver
1.530
kShape k
120
  • Collecting 3 events at one every 2 h on average takes 6 h.
  • The mean is directly proportional to both k and s, so doubling the number of events doubles the wait.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (h)Local stepChange in result
s Scale s0.5 to 10 h1.53028.5+10%+10 %
k Shape k0.5 to 10 12019+10%+10 %

Sweep of Shape k

Shape kExpected waiting time (h)
0.51
1.6883.375
2.8755.75
4.0638.125
5.2510.5
6.43812.88
7.62515.25
8.81317.63
1020

Sweep one variable

Expected waiting time (h)Hover, touch, or use the arrow keys on the chart
05101520 246810 Shape k now 6

Variables and how each one contributes

E[X]

Expected waiting time

Result · h

What the equation gives you. Everything else feeds it.

k

Shape k

· typical 0.5 to 10

The shape parameter (a plain number). For a whole number k it counts the events being waited for; below 1 the density is infinite at zero. Raises the mean and variance in proportion and makes the shape more symmetric. Raising it by 10 % (to 3.3) moves the result by +10 %, from 6 to 6.6 h.

s

Scale s

h · typical 0.5 to 10

The scale, in hours: the mean waiting time per event. It is the reciprocal of the event rate. Stretches every time in the model in proportion. Raising it by 10 % (to 2.2) moves the result by +10 %, from 6 to 6.6 h.

Worked example with the values above

  1. Shape: k = 3; scale: s = 2 h.
  2. Multiply them.
  3. E[X] = 6 h.

Assumptions and limits

  • Waiting times follow a gamma distribution; for whole-number k this is the time to the kth event of a steady, memoryless (Poisson) process.
  • The shape and scale are known and use the same time unit as x.

Common mistakes

  • Confusing the scale s with the rate λ = 1/s: using a rate where a scale is expected inverts the mean.
  • Using the gamma form with non-constant event rates, where the Poisson-process link no longer holds.
  • Reading the density as a probability.

Statistics and uncertainty

A mean, variance or percentile is calculated from fitted parameters, and the uncertainty in those parameters passes straight through. A distribution fitted to a small sample can have parameters that are far from the truth, especially in the tails and for the variance, so quote the result together with the sample size it rests on.

Where it is used

  • Time until the kth failure, arrival or repair in a steady random process.
  • Rainfall totals, queue service times and other positive, right-skewed quantities.

Maths you need

  • Gamma function: the generalised factorial
  • Poisson process: events at a constant average rate

Related formulas

Practise this formula