Application of
Prior New Posterior
Bayes
Probabilities Information Probabilities
Theorem
Application of Bayes Theorem
Thus:
P(A1) = .65 and P(A2) = .35
Quality levels differ between suppliers
Percentage Percentage
Good Parts Bad Parts
Supplier 1 98 2
Supplier 2 95 5
A1
B
(A1, B)
A2 G (A2, G)
B
(A2, B)
Each of the experimental
outcomes is the intersection of 2
events. For example, the
probability of selecting a part
from supplier 1 that is good is
given by:
P( A1 , G ) P( A1 G ) P ( A1 ) P(G | A1 )
Probability Tree for Two-Supplier Example
Step 2 Probability of Outcome
Step 1
Condition
Supplier
P(G | A1) P ( A1 G ) P( A1 ) P (G | A1 ) .6370
.98
P(A1)
P(B | A2)
P(B | A2)
P(A2) P( A2 G ) P( A2 ) P(G | A2 ) .3325
.95
.35
P(B | A2)
P( A2 B) P ( A2 ) P(G | A2 ) .0175
.05
A bad part broke one
of our machinesso
were through for the
day. What is the
probability the part
came from suppler 1?
P( A1 B) P( A1 ) P( B | A1 ) (4.15)
The probability of selecting a bad
part is found by adding together
the probability of selecting a bad
part from supplier 1 and the
probability of selecting bad part
from supplier 2.
That is:
P( B) P ( A1 B) P ( A2 B )
(4.16)
P ( A1 ) P ( B | A1 ) P ( A2 ) P ( B / A2 )
Bayes Theorem for 2 events
By substituting equations (4.15) and (4.16) into
(4.14), and writing a similar result for P(B | A2), we
obtain Bayes theorem for the 2 event case:
P ( A1 ) P ( B | A1 )
P ( A1 | B)
P ( A1 ) P ( B | A1 ) P ( A2 ) P ( B | A2 )
P ( A2 ) P ( B | A2 )
P( A2 | B)
P( A1 ) P ( B | A1 ) P( A2 ) P( B | A2 )
Do the Math
P( A1 ) P ( B | A1 )
P( A1 | B )
P ( A1 ) P ( B | A1 ) P ( A2 ) P( B | A2 )
(.65)(.02) .0130
.4262
(.65)(.02) (.35)(.05) .0305
P( A2 ) P ( B | A2 )
P ( A2 | B )
P ( A1 ) P ( B | A1 ) P( A2 ) P( B | A2 )
(.35)(.05) .0175
.5738
(.65)(.02) (.35)(.05) .0305
Bayes Theorem
P( Ai ) P( B | Ai )
P( Ai | B)
P( A1 ) P( B | A1 ) P( A2 ) P( B | A2 ) ... P( An ) P( B | An )
Tabular Approach to Bayes Theorem
2-Supplier Problem
(1) (2) (3) (4) (5)
Prior Conditional Joint Posterior
Probabilities
Events Probabilities Probabilities Probabilities
P(Ai) P(Ai | B)
Ai P(B | A1 ) P(Ai B)
a. P(S1) = .5
b. P(B | S1) = .75
c. Use Bayes theorem to compute the posterior probability that a
request for information indicates a successful bid.
P ( S1 B ) (.5)(.75)
P ( S1 | B )
P ( S1 B ) P( S 2 B ) (.5)(.75) (.5)(.4)
.375
.652
.575