Waiting for the bus (I)

Buses A and B come every 6 and 10 minutes respectively. Assuming that the buses arrive on time with unknown but equidistributed phases, how long does one have to wait, on average, to board any of the buses in minutes? The answer can be expressed as a b \frac{a}{b} in the simplest form, enter a + b a+b .


The answer is 17.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Mark Hennings
May 9, 2019

Suppose that the last type A A bus arrived T A T_A minutes before you arrive at the bus stop, and the last type B B bus arrived T B T_B minutes before you arrive at the bus stop, and let T T be the time you have to wait for the next bus. Then T A T_A is uniformly distributed on [ 0 , 6 ] [0,6] , while T B T_B is uniformly distributed on [ 0 , 10 ] [0,10] . For any o x 6 o \le x \le 6 we will only have T x T \ge x if T A 6 x T_A \le 6-x and T B 10 x T_B \le 10-x . Thus P [ T x ] = 1 6 ( 6 x ) × 1 10 ( 10 x ) P [ T x ] = 1 1 60 ( 6 x ) ( 10 x ) = 1 60 ( 16 x x 2 ) \begin{aligned} P[T \ge x] & = \; \tfrac{1}{6}(6-x)\times \tfrac{1}{10}(10-x) \\ P[T \le x] & = \; 1 - \tfrac{1}{60}(6-x)(10-x) \; = \; \tfrac{1}{60}(16x - x^2) \end{aligned} Differentiating gives the probability distribution function for T T as f T ( x ) = { 1 30 ( 8 x ) 0 x 6 0 o . w f_T(x) \; = \; \left\{ \begin{array}{lll} \tfrac{1}{30}(8-x) & \hspace{1cm} & 0 \le x \le 6 \\ 0 & & \mathrm{o.w} \end{array}\right. and hence the expected waiting time is E [ T ] = 0 6 x f T ( x ) d x = 12 5 E[T] \; = \; \int_0^6 x f_T(x)\,dx \; = \; \tfrac{12}{5} making the answer 12 + 5 = 17 12+5 = \boxed{17} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...