Bayesian Rule - Example 2
Bayesian Rule - Example 2
Bayesian Rule - Example 2
) / ( ) (
( ) (
( ) (
% produced
% defective
C1
50
C2
30
4
An item is purchased and found to be defective. Let us call this event D. After this
result, what is the probability that it was from factory C1?
C3
20
Answer: The probability asked by the question (the posterior probability after the
result of defective is known) can be indicated in symbols as P(C1/D). Note that the
last column shows the conditional probability of defective for each factory. For
example, P(D/C1) is 0.02 or 2 percent. Thus we see that the question asks a reverse,
conditionality to what is given. Clearly this is a case of Bayes Theorem.
The probability of a defective P(D) before the result is known can be found from
the Law of Total probability or the rule of addition for mutually exclusive
events. The defective item can come from any of the factories. Therefore, its total
probability is the sum of the joint probabilities with the three factories.
The joint probability of D with C1 is P(D and C1) = P(C1)*P(D/C1) = 0.5*0.02 =
0.01;