等间隔公交
Bus Wait II
题目详情
公交车按固定时刻表每 10 分钟一班。
但每一班车在两次到站之间会独立地以 10% 概率去加油;若加油则该趟行程额外增加 1 小时(即本趟间隔变为 70 分钟)。
你在一天中随机时刻到站(均匀随机)。问:到下一班车到来的期望等待时间是多少(分钟)?
Imagine you are waiting on a bus. The bus schedule is fixed, appearing every minutes. Although, the driver independently between appearances, may want to refill on gas. The probability the driver refills on gas is probability per trial, independently between trials. Note, if he fills up on gas, hour is added to his travel time. If you arrive at a uniformly random time throughout the day, what is the expected time until the next bus appears, in minutes?
解析
这是“长度偏置”的等待问题。
10 趟里约 9 趟是 10 分钟间隔,1 趟是 70 分钟间隔。长间隔更容易被随机时刻落入。
在一个由 9 个 10 分钟与 1 个 70 分钟组成的循环里,总时长为 分钟,其中 70 分钟处于“加油延误间隔”。因此随机到达落在延误间隔的概率为 ,落在正常间隔的概率为 。
- 若落在 70 分钟间隔中,期望等待为 。
- 若落在 10 分钟间隔中,期望等待为 。
因此总体期望等待为
Original Explanation
Let's break this problem down. We need to consider the condition on showing up on a turn when the bus refills for gas versus when it does not. On in every trips there won't be a gas refill and the trip length will be minutes. Hence of every trips the bus does a gas refill and the trip length is minutes.
Therefore, on average, in every minutes, of those will be when the bus is on a refill trip. Hence, the probability of you appearing during a refill trip is . The expected wait of that trip would be . Then, with probability the trip is regular and the expected wait is minutes as per the previous part of this question. By the Law of Total Expectation, the total wait time is