返回题库

随机游走停在 0 或 3

Consider a random walk

专题
Probability / 概率
难度
L4

题目详情

概率题:随机游走停在 0 或 3。

英文原题

Consider a random walk starting at 1 and with equal probability of moving to the left or to the right by one unit, and stopping either at 0 or at 3.

(i) What is the expected number of steps to do so?

(ii) What is the probability of the random walk ending at 3 rather than at 0 ?

解析

与上一题相同。

E[步数]=2,qquadP(终止于 3)=13.\boxed{\mathbb{E}[\text{步数}]=2},\\qquad \boxed{\mathbb{P}(\text{终止于 }3)=\frac13}.

英文解析

Denote by XnX_{n}^{\ell} the position of the random walk at time nn , where the superscript refers to the starting position of the walk; for example, X0=X_{0}^{\ell} = \ell . In this question, we are concerned with Xn1X_{n}^{1} . For a random walk starting at {0,1,2,3}\ell \in \{0,1,2,3\} , denote by TT_{\ell} the number of steps taken by the random walk in order to reach either 0 or 3 for the first time, and by t=E[T]t_{\ell} = E\left[T_{\ell}\right] the expected number of steps.

(i) We are looking to find t1t_1 . We derive a recurrence relation among the tt_{\ell} 's as follows: for =1,2\ell = 1,2

t=E[T]=E[TX1=1]P(X1=1)+E[TX1=+1]P(X1=+1)=E[1+T1]P(X1=1)+E[1+T+1]P(X1=+1)=(1+t1)12+(1+t+1)12\begin{array}{r l} & {t_{\ell} = E\left[T_{\ell}\right]}\\ & {\quad = E\left[T_{\ell}\mid X_{1}^{\ell} = \ell -1\right]\cdot P\left(X_{1}^{\ell} = \ell -1\right)}\\ & {\qquad +E\left[T_{\ell}\mid X_{1}^{\ell} = \ell +1\right]\cdot P\left(X_{1}^{\ell} = \ell +1\right)}\\ & {= E\left[1 + T_{\ell -1}\right]\cdot P\left(X_{1}^{\ell} = \ell -1\right)}\\ & {\qquad +E\left[1 + T_{\ell +1}\right]\cdot P\left(X_{1}^{\ell} = \ell +1\right)}\\ & {= (1 + t_{\ell -1})\cdot \frac{1}{2} +(1 + t_{\ell +1})\cdot \frac{1}{2}} \end{array}

where the following identities were used to derive (3.224) and (3.225):

E[TX1=1]=E[1+T1]E[TX1=+1]=E[1+T+1].\begin{array}{l}{{E\left[T_{\ell}\mid X_{1}^{\ell}=\ell-1\right]=E\left[1+T_{\ell-1}\right]}}\\ {{E\left[T_{\ell}\mid X_{1}^{\ell}=\ell+1\right]=E\left[1+T_{\ell+1}\right].}}\end{array}

Note that (3.227) and (3.228) follow from the fact that, starting at \ell , once the random walk took its first step to 1\ell - 1 (or +1\ell +1 ), it becomes equivalent to a random walk starting afresh at 1\ell - 1 (or +1\ell +1 ). The plus 1 term on the right hand side of (3.227) and (3.228) accounts for the first step.

Since t0=t3=0t_0 = t_3 = 0 , by letting l=1l = 1 and then l=2l = 2 in (3.226), we obtain the

following linear system for t1t_1 and t2t_2 :

t1=1+t02+1+t22=12+1+t22\begin{array}{c}t_1 = \frac{1 + t_0}{2} + \frac{1 + t_2}{2} \\ = \frac{1}{2} + \frac{1 + t_2}{2} \end{array} t2=1+t12+1+t32=1+t12+12.\begin{array}{c}t_2 = \frac{1 + t_1}{2} + \frac{1 + t_3}{2} \\ = \frac{1 + t_1}{2} + \frac{1}{2}. \end{array}

Thus, t1=2t_1 = 2 and t2=2t_2 = 2 .

We conclude that the expected number of steps before stopping is 2.

(ii) Denote by pp_\ell the probability that the random walk reaches 3 before it reaches 0 when its position is at \ell , for {0,1,2,3}\ell \in \{0,1,2,3\} . We need to find p1p_1 . Denote by τ0\tau_0^\ell the first time the walk reaches O when starting at \ell , and by τ3\tau_{3}^{\ell} the first time the walk reaches 3 when starting at \ell . We derive a recurrence relation for the pp_\ell 's as follows: for =1,2\ell = 1,2

p=P(τ3<τ0)=P(τ3<τ0X1=+1)P(X1=+1)+P(τ3<τ0X1=1)P(X1=1)=P(τ3+1<τ0+1)P(X1=+1)+P(τ31<τ01)P(X1=1)=12p+1+12p1,\begin{array}{r l} & {p_{\ell} = P\left(\tau_{3}^{\ell}< \tau_{0}^{\ell}\right)}\\ & {\quad = P\left(\tau_{3}^{\ell}< \tau_{0}^{\ell}\mid X_{1}^{\ell} = \ell +1\right)P\left(X_{1}^{\ell} = \ell +1\right)}\\ & {\quad \quad +P\left(\tau_{3}^{\ell}< \tau_{0}^{\ell}\mid X_{1}^{\ell} = \ell -1\right)P\left(X_{1}^{\ell} = \ell -1\right)}\\ & {\quad = P\left(\tau_{3}^{\ell +1}< \tau_{0}^{\ell +1}\right)P\left(X_{1}^{\ell} = \ell +1\right)}\\ & {\quad \quad +P\left(\tau_{3}^{\ell -1}< \tau_{0}^{\ell -1}\right)P\left(X_{1}^{\ell} = \ell -1\right)}\\ & {\quad = \frac{1}{2}\cdot p_{\ell +1} + \frac{1}{2}\cdot p_{\ell -1},} \end{array}

because the random walk is equally likely to move to the left or to the right and, once it moved, the random walk starts afresh.

Since p0=0p_0 = 0 and p3=1p_3 = 1 , by letting l=1l = 1 and then l=2l = 2 in (3.229), we obtain the following linear system for p1p_1 and p2p_2 :

p1=p02+p22=p22p2=p12+p32=p12+12.\begin{array}{l} p_1 = \frac{p_0}{2} + \frac{p_2}{2} = \frac{p_2}{2} \\ p_2 = \frac{p_1}{2} + \frac{p_3}{2} = \frac{p_1}{2} + \frac{1}{2}. \end{array}

Thus, p1=13p_1 = \frac{1}{3} and p2=23p_2 = \frac{2}{3} .

We conclude that the probability of the random walk ending at 3 rather than at 0 is 13\frac{1}{3} .