Using Bayes’ theorem one can determine the probability that a given defective
chip comes from factory A. Let d be the event ‘the chip is defective’, A the event
‘the chip comes from factory A’, and B.D AN/ the event ‘the chip comes from
factory B’. From Bayes’ theorem we then have