Mathematics — Probability · absorbing-markov-chains
Problem
Consider a random walker who moves on the integers 0,1,…,N, moving one step to the right with probability p and one step to the left with probability q=1−p. If the walker ever reaches 0 or N he stays there. (This is the Gambler's Ruin problem of Exercise 23.) If p=q show that the function f(i)=i is a harmonic function (see Exercise 27), and if p=q then f(i)=(pq)i is a harmonic function. Use this and the result of Exercise 27 to show that the probability biN of being absorbed in state N starting in state i is
biN=⎩⎨⎧Ni,(pq)N−1(pq)i−1,if p=q,if p=q.