Beruflich Dokumente
Kultur Dokumente
Conditional Probability
CS 2800: Discrete Structures, Fall 2014
Sid Chaudhuri
Independence of Events (revisited)
P( A∩B)=P ( A) P(B)
Independence of Events (revisited)
P( A∩B)=P ( A) P(B)
if and only if
P( A∩B)
P( B)=
P( A)
(assuming P(A) ≠ 0)
Independence of Events (revisited)
P( A∩B)=P ( A) P(B)
P( B∣A)
Conditional Probability
P( B∣A)
The probability of
Conditional Probability
P( B∣A)
The probability of
B
Conditional Probability
P( B∣A)
P( B∣A)
P( B∣A)
and defned as
P ( A∩B)
P( A)
Conditional Probability
P( B∣A)
and defned as
P ( A∩B)
P( A)
WTF #2?
Why does this make sense?
Intuitively, P(B | A) is the probability that event B
occurs, given that event A has already occurred
B
A∩B
S Cases where, given that
A A happens, B also happens
B
A∩B
S
A
B
A∩B
acts as new sample space
(“universe of outcomes
where A happens”)
S
A
B
A∩B
acts as new sample space
(“universe of outcomes
where A happens”)
S
A
B
A∩B
all outcomes where B
happens, in this restricted
space, i.e. given that A is
known to have happened
Thought for the Day #1
(by defnition)
(if independent)
Independence of Events (revisited)
P(B | A) = P(B)
Independence of Events (revisited)
P(B | A) = P(B)
(Intuitively: the probability of B happening is
unafected by whether A is known to have happened)
Independence of Events (revisited)
P(B | A) = P(B)
(Intuitively: the probability of B happening is
unafected by whether A is known to have happened)
P(B∣A) P( A)
P( A∣B)=
P (B)
Bayes' Theorem
P(B∣A) P( A)
P( A∣B)=
P (B)
P(B∣A) P( A)
P( A∣B)=
P (B)
P(B∣A) P( A)
P( A∣B)=
Posterior P (B)
probability of A, given evidence B
since P(A | B) P(B) = P(A ∩ B) = P(B | A) P(A)
(by defnition of conditional probability)
How do we estimate P(B)?
If P(A) ≠ 0 or 1,
● Conditional probabilities:
– P(Positive | Carrier) = 0.99
– P(Positive | NotCarrier) = 0.05
Example: Medical Diagnosis
P(Carrier | Positive)
P(Carrier | Positive)
= 0.0194
XKCD