Lecture 03
Lecture 03
Theorem
MSU-STT-351-sum-19B
1 Conditional Probability
2 Bayes’ Theorem
3 Independent Events
5 Exercise
6 Homework
P (A ∩ B )
P (A |B ) = P (A and B )/P (B ) = .
P (B )
P (A and B ) = P (A ∩ B ) = P (A |B )P (B );
P (A and B ) = P (A ∩ B ) = P (B |A )P (A ).
Example 1 (Ex. 58): Show that for events A , B and C with P (C ) > 0,
P (A ∪ B |C ) = P (A |C ) + P (B |C ) − P (A ∩ B |C ).
Proof: Note
P (A ∪ B ) ∩ C P (A ∩ C ) ∪ (B ∩ C )
P (A ∪ B |C ) = =
P (C ) P (C )
P (A ∩ C ) + P (B ∩ C ) − P (A ∩ B ∩ C )
=
P (C )
=P (A |C ) + P (B |C ) − P (A ∩ B |C ).
P (A ∪ B |C ) = P (A |C ) + P (B |C ).
P (A c |B ) =1 − P (A |B )
P (A |B )+P (A c |B ) = 1
P (B |B ) =1.
P (A |B c ) , 1 − P (A |B );
P (A c |B c ) , 1 − P (A |B );
P (A |B ) + P (A c |B c ) , 1.
S = {G1 G2 , G1 R2 , R1 G2 , R1 R2 }
8 2 10
P (G2 ) = P (R1 G2 ) + P (G1 G2 ) = + = .
30 30 30
G1
G1 R2
R 1 G2
R1
R1 R2
Suppose that green ball was observed in the second draw. What is the
conditional probability that the first ball was also green?
It is given by
2
P (G1 G2 ) 30
P ( G1 | G2 ) = = 10
= 0.2.
P ( G2 ) 30
(Do it yourself!).
Goals
Grades Popular Sports Total
Boy 24 10 13 47
Gender Girl 27 19 7 53
Total 51 29 20 100
(ii ) Find the probability that “a girl is selected and she wants to excel at
sports.”
It is given by
P (G ∩ S ) = (7/100) = 0.07
(iii ) Find the probability that “a student wants to excel at sports, given that
a girl is selected.”
It is given by
P (GS ) (7/100) 7
P ( S |G ) = = = .
P (G ) (53/100) 53
Multiplication Rule:
From
P (A ∩ B )
P ( A |B ) = ,
P (B )
we get
P (A ∩ B ) = P (A |B )P (B )
= P (B |A )P (A ).
Proof:
Since Ai ’s are mutually exclusive and exhaustive, if B occurs it must be in
conjunction with exactly one of the Ai ’s. That is,
B = (B ∩ A1 ) ∪ ... ∪ (B ∩ Ak ),
k
X k
X
P (B ) = P (B ∩ Ai ) = P (B |Ai )P (Ai ),
i =1 i =1
P (A ∩ B ) P ( B |A ) P ( A )
P (A |B ) = = .
P (B ) P (B )
But P (B ) is not given. However,
P (B ) =P (B ∩ A ) + P (B ∩ A c )
=P (B |A )P (A ) + P (B |A c )P (A c )
P (B |A )P (A )
P (A |B ) = .
P (B |A )P (A ) + P (B |A c )P (A c )
Bayes’ Theorem
for i = 1, . . . , k .
12
3
R1 R2 90
9
R1
4
6 24
10
9
R1 G2 90
24
G1 R 2 90
4
9
6
10
G1
5 30
9 G1 G2 90
In the tree diagram, Ri (Gi ) denotes the event of having a red (green) ball
at the i-th draw, i = 1, 2. Note the second set of branches denotes the set
S of all possible outcomes of the experiment. That is, given by
S = {R1 R2 , R1 G2 , G1 R2 , G1 G2 }.
Similarly, we find
12 24 30
P (R1 R2 ) = ; P (R1 G2 ) = ; P ( G1 G2 ) = .
90 90 90
Note: The sum of the probabilities of all the branches (at the end) add up
to 1.
Note this probability is not shown in the tree, but can be computed as
follows.
Definition 1 (Independence)
Two events A and B are said to be independent if P (B |A ) = P (B ) or
P (AB ) = P (A )P (B ).
Two events A and B are dependent if P (B |A ) , P (B ) or
P (AB ) , P (A )P (B ).
Example 5
Let P (A ) = 0.4 and P (B ) = 0.5. If A and B are independent, find P (AB ).
Solution: Note P (AB ) = P (A )P (B ) = 0.4 × 0.5 = 0.2.
Example 6
Given P (A ) = 0.6, P (B ) = 0.5, P (A ∪ B ) = 0.8, are A and B
independent?
Solution: Note
P (AB ) = P (A ) + P (B ) − P (A ∪ B )
= (0.6 + 0.5 − 0.8)
= 0.30
= P (A )P (B ).
P (R c ∩ H c ) = P (R ∪ H )c
= 1 − P (R ∪ H ).
Now,
P (R ∪ H ) = P (R ) + P (H ) − P (R ∩ H )
= 0.56 + 0.68 − 0.49 = 0.75.
Therefore,
P (R c ∩ H c ) = 1 − (0.75) = 0.25.
(P. Vellaisamy: MSU-STT-351-Sum-19B) Probability & Statistics for Engineers 25 / 36
Bayes’ Theorem
(b) Also,
P (H ∩ R )
P (H |R ) =
P (R )
0.49 7
= = .
0.56 8
7
(c) Since P (H |R ) = , P (H ) = 0.68, the events H and R are not
8
independent.
(d) Are H and R mutually exclusive?
Since P (HR ) = 0.49 > 0, the events H and R are not mutually exclusive.
Example 8 (Ex 71): An oil exploration company currently has two active
projects, one in Asia and the other in Europe. Let A be the event that the
Asian project is successful and B be the event that the European project is
successful. Suppose that A and B are independent events with
P (A ) = 0.4 and P (B ) = 0.7.
(a) If the Asian project is not successful, what is the probability that the
European project is also not successful? Explain your reasoning.
(b) What is the probability that at least one of the two projects will be
successful?
(c) Given that at least one of the two projects is successful, what is the
probability that only the Asian project is successful?
Solution:
(a) Since the events A and B are independent, then A c and B c are also
independent (Prove this fact!).
Hence,
P (B c |A c ) = P (B c ) = 1 − 0.7 = 0.30.
Parallel Systems:
A parallel system PS3 of three components functions if at least one of the
components functions. Let pi = P (Ci = 1) that component Ci works.
Then P (PS3 = 1) = 1 − P (none of the components functions) =
1 − (1 − p1 )(1 − p2 )(1 − p3 ).
C1 C2 C3 C1 C2 C3
C4 C5 C6 C4 C5 C6
C1
C2
C3 C4
Solution:
Let S1 = parallel subsystem of components C1 and C2 ; S2 = series
subsystems of C3 and C4 . Then, S = S1 ∪ S2 (since S1 and S2 are in
parallel). Also, given P (Ci = 1) = 0.9, for 1 ≤ i ≤ 4.
Therefore,
C3 C4
C2
C1