What is the Average Wait Time for a Train at Station A?

  • Thread starter Thread starter hexa
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The average wait time for a train at Station A, which has three departures every hour, is debated among participants. The initial assumption is that the average wait time would be precisely 10 minutes, but this is challenged due to the variability in train departure times. It is suggested that without knowing the specific distribution of departure intervals, the expected wait time could exceed 10 minutes. The discussion highlights that the passenger's random arrival time complicates the calculation, making it essential to consider the timing of train departures relative to the passenger's arrival. Ultimately, the expected wait time is concluded to be at least 10 minutes, depending on the exact scheduling of the trains.
hexa
Messages
32
Reaction score
0
Hello,

how do I calculate the following probability:

A train leave station A three times every hourm but the times inbetween differ. When arriving at that station at any given time how long would I have to wait on average?

Would it be more than, less then or precisely 10 minutes?
Thinking about it I would say precisely 10 minutes when we're talking about on everage as the train could arrive earlier or later, but that's probably to easy thinking.

Thanks for your help, guys.

Hexa
 
Physics news on Phys.org
There is not enough information given regarding the train departure probability distribution to properly compute the expected wait time. Different assumptions regarding train departures lead to different answers. This looks like homework, so I won't tell you why I think a good answer is 15 minutes. Some points to consider:
  • The passenger is going to take the first train that comes along. Look at the complementary problem -- answer the question, "what is the probability no train will have left before t minutes have passed?"
  • Make a reasonable stab at train departure probability distribution. Don't discount the possibility of all three trains leaving simulataneously one hour after the passenger arrives at the station.
 
Last edited:
There is not enough information given regarding the train departure probability distribution to properly compute the expected wait time.
True but you don't need to compute the expected wait time to answer the question.

The question states, "A train leave station A three times every hour".

This means that exactly one hour after each train departure there is another, because if the first mentioned train departs at time t and if the first train departing at or after t+1 (units in hours) departed at time t+1+\delta, with \delta>0, then any interval [t+\epsilon,t+1+\epsilon) with 0<\epsilon<\delta would contain at least one train departure less than the interval [t,t+1), violating the requirement that any interval [x,x+1) contains exactly three train departures. So \delta=0.

The trains therefore run to a regular hourly schedule and it is sufficient to consider an interval of an hour immediately following the departure of a train.

Let the intervals between the start of the hour and the departures in the hour be a, b\ and\ c.
Then
a+b+c=1
and the expected wait time is:
a.\frac{1}{2}a+b.\frac{1}{2}b+c.\frac{1}{2}c
=\frac{1}{2}(a^2+b^2+c^2)
Let
a=\frac{1}{3}+\alpha
b=\frac{1}{3}+\beta
c=\frac{1}{3}+\gamma
Then
\alpha+\beta+\gamma=0
and the expected wait time is
\frac{1}{2}(\frac{1}{3}+\frac{2}{3}(\alpha+\beta+\gamma)+\alpha^2+\beta^2+\gamma^2)
=\frac{1}{2}(\frac{1}{3}+\alpha^2+\beta^2+\gamma^2)

But the question also states, "... but the times inbetween differ.", so not all of \alpha, \beta\ and\ \gamma are zero.

Hence
expected\ wait\ time>\frac{1}{2}.\frac{1}{3}=\frac{1}{6}
i.e. more than ten minutes.
 
Last edited:
Martin Rattigan said:
True but you don't need to compute the expected wait time to answer the question.
The question states, "A train leave station A three times every hour".
This means that exactly one hour after each train departure there is another ... The trains therefore run to a regular hourly schedule and it is sufficient to consider an interval of an hour immediately following the departure of a train.

I agree so far: exactly three trains will depart during any simple open-closed (or closed-open) interval of width one hour, including the one hour that starts when the passenger in question arrives at the station.

I disagree with this statement:

Let the intervals between the start of the hour and the departures in the hour be a, b\ and\ c.
Then
a+b+c=1

There is no reason that a+b+c = 1. Consider the near-extremes where the passenger arrives at 12:00 and (a) the next three trains are scheduled to depart at 12:01, 12:02, and 12:03 versus (b) the next three trains are scheduled to depart at 12:58, 12:59, and 13:00. The correct interpretation is that a+b+c \in (0,3).
 
But I did say the hour I was considering started just after the departure of a train not just after the arrival of the passenger.

In your first example, if we consider the interval (12:01,13:01] the times would be \frac{1}{60},\frac{1}{60},\frac{58}{60} and
\frac{1}{60}+\frac{1}{60}+\frac{58}{60}=1.

