Your Equation

Library / Probability distributions / PRD-23

Probability distributions

Gamma waiting time: variance

Variance of a gamma waiting time, in squared time units.

Ref
PRD-23
Rev
v1
Field
Probability distributions
Result
Var[X] [h²]

The variance ks² is in squared time units. The ratio of the variance to the mean is the scale s, so a large scale means a large spread relative to the average. The standard deviation s√k grows only as the square root of the number of events.

Variance of a gamma waiting time, in squared time units. The ratio of the variance to the mean is the scale s.

Calculator

Solve for
h²
0.510
h
0.510
  • Standard deviation3.464 h
  • Mean waiting time6 h
  • Coefficient of variation, 1/√k0.5774

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.

Variance (h²) current value 12 h²
sScale sKey driver
0.75300
kShape k
240
  • The standard deviation of the wait is 3.464 h against a mean of 6 h.
  • Relative to the mean, the spread shrinks as 1/√k: waiting for more events makes the total time more predictable.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (h²)Local stepChange in result
s Scale s0.5 to 10 h0.75300299.3+10%+21 %
k Shape k0.5 to 10 24038+10%+10 %

Sweep of Shape k

Shape kVariance (h²)
0.52
1.6886.75
2.87511.5
4.06316.25
5.2521
6.43825.75
7.62530.5
8.81335.25
1040

Sweep one variable

Variance (h²)Hover, touch, or use the arrow keys on the chart
010203040 246810 Shape k now 12

Variables and how each one contributes

Var[X]

Variance

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 12 to 13.2 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 +21 %, from 12 to 14.52 h².

Worked example with the values above

  1. Square the scale: s² = 4 h².
  2. Multiply by the shape: 3 × 4.
  3. Var = 12 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