A stochastic process{Xn} whose state space is the set of integers {⋯,−2,−1,0,1,2,⋯} and starts from state 0 is referred to as a generalized random walk if the probability of decreasing by 1 in the next step is p, and the probability of increasing by 1 is (1−p).
Explanation
A random walk, which is a very simple example among stochastic processes, typically has equal probabilities of moving left or right. A generalized random walk simply varies these probabilities. It is not difficult to guess that if the probabilities of moving left or right are the same, the process would oscillate around the starting state 0. However, if one side has a higher probability, it would diverge towards that side over time.
On the other hand, one can consider the gambler’s ruin problem as a case where the state space is finite.
Theorem
If p=21, then state 0 is recurrent, and if p=21, then state 0 is transient.
Proof
If n=1∑∞p00(n)=∞, then 0 is recurrent, and if n=1∑∞p00(n)<∞, then 0 is transient. Firstly, the probability of returning to state 0 after an odd number of moves is certainly 0, hence
p00(2n−1)=0
Returning to state 0 after 2n moves means moving left exactly n times and right n times, so
p00(2n)=(n2n)pn(1−p)n
Now, it is sufficient to check whether this diverges or converges.
Calculating factorials is hard, and since n is assumed to be infinite, Stirling’s approximation is used.
p00(2n)≈===(nn+1/2e−n2π)2(2n)2n+1/2e−2n2π(p(1−p))n(nn)2n2π(2n)2n2n(p(1−p))nn2nn2π4nn2n2n(p(1−p))nπn(4p(1−p))n
Case 1. p=21
p-series test: n=1∑∞np1 converging is equivalent to p>1.
By the p-test, n=1∑∞πn(4p(1−p))n=π1n=1∑∞n1 diverges, and state 0 is recurrent.
Case 2. p=21
Ratio test: for r=n→∞lim∣an∣∣an+1∣, if r<1 then n=1∑∞an absolutely converges, if r>1 then n=1∑∞an diverges.
n→∞limπn(4p(1−p))nπ(n+1)(4p(1−p))n+1=n→∞lim(n+1)/n4p(1−p)=4p(1−p)<1
Therefore, by the ratio test,
n=1∑∞πn(4p(1−p))n
converges and state 0 is transient.