In your second example, if we consider the interval (12:58,13:58] the times would be the same.

In either of the cases, since all hour intervals displaced from the interval considered by an integral number of hours will both be identical and cover the time line it should be sufficient to consider just the expectation in one interval.
 
Last edited:
Martin Rattigan said:
Let the intervals between the start of the hour and the departures in the hour be a, b\ and\ c.
Martin Rattigan said:
But I did say the hour I was considering started just after the departure of a train not just after the arrival of the passenger.
These are quite a different beasts. Denoting the intervals a, b, c as the time between passenger arrival and departure of trains A, B, C helps answer the question. Looking at the times between successive departures does not, because the only departure we are concerned with is the first, and that is the one item that the new definitions of a, b, c do not measure.
Let
<br /> \begin{align*}<br /> t_0 &amp; = \;\text{time of passenger arrival} \\<br /> t_i &amp;= \;\text{time of departure of $i^{th}$ train, $i\in(1,2,3)$} <br /> \end{align*}<br />
with the trains departing such that t_1 &lt; t_2 &lt; t_3&lt; 1. The OP asked for \operatorname{E} (t_1 - t_0)
Your new definitions are equivalent to \Delta t_i = t_{i+1} - t_i where t_{i+3} = t_i + 1 by definition of the probem. With this definition, I agree that \Delta t_1 + \Delta t_2 + \Delta t_3 = 1. However,
  • The only item of concern here is t_1. The passenger will take the first train to depart. That exactly two more depart within one hour after the passenger's arrival is irrelevant to the problem at hand.
  • The new definitions of a, b, and c span more than one hour after the passenger arrives. This interval covers four departures: trains A, B, C, and (A+1). That four trains depart in the closed interval \begin{bmatrix}t_1, t_1+1\end{bmatrix} is irrelevant to the problem at hand.
Back to your first post,
and the expected wait time is:
a.\frac{1}{2}a+b.\frac{1}{2}b+c.\frac{1}{2}c
=\frac{1}{2}(a^2+b^2+c^2)
Many things are wrong here. This is not the expected wait time for the passenger. It is the root mean square inter-train departure time. It has nothing to do with the wait time, which cannot be expressed in terms of your variables a, b, and c.
 
Last edited:
I agree they are quite different beasts.

I haven't redefined a,b and c. My original post explicitly stated that these were the times within a fixed hour starting immediately after the departure of a train.

It is the train schedule that is fixed and the arrival time of the passenger that is random, not vice versa. I could have used a "calender" hour instead of one starting immediately after a train departure, which would give the same result at the expense of more algebra. In fact any fixed starting point for the hour would do, but not one that depends on the arrival time of the passenger.

The crux of the argument is that the average wait time is the same in consecutive hours, because the departure times within those hours is the same. Therefore the average wait time is the same as the average wait time given that the passenger arrives in some fixed period of an hour.

Using the hour I originally suggested (which gives three intervals instead of the more general four) this is

p_1.w_1+p2.w2+p3.w3\ \ldots(1)

where p_i is the probability the passenger arrives in the i^{th} interval, and w_i is the average wait time given that he arrives in the i^{th} interval.

So p_1=a,p_2=b,p_3=c (since the units are hours) and the average wait time for each interval is half the interval, i.e.
w_1=\frac{1}{2}a,w_2=\frac{1}{2}b,w_3=\frac{1}{2}c

Inserting these values into (1) gives the formula I used.
 
Last edited:
Martin Rattigan said:
I haven't redefined a,b and c. My original post explicitly stated that these were the times within a fixed hour starting immediately after the departure of a train.
When someone completely misinterprets my technical writing the error is often mine, not the reader's. In this case,
Let the intervals between the start of the hour and the departures in the hour be a, b\ and\ c.
clearly did NOT mean the inter-train departure intervals to me. I took that statement as meaning t_i - t_0, where t_0 is the passenger's arrival time and [t_i is the i^{th} train's departure.

Now that I know what you are talking about, I agree. The expected wait time is at least 10 minutes, and is 10 minutes only if the trains leave exactly 20 minutes apart.

Aside:
It is the train schedule that is fixed and the arrival time of the passenger that is random, not vice versa.
Have you every used Amtrak? Taken the Washington DC subway? My arrival time is a whole lot less random than the trains departure times. Train schedules are fiction.
 
Last edited:
Yes - I did think of adding an explicit calculation based on a purely random arrival rate with a probability density of three per hour to account for that sort of thing, but then I would have had to redo it for two per hour to accommodate Virgin trains in England.
 

Similar threads

Back
Top