Professional Documents
Culture Documents
1/18/12%
1%
Bayes Theorem
Theorem: If Pr(A) and Pr(B) are both nonzero,
1/18/12%
1%
Bayes, v. 2
Pr( A) Pr( B | A) Pr( A | B) = Pr( B | A) Pr( A) + Pr( B | A) Pr( A)
This enables us to calculate Pr(A|B) using only the Cardinality absolute probability Pr(A) and the conditional probabilities Pr(B|A) and Pr(B|A). Pr( Aa |B ) Pr( A) How is Set? Proof. We know that Big
Pr( B | A)
Pr( B)
Now multiply by Pr(B|A) and rewrite Pr(B) using the law of total probability.
1/18/12% Harry% Lewis/CS20/CSCI% E4 120/with% thanks% to% Albert% R.% Meyer% 1%
Cardinality
How Big is a Set? Suppose 1% of the population uses drugs. If you test positive, what are the odds you are actually a drug user?
1/18/12% Harry% Lewis/CS20/CSCI% E4 120/with% thanks% to% Albert% R.% Meyer% 1%
Cardinality
1/18/12%
1%
Pr( D ) Pr(T | D ) Pr( D | T ) = Pr(T | D ) Pr( D ) + Pr(T | D ) Pr( D ) .01 .99 = .33 .99 .01 + .02 .99
Cardinality If you fail the drug test, there is only one chance in three you are actually a drug user! How can this be? Think about it.
How Big is a Set? Out of 1000 people there are 10 drug users and
990 non-users. Of those 990, 2% or almost 20 test positive. Almost all of the 10 users also test positive. So there are 2 non-users for every user, among those who test positive! 1/18/12% Harry% Lewis/CS20/CSCI% E4 120/with% thanks% to% Albert% R.% Meyer%
1%
FINISH
Cardinality
How Big is a Set?
1/18/12%
1%