[Math] Probability of simple random walk ever reaching a point

probabilityrandom walkself-learning

Let $S_n= \sum_{i =1}^n X_i$ where $P(X_i = 1) = p < \frac{1}{2}; P(X_i= -1) = 1-p$ Assume $S_0 = 0$ and $M > 0$ Find the probability that $S_n$ ever reaches $M$.

My first question is am I calculating $P(S_n = M)$ or $P(S_n \ge M)$?

If the former it should be $P(S_n = M) =$ $ {n \choose (n+M)/2}p^{(n+M)/2}(1-p)^{(n-M)/2}$

But seems that maybe it is the latter I am after.

Best Answer

Let $q=1-p$.

Method 1:

Let $r_k$ be the probability that $S_n$ ever reaches $k$. Then also $r_k$ is the probability that $S_n$ with $S_0=c$ ever reaches $k+c$. Consequently:

$$r_k=pr_{k-1}+qr_{k+1}$$

so that $r_k=c_1 \left ( \frac{1 + \sqrt{1-4pq}}{2q} \right )^k+c_2 \left ( \frac{1-\sqrt{1-4pq}}{2q} \right )^k$, from the usual theory of linear recurrence relations with constant coefficients.

In order to go to zero as $k \to \infty$, the first term must be zero. And certainly $r_0=1$, so $c_2=1$, and now we are done.

Method 2:

Let $r$ be the probability that $S_n$ ever net-moves to the right by $1$. Then $r=p+qr^2$: either the process immediately moves right, or else it initially moves left and then net-moves right at least twice. Thus $r=\frac{1-\sqrt{1-4pq}}{2q}$. Then by the same logic that got us $r^2$, we conclude that the probability to ever net-move to the right by $M$ steps is $r^M$.

As a side remark about simplification, $\sqrt{1-4pq}=|2p-1|=1-2p$ since $p<1/2$, so in fact $\frac{1-\sqrt{1-4pq}}{2q}=\frac{p}{q}$ and $\frac{1+\sqrt{1-4pq}}{2q}=1$. You could've figured this out without using the quadratic formula on $qx^2+p=x$ like I did. Note the coefficients sum to zero (after moving them all to one side), so $1$ is a root, then note that the product of the roots is $p/q$, so the other one is $p/q$.

Related Question