醉汉过桥
Drunk Man
题目详情
一个醉汉站在 100 米桥的第 17 米处。每一步他以 概率前进 1 米,以 概率后退 1 米。到达 0 或 100 即停止。
- 他先到达 100(远端)而不是 0 的概率是多少?
- 到达 0 或 100 之一的期望步数是多少?
A drunk man stands at the 17th meter of a 100-meter bridge. Each step, he staggers forward or backward 1 meter with probability . He stops upon reaching meter 0 or meter 100.
- What is the probability he reaches meter 100 (the far end) before meter 0?
- What is the expected number of steps until he reaches either 0 or 100?
解析
把坐标平移到以 17 米处为 0,左右边界分别为 与 。
- 无偏随机游走命中右边界的概率为
- 无偏随机游走从 0 出发命中 的期望时间为 。这里 ,因此
Original Explanation
Shift coordinates so his position is , with boundaries at and . This is a symmetric random walk starting at . Let be the probability of hitting first; from the gambler’s ruin result, So the chance of reaching the far end (100m) first is .
For the expected time to hit either boundary in a symmetric walk, the known formula is . Here , , so