A letter is known to have arrived by post either from KANPUR or from ANANTPUR. On the envelope just two consecutive letters AN are visible. The probability, that the letter came from ANANTPUR, is:
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. The chance of seeing a given pair is the number of such pairs over the number of consecutive pairs in the word.
Concept refresher. If are mutually exclusive and exhaustive events with , and is an observed event with , then Bayes theorem gives
Picture the situation. Let be the letter from KANPUR, from ANANTPUR, and the event that the visible pair of consecutive letters is AN. A word of letters has pairs of consecutive letters, and the visible pair is equally likely to be any of them.
Approach. Count the pairs and the AN pairs of each word to get the two likelihoods, then apply Bayes theorem with equal priors.
Step 1: Count the pairs in each word
KANPUR has six letters, so five consecutive pairs (KA, AN, NP, PU, UR), with one AN. ANANTPUR has eight letters, so seven pairs (AN, NA, AN, NT, TP, PU, UR), with two AN:
Step 2: Apply Bayes theorem
Both words are equally likely to be the source, so and the priors cancel:
Answer. (B)
Sanity check. The probability of KANPUR is , and the two add to . ANANTPUR is favoured, as expected, because it shows AN in a larger share of its pairs, .
Smart method. With equal priors, the posterior odds equal the ratio of the likelihoods: , so the probability of ANANTPUR is
This holds whenever the two sources are equally likely.
Why the other options are wrong
- (A) The value would need the two likelihoods in the ratio , but they are .
- (C) Taking for KANPUR, one AN among its six letters instead of its five pairs, gives .
- (D) With the same count of six for KANPUR, is the probability of KANPUR, not of ANANTPUR: .
Key takeaway
The trap. Dividing by the number of letters, six and eight, instead of the number of pairs, five and seven.
How toppers think. With equal priors they compare the likelihoods directly as odds.
Remember. .
More on Bayes’ Theorem
- A candidate has to go to the examination centre to appear in an examination. The candidate uses only one…
- A bag contains (N + 1) coins - N fair coins, and one coin with 'Head' on both sides. A coin is selected at…
- The probabilities that players A and B of a team are selected for the captaincy for a tournament are 0.6 and…
- All 30 on Bayes’ Theorem ›