Expected Waiting Time for Independent Repeated Trials

With independent repeat trials and fixed success probability, the number of attempts until the first success has a geometric distribution on positive integers.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Read the tail
  2. Distinguish two counting conventions
  3. Count the trial on which the first success occurs
  4. Read the convention and finite limits carefully

Read the tail

At success probability one quarter, the chance of still waiting after two attempts is \((3/4)^2=9/16\). The expected number of attempts is four under this model. Complement probabilities help compute success within a fixed budget.

Distinguish two counting conventions

Counting failures before success subtracts one from every attempt count and has expectation three here. A retry budget should state which convention it implements.[1]

Count the trial on which the first success occurs

Let independent trials succeed with probability one quarter. If \(T\) counts trials through the first success, \(P(T=1)=1/4\) and \(P(T=2)=(3/4)(1/4)\). Conditioning on the first failure gives \(E[T]=1+(3/4)E[T]\), hence four trials. See expectation.

T=1: 1/4
T=2: 3/16
T=3: 9/64
T≥4: (3/4)^3 = 27/64

Read the convention and finite limits carefully

Counting failures before success subtracts one from the mean. A maximum of four attempts creates a different stopping time with a possible no-success outcome. At success probability zero there is no finite expected wait under the unlimited model.

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