GATE / CS ARCHIVE

SIMILAR QUESTIONS / ENGINEERING MATHEMATICS & OTHER TOPICS

Infer a binary source from an observed signal or outcome

2 questions solved the same way, newest first. Back to Engineering Mathematics & Other Topics

How these are solved

Both ask for the posterior probability of one of two possible sources given an observed outcome. Multiply each source prior by its outcome likelihood, sum the two weights, and normalize the target weight.

1 mark · NAT
Report issue

Updating coin probabilities after two heads

Probability & Statistics

Question 32, GATE 2025: A box contains four fair coins and one coin that always produces heads. Choose one of the five coins uniformly and toss that same coin twice. Given two heads, find the probability the chosen coin is the fake coin, to two decimal places.
Tap to enlarge
Answer & solution

Official answer: 0.49 to 0.51

Our answer: 0.50

Approach: Use Bayes’ rule because observing heads changes the relative plausibility of the two kinds of coin.
Let F denote the fake coin and H denote the observed pair of heads. Before tossing, P(F)=1/5 and P(not F)=4/5. The fake always gives heads, so P(H|F)=1. With a fair coin, independent tosses give P(H|not F)=(1/2)²=1/4.
The total probability of two heads is P(H)=(1/5)×1+(4/5)×(1/4)=2/5. Consequently P(F|H)=P(F and H)/P(H)=(1/5)/(2/5)=1/2=0.50.
Two heads do not prove that the coin is fake: the combined four-coin fair alternative has exactly as much probability mass for this observation as the fake alternative. The official range 0.49–0.51 and the existing supplemental/excluded classification are retained.

Original paper, page 32 · Answer key

2 marks · NAT
Report issue

Probability & Statistics

Question 54, GATE 2021: A sender transmits H with probability .1 and L with probability .9. Channel edge probabilities are P(received H|sent H)=.3, P(received L|sent H)=.7, P(received H|sent L)=.8, P(received L|sent L)=.2. Given that H was received, find the probability H was sent, rounded to two decimals.
Tap to enlarge
Answer & solution

Official answer: 0.04

Bayes rule gives P(sent H given received H)=P(received H given sent H)P(sent H)/P(received H). The diagram gives 0.3 for H-to-H and 0.8 for L-to-H. The numerator is 0.3*0.1=0.03, and the denominator is 0.3*0.1+0.8*0.9=0.75. The conditional probability is 0.03/0.75=0.04.

Among an imagined 1000 transmissions, 100 are H and 900 are L. Expected received-H counts are 30 from sent-H and 720 from sent-L. Conditioning on received H therefore selects a population of 750, of which only 30 originated as H: 30/750=.04. The reversed conditional P(received H|sent H)=.3 is not the requested P(sent H|received H), because the prior probabilities differ greatly.

Original paper, page 41 · Answer key