Probability of No Consecutive Stations Between X and Y

  • Thread starter Thread starter gaganpreetsingh
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary
The discussion focuses on calculating the probability that a train stopping at three of n stations between cities X and Y does not stop at consecutive stations. The initial analysis suggests using combinations and arithmetic series to determine the number of ways to select stops while excluding consecutive ones. A proposed formula for the probability is Pr{event} = 1 - (n-1)(n-2)/2*nC3, leading to a simplified expression of (n-3)/n. Participants also suggest using a systematic approach with an n-by-n table to visualize the stops and ensure non-consecutiveness. The conversation emphasizes the need for clarity in the calculations to arrive at the correct probability.
gaganpreetsingh
Messages
24
Reaction score
0
There are n stations between two cities X and Y. At train is to stop at three of these n stations. Find the probability that no two of these three stations are consecutive.

This is what I did:

Total number of possibilities nc3 .
Now suppose that the stations train stops at is such that exactly two of these are consecutive.
(1,2) then it may stop at (4,5,6…..n) and no. of possibilities are n-3
(2,3) then it may stop at (5,6,7…..n) and no. of possibilities are n-4
…………………………………….
(n-3,n-2) then it may stop only at n and no. of possibilities are 1

So the number of ways in which the train may stop at exactly two consecutive stations is
(n-3) + (n-4) + ……… + 1 n-3 terms

using formula of A.P. [n/2 (a+l)] n is no. of terms, a is first term, l last ]
possibilities are (n-3)(n-2)/2

Now if exactly 3 stations are consecutive then (1,2,3) (2,3,4)….. (n-2,n-2,n)
Hence here the no. of possibilities are n-2

So the things I have to exclude are (n-3)(n-2)/2 + (n-2)
Which is equal to (n-1)(n-2)/2

So we have Pr{event} = 1 – (n-1)(n-2)/2*nC3 = (n-3)/n

But I am not getting the right answer. Any help where my analysis is wrong?
 
Physics news on Phys.org
Let's see... Suppose the train were to make 2 stops. You could make an n-by-n table, where a row shows the 1st stop and a column shows the 2nd stop. (E.g. if n=7 then the table will have 49 cells.) Since 1st stop < 2nd stop, you need to consider the cells above the diagonal only. The consecutive stops are of the form (k, k+1); they are the cells just above the diagonal. There are n-1 such cells.

Now you could apply this logic to your case (with 3 stops).
 
Gaganpreet Singh, nice to see another sardar here. :wink: WJKK WJKF! _/|\_
 
OptimusPrime said:
Gaganpreet Singh, nice to see another sardar here. :wink: WJKK WJKF! _/|\_
Do you have something to contribute to the discussion here?
 
gaganpreetsingh said:
There are n stations between two cities X and Y. At train is to stop at three of these n stations. Find the probability that no two of these three stations are consecutive.
The first stop can be anything betveen 1 and n-4. Let it be "j".
The second stop "k" can be any number from j+2 to n-2.
The third stop "l" can be any number from k+2 to n.
The number of possible arrangement of stops is
M = \sum_{1}^{n-4} \sum_{j+2}^{n-2} \sum_{k+2}^{n}1=\frac{(n-2)(n-3)(n-4)}{6}

ehild
 

Similar threads

Replies
12
Views
4K
Replies
14
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 21 ·
Replies
21
Views
1K
Replies
16
Views
2K