Edit: It is clear that I have completely misunderstood the problem and I still do. Ignmore this post and all other posts by me on this.
helene_t, on 2014-May-16, 02:15, said:
15 minutes is correct if you went to the tube station at a random time and weren't told how long time elapsed since the previous train. On average, there will be a 30 minutes interval and you will arrive 15 minutes after the last one, 15 minutes before the next one.
It may sound contraintuitive that the average interval length is 20 minutes if you arrive at the beginning of the interval while 30 minutes if you arrive at some random time. But think of it this way: some intervals will be longer than others. Arriving at the beginning of an interval, all intervals are equally likely, so you get the unbiased average which is 20 minutes. But if you arrive at a random time, you are more likely to arrive at a long interval.
Here is a similar (easier) classical puzzle: A man works in Manhattan and he has two lovers, one living in Brooklyn and one in Bronx. There are 6 trains per hour in each direction, at regular intervals. He goes to the tube station at random time points and take the train that comes first, in whichever direction it happens to go. He ends up visting his Bronx lover four times as frequently as his Brooklyn lover. Why?
Note: From the post 25 below i guess I misunderstood the arrival time. He is assumed to arrive at the top of the hour. Then the answer is 15 minutes. I was thinking of a random arrival time, uniformly distributed over the hour. I'll leave this up anyway.
I need to think a bit about this unbiased average. Between 2 and 3 there are four intervals. If you arrive before the first intereval you have to wait on average half the length og the interva. Same with arriving between the first and second, or second and third. But if you arrive after the third, it's different. You certainly have to wait until 3, you have missed the last train in the 2-3 period, and then you have to woit some random time for the first train after.3. I take it that "random intervals", however this is to be understood, means that the arrival time of the first train after 3 is independent of the arrival time of the first train after 2.
So at least it doesn't seem to me that the various intervals are similar enough to look at an unbiased. average.
Simpler case: One train each hour at a random time, uniformly distributed throughout the hour.
X = arrival time of the train between 2 and 3
Y=arrival time of train between 3 and 4
Z = arrival time of the passenger between 2 and 3.
All uniform distributions.
F(X,Y,Z) = time he must wait. This is X-Z if Z<X and Y-Z if Z>X. We want the expected value of F
Is this the way you understand the (simplified) problem?
We can make the obvious modifcations
X1 = arrival time of the first train between 2 and 3
X 2= arrival time of the second train between 2 and 3
X3 = arrival time of the third train between 2 and 3
Y=arrival time of first train between 3 and 4
Z = arrival time of the passenger between 2 and 3.
Then modify F, and we need the expected value, is that right?