Professional Documents
Culture Documents
4 Conditional Probability
5 Independence
4 Conditional Probability
5 Independence
Definition
We define probability a set function with values in [0, 1], which satisfies
the following axioms:
(i) P (A) ≥ 0, for every event A
(ii) P (S ) = 1
(iii) If A1 , A2 , ... is a sequence of mutually exclusive events (namely
Ai ∩ Aj = ∅, for i 6= j, and i, j = 1, 2, ...), and such that
A = i∞=1 Ai , then
S
∞ ∞
!
∑ P (Ai ).
[
P (A) = P Ai = (1)
i =1 i =1
4 Conditional Probability
5 Independence
We can use the three axioms to build more sophisticated statements, e.g.
Proof.
Take A1 = A2 = A3 = .... = ∅. Then by (1) in Axiom (iii) we have
∞ ∞ ∞
!
∑ P (Ai ) = ∑ P (∅)
[
P (∅) = P Ai =
i =1 i =1 i =1
P (∅) = 0.
Proof.
Sn S∞
Let An+1 = An+2 = .... = ∅, then i = 1 Ai = i =1 Ai , and, from (1) (see Axiom (iii)) it
follows
∞ ∞ ∞
! !
n n
∑ P (Ai ) = ∑ P (Ai ) + ∑
[ [
P Ai = P Ai = P (Ai ) .
i =1 i =1 i =1 i =1 i =n +1
| {z }
≡0
Proof.
Let A ∪ Ac = S and A ∩ Ac = ∅, so and
P (S ) = P (A ∪ Ac ) = P (A) + P (Ac ) .
By Axiom (i) Axiom (ii) we have P (S ) = 1, so the desired result follows from:
1 = P (A) + P (Ac ) .
P (A) ≥ P (B ).
Proof.
Let us write
A = B ∪ (B c ∩ A)
and notice that B ∩ (B c ∩ A) = φ, so that
P (A) = P {B ∪ (B c ∩ A)}
= P (B ) + P (B c ∩ A)
P (A) ≥ P (B ).
B⊂A
A
P (A ∪ B ) = P (A) + P (B ) − P (A ∩ B ).
Proof.
Consider that A ∪ B = A ∪ (Ac ∩ B ), and A ∩ (Ac ∩ B ) = φ. Now remembera that
Ac ∩ B = B − (A ∩ B ), so,
P (A ∪ B ) = P ( A ) + P ( Ac ∩ B )
= P (A) + P (B ) − P (A ∩ B ).
Remark
It is worth notice that if Aj ∩ Ai = ∅, for every i and j, with i 6= j, then
P (A1 ∪ A2 ∪ .... ∪ An ) = ∑ni=1 P (Ai ), as stated in (2).
4 Conditional Probability
5 Independence
Pr (A) = Pr ({HH ∪ HT ∪ TH })
= Pr ({HH }) + Pr ({HT }) + Pr ({TH })
1 1 1 3
= + + =
4 4 4 4
and similarly
P (Ac ∩ B ) = 1 − P (A ∪ B c ) = 1 − 0.9 = 0.1.
Thus,
P (Ac ) = P (Ac ∩ B c ) + P (Ac ∩ B ) = 0.3 + 0.1 = 0.4,
so
P (A) = 1 − 0.4 = 0.6.
Because the event the John likes neither books is the complement of the event that he
likes at leas one of them (namely A1 ∪ A2 ), we have
4 Conditional Probability
5 Independence
Example (cont’d)
The dice are fair so we can get 36 events with equal probability 1 36.
Namely:
1
Pr (i, j ) = , for i, j = 1, .., 6
36
Thus, we can make use of the highlighted probabilities
Pr{getting 5 given 2 in the first throw} = Pr{getting 3 in the second throw} = 1/6
Conditional Probability
(1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
(2,1) (2,2) (2,3) (2,4) (2,5) (2,6)
(3,1) (3,2) (3,3) (3,4) (3,5) (3,6)
Remark (4,1) (4,2) (4,3) (4,4) (4,5) (4,6)
(5,1) (5,2) (5,3)
• Information changes the probability (5,4) (5,5) (6,5)
(6,1) (6,2) (6,3) (6,4) (6,5) (6,6)
• By knowing that we got 2 in the first throw, we have changed the
sample space:
(1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
(2,1) (2,2) (2,3) (2,4) (2,5) (2,6)
(3,1) (3,2) (3,3) (3,4) (3,5) (3,6)
(4,1) (4,2) (4,3) (4,4) (4,5) (4,6)
(5,1) (5,2) (5,3) (5,4) (5,5) (6,5)
(6,1) (6,2) (6,3) (6,4) (6,5) (6,6)
Definition
Let A and B be two events. The conditional probability of event A given
event B, denoted by P (A|B ), is defined by:
P (A ∩ B )
P (A|B ) = , if P (B ) > 0,
P (B )
So we have
(1,1)
P (B ) = (1,2)
Pr {(2, 1) ∪(1,3)
(2, 2) ∪ (2, 3)(1,4)
∪ (2, 4) ∪ (2,(1,5)
5) ∪ (2, 6)} (1,6)
(2,1) (2,2) (2,3) (2,4) (2,5) (2,6)
(3,1)
= (3,2)
Pr (2, 1) + Pr (2, 2) + Pr ((3,4)
(3,3)
2, 3) + Pr (2, 4(3,5)
) + Pr (2, 5) + Pr (2, 6)
(3,6)
(4,1) = (4,2)
6/36 = 1/6(4,3) (4,4) (4,5) (4,6)
(5,1) (5,2) (5,3) (5,4) (5,5) (6,5)
(6,1) (6,2) (6,3) (6,4) (6,5) (6,6)
P (A ∩ B ) 1/36 1
P (A|B ) = = = .
P (B ) 1/6 6
4 Conditional Probability
5 Independence
Definition
Two events A and B are independent if the occurrence of one event has
no effect on the probability of occurrence of the other event. Thus,
P (A|B ) = P (A)
or equivalently
P (B |A) = P (B )
P (A|B ) = P (A),
P (A ∩ B )
P (A|B ) = ,
P (B )
so we have
P (A ∩ B )
P (A) = ,
P (B )
and rearranging the terms, we find that two events are independent iif
P (A ∩ B ) = P (A)P (B ).
Example !"#$%&'(
!
"!#$%&!%'!($''!()*++!(%,+'!-&.!()+!+%/)(!0$''%12+!$3(#$,+'!
4445!4465!4645!6445!4665!6465!6645!666!
-*+!-''3,+.!($!1+!+73-228!2%9+28!:%()!0*$1-1%2%(8!;<=!
!
>+?%&+!
!@!-&!4!$##3*'!$&!+-#)!$?!()+!?%*'(!(:$!($''+'!
"@!6!$##3*'!%&!()+!()%*.!($''!
#@!(:$!6'!$##3*!%&!()+!()*++!($''+'!
!
)*+!"*+!!!-&.!"!%&.+0+&.+&(A!!
!
),+!"*+!"!-&.!#!%&.+0+&.+&(A!!
12
13
4 Conditional Probability
5 Independence
Proof.
Write A = A ∩ S = A ∩ (∪ni=1 Bi ) = ∪ni=1 (A ∩ Bi ). Since the {Bi ∩ A} are mutually
disjoint, we have
n n
P (A) = P (∪ni=1 (A ∩ Bi )) = ∑ P (A ∩ Bi ) = ∑ P (A|Bi )P (Bi ).
i =1 i =1
Corollary
Let B satisfy 0 < P (B ) < 1; then for every event A:
Proof.
Exercise [Hint: S = B ∪ B c ].
4 Conditional Probability
5 Independence
S = ∪ni=1 Bi ,
and P (Bi ) > 0, for every i = 1, 2, ..., n. Then for every event A for which
P (A) > 0, we have that
P (A|Bk )P (Bk )
P (Bk |A) = n . (4)
∑i =1 P (A|Bi )P (Bi )
Proof.
Let us write
P (A ∩ Bk )
P (Bk |A) =
P (A)
P (A ∩ Bk )
= n
∑i =1 P (A|Bi )P (Bi )
P (A|Bk )P (Bk )
= n
∑i =1 P (A|Bi )P (Bi )
That concludes the proof.
Example
Let us consider a special case, ĂLJĞƐ͛dŚĞŽƌĞŵ!
where we have only two events A and B.
!
"#$%!&'(!)(*+,+&+$,!$*!-$,)+&+$,./!0#$1.1+/+&2!
Pr^ A B` Pr^ A B`
! Pr^ A| B` Pr^ B| A` !
Pr^ B` Pr^ A`
3'+4!-.,!1(!5#+&&(,!.4!!
! Pr^ A B` Pr^ A| B`Pr^ B` Pr^ A B` Pr^ B| A`Pr^ A`!
3'.&!+4!
! Pr^ A| B`Pr^ B` Pr^ B| A`Pr^ A` !
6(.##.,7+,7!&'+4!5(!'.8(!
Pr^ A`
! Pr^ A| B` uPr^ B| A` !!!! !!ĂLJĞƐ͛dŚĞŽƌĞŵ!
Pr^ B`
14
... so thanks to Bayes’ Theorem we can reverse the role of A|B and B |A.
Example
Members of a consulting firm in Geneva rent cars from two rental agencies:
• 60% from AVIS
• 40% from Mobility
Now consider that
• 9% of the cars from AVIS need a tune-up
• 20% of the cars from Mobility need a tune-up
If a car delivered to the consulting firm needs a tune-up, what is the probability that the
care came from AVIS?
Aim
A := {car rented from AVIS} and B := {car needs a tune-up}. We know P (B |A) and
we look for P (A|B ) ⇒ Bayes’ theorem!!
Example (cont’d)
Pr^ A` 0.6
Pr^ B| A` 0.09
^
Pr B| A c ` 0.2
Pr^ B` Pr ^ B A B Ac `
^
Pr^ B A` Pr B A c `
^ ` ^ `
Pr^ B | A` Pr^ A` Pr B| A c Pr A c
0.09u0.6 0.2u0.4
0.134
Pr^ A`
Pr^ A| B` u Pr^ B| A` 0.6 0.09 0.402985
Pr^ B` 0.134
16
P (A|B )P (B )
P (B |A) =
P (A|B )P (B ) + P (A|B c )P (B c )