随机游走停在 0 或 3:期望步数与到 3 的概率
Random walk starting at 1
题目详情
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?
解析
设从位置 出发,到首次到达 的步数为 ,其期望为 。
对 有递推
解得 ,因此
到达 3 的概率 满足
解得 ,故