GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 44

Bayes rule for city temperatures

Discrete Mathematics · Probability & Random Variables · Full GATE CSE 2018 paper

GATE 2018, Q44 2 marks · NAT
Report issue

Probability & Random Variables

Question 44, GATE 2018: Guwahati H,M,L probabilities are .2,.5,.3. Delhi conditional H,M,L probabilities by Guwahati row are H:(.40,.48,.12), M:(.10,.65,.25), L:(.01,.50,.49). Find P(Guwahati H | Delhi H), to two decimals.
Tap to enlarge
Answer & solution

Official answer: 0.60 to 0.62

Our answer: 0.60

Method

The table conditions on Guwahati, whereas the question conditions on Delhi, so reading .40 directly reverses the conditioning incorrectly. The denominator must include all three ways Delhi can be hot: Guwahati hot, medium or low. Their joint probabilities are .08,.05,.003. The desired event is just the first contribution divided by their sum .133. Columns of a conditional table need not sum to one before weighting by the row probabilities.

Solution

By total probability, P(H_D)=0.40*0.2+0.10*0.5+0.01*0.3=0.133. The joint probability P(H_G and H_D)=0.40*0.2=0.08. Bayes gives 0.08/0.133=80/133≈0.601504, which rounds to 0.60. The full accepted interval 0.60–0.62 is preserved.

Original paper, page 19 · Answer key