- #1
potatocake
- 6
- 1
- Homework Statement
- A walker performs a random walk on the grid points from 0 to N. Each time he tosses a fair coin, he moves one step forward if it is a head otherwise he moves one step backward. The random walk stops when the walker is at either 0 or N. What is the probability that the walker ends up at 0 given that he begins at i?
- Relevant Equations
- let the probability of the walker at i point to be P_i , P_0 = 1, P_N =0
I want to solve this using difference equation. So I set up the general equation to be
Pi = 0.5 Pi+1 + 0.5 i-1
I changed it to euler's form pi = z
0.5z2-z+0.5 = 0
z = 1
since z is a repeated real root
I set up general formula
Pn = A(1)n+B(1)n
then
P0 = A = 1
PN = A+BN = 0 -> A= -BN
This gives a general formula
Pn = 1- 1/N *n
However, I have no idea how I can show the probability that the walker ends up at 0 given that he begins at i. would it still be 1?
Pi = 0.5 Pi+1 + 0.5 i-1
I changed it to euler's form pi = z
0.5z2-z+0.5 = 0
z = 1
since z is a repeated real root
I set up general formula
Pn = A(1)n+B(1)n
then
P0 = A = 1
PN = A+BN = 0 -> A= -BN
This gives a general formula
Pn = 1- 1/N *n
However, I have no idea how I can show the probability that the walker ends up at 0 given that he begins at i. would it still be 1?