Conditional Prob
Conditional Prob
CONDITIONAL PROBABILITY
CONDITIONAL PROBABILITY
• The probability of event A, given that event B
occurred is called the conditional probability
of A given B and denoted by P(A|B)
P (A B
P (A | B ) , P (B ) 0
P (B )
2
CONDITIONAL PROBABILITY
• The conditional probability of B, given A is
P (A B
P (B | A ) , P (A ) 0
P (A )
• It follows that
P (A B ) P (A )P (B | A ) P (B )P (A | B )
3
CONDITIONAL PROBABILITY
• Multiplication Rule for 3 events A, B, and C is
P (A B C ) P (A )P (B | A )P (C | A B )
n n 1
P Ai P (A1 )P (A 2 | A1 )P (A3 | A1 A 2 )...P A n | A i
i 1 i 1
4
CONDITIONAL PROBABILITY
Example : (1) Let A, B be defined on S such that:
P (A ) 0.38, P (B ) 0.45, P (A B ) 0.65
Find P(A|B), P(B|A).
Solution:
P(A∩ B) = 0.38 + 0.45 – 0.65 = 0.18
P(A | B) = 0.18 / 0.45 = 0.40
P(B | A) = 0.18 / 0.38 = 0.47
5
CONDITIONAL PROBABILITY
Example (2):
Two cards are drawn at random, in succession
from an ordinary deck of 52 playing cards.
Find the probability that both cards will be
Hearts, if the drawing was:
(1) with replacement
(2) without replacement
6
CONDITIONAL PROBABILITY
Solution:
Let Hi = event i th card is Heart, i = 1, 2.
Required Probability = P(H1 ∩H2)
= P(H1 ) P(H2 | H1 )
(1) Req. Prob. = (13/52) x (13/52) = 0.063
(2) Req. Prob. = (13/52) x (12/51) = 0.059
7
CONDITIONAL PROBABILITY
Example (3):
Two cards are drawn at random, in succession
from an ordinary deck of 52 playing cards.
Find the probability that both cards will be
Kings, if the drawing was:
(1) with replacement
(2) without replacement
8
CONDITIONAL PROBABILITY
Solution:
Let Ki = event i th card is King, i = 1, 2.
Required Probability = P(K1 ∩K2)
= P(K1 ) P(K2 | K1 )
(1) Req. Prob. = (4/52) x (4/52) = 0.006
(2) Req. Prob. = (4/52) x (3/51) = 0.005
9
CONDITIONAL PROBABILITY
Example (4)
Three cards are drawn at random in succession
from an ordinary deck of 52 playing cards.
Find the probability that all cards will be Kings,
if the drawing was:
(1) with replacement
(2) without replacement
10
CONDITIONAL PROBABILITY
Solution:
Let Ki = event i th card is King, i = 1, 2, 3.
Req. Prob. = P(K1 ∩ K2 ∩ K3 )
= P(K1 ) P(K2 | K1 ) P(K3 | K1 ∩ K2)
(1) Req. Prob. = (4/52)3 = 0.0005
(2) Req. Prob. = (4/52) x (3/51) x (2/50)
= 0.0002
11
CONDITIONAL PROBABILITY
Example (5)
Three cards are drawn at random in succession
from an ordinary deck of 52 playing cards.
Find the probability that all cards will be
Hearts, if the drawing was:
(1) with replacement
(2) without replacement
12
CONDITIONAL PROBABILITY
Solution:
Let Hi = event i th card is Heart, i = 1, 2, 3.
Req. Prob. = P(H1 ∩ H2 ∩ H3 )
= P(H1 ) P(H2 | H1 ) P(H3 | H1 ∩ H2)
(1) Req. Prob. = (13/52)3 = 0.016
(2) Req. Prob. = (13/52) x (12/51) x (11/50)
= 0.013
13
CONDITIONAL PROBABILITY
Independence of events
Events A and B are said to be statistically
independent if
P(A|B) = P(A)
Or, equivalently
P(B|A) = P(B)
Consequently, for independent events:
P(A∩B) = P(A) P(B)
P (B 2 | B 1 )P (B 1 )
P (B 1 | B 2 ) ...
P (B 2 )
0.8 0.9