Skip to content
Official PYQ · 2008

GATE CS 2008 Q27 — Conditional Probability and Bayes Theorem

Explain with AI

Aishwarya studies either computer science or mathematics everyday. If she studies computer science on a day, then the probability that she studies mathematics the next day is 0.60.6. If she studies mathematics on a day, then the probability that she studies computer science the next day is 0.40.4. Given that Aishwarya studies computer science on Monday, what is the probability that she studies computer science on Wednesday?

Choose one option
View worked solution

Answer: C

Let CC denote studying Computer Science and MM denote studying Mathematics.

From the problem statement, we have the following transition probabilities:

  • If she studies CC on a day:
    • Probability of studying MM the next day: P(M∣C)=0.6P(M \mid C) = 0.6
    • Probability of studying CC the next day: P(C∣C)=1−0.6=0.4P(C \mid C) = 1 - 0.6 = 0.4
  • If she studies MM on a day:
    • Probability of studying CC the next day: P(C∣M)=0.4P(C \mid M) = 0.4
    • Probability of studying MM the next day: P(M∣M)=1−0.4=0.6P(M \mid M) = 1 - 0.4 = 0.6

We are given that Aishwarya studies Computer Science on Monday (XMon=CX_{\text{Mon}} = C). We want to find the probability that she studies Computer Science on Wednesday (XWed=CX_{\text{Wed}} = C).

There are two mutually exclusive paths from Monday to Wednesday:

  1. Path 1: Monday (CC) →\to Tuesday (CC) →\to Wednesday (CC) P(C→C→C)=P(C∣C)×P(C∣C)=0.4×0.4=0.16P(C \to C \to C) = P(C \mid C) \times P(C \mid C) = 0.4 \times 0.4 = 0.16
  2. Path 2: Monday (CC) →\to Tuesday (MM) →\to Wednesday (CC) P(C→M→C)=P(M∣C)×P(C∣M)=0.6×0.4=0.24P(C \to M \to C) = P(M \mid C) \times P(C \mid M) = 0.6 \times 0.4 = 0.24

Adding the probabilities of these two disjoint paths:

P(XWed=C∣XMon=C)=0.16+0.24=0.4P(X_{\text{Wed}} = C \mid X_{\text{Mon}} = C) = 0.16 + 0.24 = 0.4

Alternative Elegant Method (Markov Chain Transition):

The one-step transition probability matrix PP (with states CC and MM) is:

P=(P(C∣C)P(M∣C)P(C∣M)P(M∣M))=(0.40.60.40.6)P = \begin{pmatrix} P(C \mid C) & P(M \mid C) \\ P(C \mid M) & P(M \mid M) \end{pmatrix} = \begin{pmatrix} 0.4 & 0.6 \\ 0.4 & 0.6 \end{pmatrix}

Since both rows of the transition matrix are identical, the probability of transitioning to state CC on any subsequent day is independent of the current state and is always 0.40.4.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Conditional Probability and Bayes Theorem questions