I'm waiting for two buses, route 20 or route 21. route's 20 bus passes randomly at a rate of 3 buses per hour, while route 21 passes at a rate of 1 bus per hour, independently of the other one. what is the average waiting time if I take the first bus that passes?
I thought I could just divide 1 hour into 4, since theyr'e independent of each other but it doesn't look like I am averaging the right way.
I saw a similar question about this, but the difference is that they're given the exact time interval at which buses pass (e.g 12 minutes). This one just says 3 buses randomly per hour and 1 bus randomly per hour .
The question is not precise enough to get a precise answer: the law of the arrival times of the buses must be specified.
One usual model is the following: the time you would wait for the first bus is an exponential random variable $X_1$ of parameter $\lambda$, and the time for the second bus is another independent exponential random variable $X_2$ of parameter $\mu$.
Then the waiting time for the first bus is $\min(X_1,X_2)$, and it is another exponential variable, of parameter $\lambda + \mu$ (see here).
In your case, $\lambda = 3$ (buses per hour), and $\mu = 1$ (bus per hour). So the first of the two buses should arrive, on average, after $\frac{1}{3+1}$ hours, so, $15$ minutes.
Another model could be the following: we assume that the arrival times of the first bus, in minutes, are $\{X + 20k \ \vert \ k \in \mathbb{Z}\}$, for some random variable $X$ uniform on $[0,20]$, and the arrival times of the second bus, in minutes, are $\{Y + 60k \ \vert \ k \in \mathbb{Z}\}$, for some random variable $Y$ uniform on $[0,60]$. This model is investigated here.