Professional Documents
Culture Documents
Bayes’ Theorem
P(A)P(B/A)
P(A/B)
P(B)
P(A) is the prior probability or marginal probability of A.
P(A|B) is the conditional probability of A, given B. It is
also called the posterior probability
P(B|A) is the conditional probability of B given A.
P(B) is the prior or marginal probability of B
• To derive the theorem, we start from the definition
of conditional probability. The probability of event
A given event B is
P(A B)
P(A/B)
P(B)
• Likewise, the probability of event B given event A
is
P(A B)
P(B/A)
P(A)
• Rearranging and combining these two
equations, we find
P(B/A).P(A)
P(A/B)
P(B)
Calculating Posterior Probabilities
Example.
• We have equal number of two types of biased
(A&B) dice in a bowl. On A type die, one comes
up 40 percent of the time; therefore P (1) = 0.4.
On B type die, one comes up 70 percent of the
time; P (1) =0.7.
• One die is drawn, rolled once, and comes up
one. What is the probability that it is A type die?
Or What is the probability that it is B type die?
Finding the marginal probability of
getting an ace
Elementary Marginal Posterior Joint Probability
event Probability probability
P(1/A).P(A)
P(A/1)
P(1)
P(1/B).P(B)
P(B/1)
P(1)
The revised probabilities are