Learn / Library / Probability
Average length of ruin game
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.
Hint
Let D(k) be the expected duration from k; it satisfies a second-difference equation with zero values at both ends.
Solution
- Let be the expected number of steps from position , with and .
- For interior positions .
- The solution that vanishes at both ends is .
- At this gives .
- So the expected number of steps is .
Answer: