Lecture 3
Lecture 3
Conditional Probability
Theorem of Total Probability
Bayes’ Theorem
Independent Events
if P(A) > 0
Dr. Marwa Mostafa
Example (1): A coin is flipped twice . If we assume that all
four points in the sample space
S = {(H, H), (H, T), (T, H), (T, T)} are equally likely,
what is the conditional probability that both flips result in
heads, given that the first flip does?
E M Total
N 40 30 70
U 20 10 30
Total 60 40
Dr. Marwa Mostafa
100
Solution :
We observe that
n(S) = 100, n(E) = 60, n(M) =40 , n(N) = 70 , n(U) = 30.
In terms of the notation introduced we wish to compute P(E N)
P(acceptable)
P(not defective)
We obtain that
25 40 25 5
P(acceptable not defective)
35 40 35 7
Dr. Marwa Mostafa
Note that :
Solution: Define
E1: We select a bulb from box 1 .
E2 : We select a bulb from box 2 .
D : The selected bulb is defective .
2 1
Then P( E1) P( we get face 1 or face 2) and
6 3
P(E 2 ) 4 2 P ( D | EDr. 20
1) Marwa
4
1
P ( D | E 2) 1
6 3 Mostafa
5 2
Since,
D ( E1 D) ( E 2 D)
and
( E1 D) ( E 2 D)
Then,
P( D) P( E1 D) P( E 2 D)
P ( E1 ) P ( D | E1) P ( E2 ) P ( D | E 2)
1.1 2.1 6 2
3 5 3 2 15 5
Dr. Marwa Mostafa
Theorem of Total Probability
The events E1 , E2 , …, En are called a partition of the sample
P(E1 ) 0.3 , P ( E 2 ) 0 .5 , P ( E 3 ) 0 .2 ,
, ,
Thus
= (0.01)(0.3)+(0.03)(0.5)+(0.04)(0.2)
and since,
and
(a)
(0.3)(0.01)
0.115
(0.3)(0.01) (0.5)(0.03) (0.2)(0.04)
Dr. Marwa Mostafa
(b)
(0.5)(0.03)
0.577
(0.3)(0.01) (0.5)(0.03) (0.2)(0.04)
(c)
(0.2)(0.04)
0.308
(0.3)(0.01) (0.5)(0.03) (0.2)(0.04)
Dr. Marwa Mostafa
Example (9):
Four technicians regularly make repairs when breakdowns
occur on an automated population line. Janet, who services
20% of the breakdowns , makes an incomplete repair 1 time
in 20 ; Tom who services 60% of the breakdowns , makes an
incomplete repair 1 time in 10 ;Georgia, who services 15%
of the breakdowns , makes an incomplete repair 1 time in
10 ;and Peter who services 5% of the breakdowns , makes an
incomplete repair 1 time in 20 . For the next problem with
the production line diagnosed as being due to an initial repair
that was incomplete , what is the probability that this initial
repair was made by Janet?
and .
Dr. Marwa Mostafa
Otherwise, A and B are dependent.
In other words, A and B are independent if and only if
P( A B)
P( A | B) P ( A) then, P( A B ) P ( A) P ( B )
P( B)
and
P( A B)
P ( B | A) P ( B ) then, P( A B ) P ( A) P ( B )
P( A)
We thus have the following definition.
Definition: Two events A and B are said to be independent iff
Solution: