GATE CS 2024 Set 1 — Question 14

MCQ+1 / -0.33MediumSample Space & EventsProbability & StatisticsEngineering Mathematics

Engineering Mathematics → Probability & Statistics → Sample Space & Events

Last updated

Question

Consider a permutation sampled uniformly at random from the set of all permutations of {1,2,3,,n}\{1, 2, 3, \dots, n\} for some n4n \geq 4. Let XX be the event that 1 occurs before 2 in the permutation, and YY the event that 3 occurs before 4. Which one of the following statements is TRUE?
A.
The events XX and YY are mutually exclusive
B.
The events XX and YY are independent
C.
Either event XX or YY must occur
D.
Event XX is more likely than event YY

Correct answer

(B) The events X and Y are independent

Solution

Let SS be the set of all n!n! permutations of the set {1,2,3,,n}\{1, 2, 3, \dots, n\}.
1.Event XX: 1 occurs before 2. In any random permutation, the relative order of 1 and 2 can only be (1, 2) or (2, 1). By symmetry, both are equally likely. Thus, P(X)=12P(X) = \frac{1}{2}.
2.Event YY: 3 occurs before 4. Similarly, the relative order of 3 and 4 can only be (3, 4) or (4, 3), and both are equally likely. Thus, P(Y)=12P(Y) = \frac{1}{2}.
3.Independence: To determine if XX and YY are independent, we check if P(XY)=P(X)P(Y)P(X \cap Y) = P(X)P(Y).
Consider the relative ordering of the subset {1,2,3,4}\{1, 2, 3, 4\}. There are 4!=244! = 24 possible relative orderings of these four elements, all of which are equally likely in a random permutation of nn elements.
  • The event XYX \cap Y occurs when 1 is before 2 AND 3 is before 4.
  • Out of the 24 permutations of {1,2,3,4}\{1, 2, 3, 4\}, we can count the number of ways where both conditions are met:
  • Choose 2 positions out of 4 for the pair {1,2}\{1, 2\} in (42)=6\binom{4}{2} = 6 ways. In each choice, there is exactly 1 way to place them such that 1 is before 2.
  • The remaining 2 positions must be filled by {3,4}\{3, 4\}. There is exactly 1 way to place them such that 3 is before 4.
  • Total favorable outcomes = 6×1×1=66 \times 1 \times 1 = 6.
  • P(XY)=624=14P(X \cap Y) = \frac{6}{24} = \frac{1}{4}.
Since P(XY)=14=12×12=P(X)P(Y)P(X \cap Y) = \frac{1}{4} = \frac{1}{2} \times \frac{1}{2} = P(X)P(Y), the events XX and YY are independent.
Analysis of other options:
  • (A) False: P(XY)=1/40P(X \cap Y) = 1/4 \neq 0, so they are not mutually exclusive.
  • (C) False: P(XY)=P(X)+P(Y)P(XY)=1/2+1/21/4=3/4P(X \cup Y) = P(X) + P(Y) - P(X \cap Y) = 1/2 + 1/2 - 1/4 = 3/4. Since the probability is not 1, it is not guaranteed that either XX or YY must occur.
  • (D) False: P(X)=P(Y)=1/2P(X) = P(Y) = 1/2, so they are equally likely.

More questions on Probability & Statistics

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free