返回题库

两路公交:平均等车时间

What is the average waiting time to get on a bus at that bus stop?

专题
Probability / 概率
难度
L4

题目详情

概率题:两路公交:平均等车时间。

英文原题

At a bus stop you can take bus #1 or bus #2. Bus #1 passes 10 minutes after bus #2 has passed, whereas bus #2 passes 20 minutes after bus #1 has passed. What is the average waiting time to get on a bus at that bus stop?

解析

两车构成 30 分钟周期:在每个周期内,先来 #1(距离上一班 #2 已过 10 分钟),再过 20 分钟来 #2。

设到站时刻 XU(0,30)X\sim U(0,30)(相对某班 #2 的到达)。若 X10X\le 10,等到 #1 需 10X10-X;若 X>10X>10,等到 #2 需 30X30-X

因此

E[W]=130(010(10x)dx+1030(30x)dx)=253 分钟.\mathbb{E}[W]=\frac{1}{30}\left(\int_0^{10}(10-x)dx+\int_{10}^{30}(30-x)dx\right)=\boxed{\frac{25}{3}}\text{ 分钟}.

英文解析

Consider a time interval between two arrivals of bus #2. This interval lasts for 30 minutes. If a customer arrives in the first 10 minutes of this interval, the customer will take bus #1. Otherwise, the customer will take bus #2.

Let XX be the uniform random variable on [0, 30] representing the arrival time of the customer. The waiting time for the bus is

W=(10X)1X10+(30X)1X>10,W = (10 - X) \cdot \mathbf{1}_{X \leq 10} + (30 - X) \cdot \mathbf{1}_{X > 10},

where 1X10\mathbf{1}_{X \leq 10} and 1X>10\mathbf{1}_{X > 10} are the indicator functions of the events {X10}\{X \leq 10\} and {X>10}\{X > 10\} .

10}, respectively, e.g.,

1X10={1,ifX100,ifX>10.\mathbf{1}_{X\leq 10} = \left\{ \begin{array}{ll}1, & \mathrm{if} X\leq 10 \\ 0, & \mathrm{if} X > 10. \end{array} \right.

The expression for WW can also be written as

W=(10X)(1X10+1X>10)+201X>10=10X+201X>10,\begin{array}{c}W = (10 - X) \cdot (\mathbf{1}_{X\leq 10} + \mathbf{1}_{X > 10}) + 20 \cdot \mathbf{1}_{X > 10} \\ = 10 - X + 20 \cdot \mathbf{1}_{X > 10}, \end{array}

and therefore

E[W]=10E[X]+20P(X>10).\mathbb{E}[W] = 10 - E[X] + 20P(X > 10).

Note that E[X]=15\mathbb{E}[X] = 15 and P(X>10)=23\mathbb{P}(X > 10) = \frac{2}{3} , since uniform on [0,30][0,30] . From (2.43), it follows that

E[W]=1015+2023=253.\mathbb{E}[W] = 10 - 15 + 20 \cdot \frac{2}{3} = \frac{25}{3}.

The expected waiting time to get on a bus is 253\frac{25}{3} minutes, that is, 8 minutes and 20 seconds.