← Microsoft Interview Insights
I knew this was a conditional probability setup but blanked on the exact formula for a second.
Recognize this as a classic Bayes' theorem problem and set up the calculation using the law of total probability. Clearly define the events and compute the posterior probability P(A|D) = P(D|A)P(A) / [P(D|A)P(A) + P(D|B)P(B)]. Walk through the arithmetic step-by-step to show your reasoning.
Pro tip: After computing the exact probability, mention that the result makes intuitive sense: even though Machine A has a higher defect rate, its larger production share pulls the posterior probability above 50%. This demonstrates you can sanity-check your answer.
Let A be the event that a bulb is from Machine A, B from Machine B, and D that it is defective. Write down P(A)=0.6, P(B)=0.4, P(D|A)=0.05, P(D|B)=0.03.
Use the law of total probability: P(D) = P(D|A)P(A) + P(D|B)P(B) = 0.05*0.6 + 0.03*0.4 = 0.03 + 0.012 = 0.042.
Compute P(A|D) = P(D|A)P(A) / P(D) = 0.03 / 0.042 ≈ 0.7143 or 71.43%.
Explain that there is about a 71.4% chance the defective bulb came from Machine A. Note that this is higher than the prior 60% because Machine A has a higher defect rate.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.