Three machines make 50 %, 30 % and 20 % of the parts, with 1 %, 2 % and 5 % defective. A part is found defective. What is the probability it came from machine 1?
Bayes' theorem inverts a conditional probability: it gives the probability \(P(B_j\mid A)\) of a cause \(B_j\) given an observed effect \(A\), from the probability of the effect given that cause.