Curated · Bayes Theorem

MCQ · 1 mark · Problem EM-CBAY-0005

A factory has three machines \(M_1\), \(M_2\) and \(M_3\), which produce \(50\%\), \(30\%\) and \(20\%\) of its total output, respectively. Of the items produced by \(M_1\), \(M_2\) and \(M_3\), respectively \(1\%\), \(3\%\) and \(4\%\) are defective. An item drawn at random from the total output is found to be defective. Which machine is most likely to have produced it, and with what probability?
  1. A
    \(M_3\), with probability \(\dfrac{4}{11}\)
  2. B
    \(M_2\), with probability \(\dfrac{9}{22}\)
  3. C
    \(M_3\), with probability \(0.04\)
  4. D
    \(M_1\), with probability \(\dfrac{5}{22}\)

Solve it on GATE DA practice →More Conditional Probability & Bayes problems

Show the worked solutionLet \(D\) be the event that the item is defective. By the law of total probability, the marginal probability of \(D\) is\[P(D)=\sum_{i}P(M_i)\,P(D\mid M_i)=0.5(0.01)+0.3(0.03)+0.2(0.04)=0.005+0.009+0.008=0.022 .\]By Bayes' theorem,\[\boxed{P(M_i\mid D)=\frac{P(M_i)\,P(D\mid M_i)}{P(D)}}\]\(P(M_1\mid D)=\dfrac{0.005}{0.022}=\dfrac{5}{22}\approx0.227\), \(P(M_2\mid D)=\dfrac{0.009}{0.022}=\dfrac{9}{22}\approx0.409\), \(P(M_3\mid D)=\dfrac{0.008}{0.022}=\dfrac{4}{11}\approx0.364\).The largest posterior probability is \(9/22\), for \(M_2\). Although \(M_3\) has the highest defect rate, \(M_2\) produces more of the output, so it is the most likely source. Option (C) confuses \(P(D\mid M_3)=0.04\) with \(P(M_3\mid D)\).Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com