赌徒破产:到达目标 N 的概率
Gambler’s Ruin Problem
题目详情
赌徒初始有 美元。每次下注:以概率 赢 1 美元(以概率 输 1 美元)。
当资金到达 0(破产)或到达 (目标)时停止。
问:从 出发最终到达 的概率 是多少?
A gambler starts with dollars. Each bet, the gambler wins $1 with probability (and thus loses $1 with probability ). The game stops upon reaching $0 (ruin) or $N (goal). What is the probability of eventually reaching $Ni$?
解析
满足递推
解得:
- 若 ,;
- 若 ,
Original Explanation
Let = probability of ending with $N when starting with $i. Then
- If , then
- If , then