Mathematics (JEE)HardGATE CS · ISI
In a spam filter, 40% of emails are spam. Word W1 appears in 50% of spam and 10% of legitimate emails; word W2 appears in 40% of spam and 20% of legitimate emails. Treat the two words as conditionally independent given the email's class. An email contains both W1 and W2. What is the probability that it is spam?
- A. 10/11
- B. 4/7
- C. 20/23
- D. 2/5
Correct answer: C. 20/23
Posterior = 0.4(0.5)(0.4) / [0.4(0.5)(0.4) + 0.6(0.1)(0.2)] = 0.08/0.092 = 20/23. Dropping the prior gives 10/11, and forgetting W2 in the legitimate branch gives 4/7.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- Two cards are drawn one after the other without replacement from a standard 52-card deck. What is the probability that the second card has…
- Two fair dice are rolled repeatedly. What is the expected number of rolls until the two dice first show equal faces?
- Three cards are drawn without replacement from a standard 52-card deck, every 3-card hand equally likely. What is the probability that the…
- A fair die is rolled repeatedly and the faces are added up, starting from 0. The process stops as soon as the running total is 10 or more…
- A word of length 4 is formed by choosing each letter independently and uniformly from {a, b, c}. What is the probability that the word…
- A 5-element subset of {1, 2, ..., 10} is chosen uniformly at random from all C(10,5) = 252 subsets. What is the probability that no two of…