Example: First Step Analysis - Gambler’s Ruin

Using the scenario from gambling model, consider a gambler with and win probability (lose probability ).

We want to find the probability of reaching the target () starting from state .

Hitting Probability

Let be the probability of hitting state starting from state .

Boundary Conditions:

  • (Target reached)
  • (Broke)

Equations for Transient States:

Solution:

Expected Time to Absorption

Let be the expected number of steps until reaching state .

Boundary Conditions:

Equations:

Solution: