Bayes Theorem
Bayes Theorem
Bayes Theorem
For two events A and B where B follows event A, event A can occur in A1,
A2… An mutually exclusive ways, and event b can occur in B1, B2…Bn
mutually exclusive ways then
P (A1/B1) = P(A1).P(B1/A1)
2. Within the sample space there exists an event B, for which P(B)
>0
Example 1
Solution
P(B/A2) = 0.1 (When it doesn’t rain he predicts rain 10% of the time)
Therefore when the weatherman predicts rain, it actually rains only about
11% of the time.
Example 2
Note: Three mutually exclusive events with another event, all with
probabilities – use Bayes!
Solution
For the others the denominator remains the same (as with all Bayes
problems)
Example 3
A test set has a 98% probability of correctly classifying a faulty item as
defective and a 4% probability of classifying a good item as defective. If in
a batch of items tested 3% are actually defective, what is the probability
that when an item is classified as defective, it is truly defective?
P(A1/B) = P(A1)P(B/A1)
P(A1)P(B/A1) + P(A2)P(B/A2)