GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Infer a source category from observed evidence using Bayes

2 questions solved the same way, newest first. Back to Discrete Mathematics

How these are solved

Both supply a finite exhaustive partition with prior probabilities and conditional evidence likelihoods, then ask which partition category produced an observed outcome.

2 marks · NAT
Report issue

Bayes rule for city temperatures

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

2 marks · MCQ
Report issue

Bayesian selection of an urn

Probability & Random Variables

Question 51, GATE 2005: Bag P has two red and three blue balls; bag Q has three red and one blue. Select P with probability 1/3 and Q with probability 2/3, then draw uniformly from that bag. Given a red ball, probability bag P was selected? A4/19; B5/19; C2/9; D19/30. The alternate omits the color of Q’s three balls; use the explicit GFG wording.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Using the the paper statement that Q has 3 RED and 1 blue ball, P(P∩red)=(1/3)(2/5)=2/15 and P(Q∩red)=(2/3)(3/4)=1/2. Bayes gives (2/15)/(2/15+1/2)=4/19, A.

Bayes reverses the conditioning: the question asks P(P|red), not P(red|P). First weight each red probability by how often that bag is selected. P contributes 2/15 and Q contributes 1/2, so total red probability is 19/30. Divide 2/15 by 19/30 to get 4/19. The larger posterior weight of Q is consistent with its being chosen more often and containing a larger red fraction.

Original paper, page 6