Quoto

Learn / Library / Probability

Average length of ruin game

ProbabilityMedium

A fair walker starts at position on positions , , , , , , , . Each step goes up or down with probability , independently. Positions and are absorbing. What is the expected number of steps until absorption?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Let D(k) be the expected duration from k; it satisfies a second-difference equation with zero values at both ends.

Solution
  1. Let be the expected number of steps from position , with and .
  2. For interior positions .
  3. The solution that vanishes at both ends is .
  4. At this gives .
  5. So the expected number of steps is .

Answer: