Simplest Diagnostic Case
Suppose know Alarm ringing & want to know: Burglary?
P(B|A) =P(A|B) P(B) / P(A)
1 =P(A|B)P(B)/P(A) + P(A|~B)P(~B)/P(A)
1 =[P(A|B)P(B) + P(A|~B)P(~B)] / P(A)
P(A) =P(A|B)P(B) + P(A|~B)P(~B)
P(B | A) =P(A|B) P(B) / [P(A|B)P(B) + P(A|~B)P(~B)]
= .95*.001 / [.95*.001 + .01*.999] = 0.087