与上一题相同。
E[步数]=2,qquadP(终止于 3)=31.
英文解析
Denote by Xnℓ the position of the random walk at time n , where the superscript refers to the starting position of the walk; for example, X0ℓ=ℓ . In this question, we are concerned with Xn1 . For a random walk starting at ℓ∈{0,1,2,3} , denote by Tℓ 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ℓ] the expected number of steps.
(i) We are looking to find t1 . We derive a recurrence relation among the tℓ 's as follows: for ℓ=1,2
tℓ=E[Tℓ]=E[Tℓ∣X1ℓ=ℓ−1]⋅P(X1ℓ=ℓ−1)+E[Tℓ∣X1ℓ=ℓ+1]⋅P(X1ℓ=ℓ+1)=E[1+Tℓ−1]⋅P(X1ℓ=ℓ−1)+E[1+Tℓ+1]⋅P(X1ℓ=ℓ+1)=(1+tℓ−1)⋅21+(1+tℓ+1)⋅21
where the following identities were used to derive (3.224) and (3.225):
E[Tℓ∣X1ℓ=ℓ−1]=E[1+Tℓ−1]E[Tℓ∣X1ℓ=ℓ+1]=E[1+Tℓ+1].
Note that (3.227) and (3.228) follow from the fact that, starting at ℓ , once the random walk took its first step to ℓ−1 (or ℓ+1 ), it becomes equivalent to a random walk starting afresh at ℓ−1 (or ℓ+1 ). The plus 1 term on the right hand side of (3.227) and (3.228) accounts for the first step.
Since t0=t3=0 , by letting l=1 and then l=2 in (3.226), we obtain the
following linear system for t1 and t2 :
t1=21+t0+21+t2=21+21+t2
t2=21+t1+21+t3=21+t1+21.
Thus, t1=2 and t2=2 .
We conclude that the expected number of steps before stopping is 2.
(ii) Denote by pℓ the probability that the random walk reaches 3 before it reaches 0 when its position is at ℓ , for ℓ∈{0,1,2,3} . We need to find p1 . Denote by τ0ℓ the first time the walk reaches O when starting at ℓ , and by τ3ℓ the first time the walk reaches 3 when starting at ℓ . We derive a recurrence relation for the pℓ 's as follows: for ℓ=1,2
pℓ=P(τ3ℓ<τ0ℓ)=P(τ3ℓ<τ0ℓ∣X1ℓ=ℓ+1)P(X1ℓ=ℓ+1)+P(τ3ℓ<τ0ℓ∣X1ℓ=ℓ−1)P(X1ℓ=ℓ−1)=P(τ3ℓ+1<τ0ℓ+1)P(X1ℓ=ℓ+1)+P(τ3ℓ−1<τ0ℓ−1)P(X1ℓ=ℓ−1)=21⋅pℓ+1+21⋅pℓ−1,
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=0 and p3=1 , by letting l=1 and then l=2 in (3.229), we obtain the following linear system for p1 and p2 :
p1=2p0+2p2=2p2p2=2p1+2p3=2p1+21.
Thus, p1=31 and p2=32 .
We conclude that the probability of the random walk ending at 3 rather than at 0 is 31 .