Gamblers Ruin Problems: Exercises
Introduction
Example problems
Click on the problems to reveal the solution
Problem 1
Events during the later parts of the ants walk are independent of those that occured during the earlier parts of the walk. We can thus calculate the probability of multiple visits to the reflecting wall by multiplying probabilities of individual events. In other words: $$ P(j\textrm{ visits to reflecting wall} ) = \left( 1 -{k \over N} \right)\left( 1 -{1 \over N} \right)^{j-1} $$ This is the probability of $j$ or more visits to the walk. We want the probability of exactly $j$ visits. The probability of moving to the absorbing wall at $x=N$ after having been reflected by the wall at $x=0$ is given by: $$ (1 -p_1 ) = 1 - \left( 1 - \frac{1}{N} \right) = \frac{1}{N} $$ Hence the probability of {\bf exactly} $j$ vists to the reflecting wall is: $$ s_{kj} = \left( 1 -{k \over N} \right)\left( 1 -{1 \over N} \right)^{j-1} \frac{1}{N} = \left(\frac{N-k}{N^2}\right)\left( 1 -{1 \over N} \right)^{j-1} $$
Problem 2
Now consider $X - Y$:
- For walk starting at $k$ and ending at $N$ (win) : $X-Y=N-k$
- For walk starting at $k$ and ending at $0$ (loss) : $X-Y=-k$