Professional Documents
Culture Documents
Lecture 04 - Independence
Lecture 04 - Independence
Lecture 04
Independence
Dr. Ramazan Çağlar
Independence
Bernoulli Trial
(1) P(A|B)=P(A)
(2) P(B|A)=P(B)
(3) P(AB)=P(A).P(B)
= P(B|A).P(A) true !
We must have
P(A|B) = P(A) and
P(B|A) = P(B)
P(A|B) = P(A)
= { (B,1),(B,2),(B,3),(B,4),
(R,5),(R,6),(R,7),(R,8) }
(R,5),(R,6),(R,7),(R,8) }
A ∩ B = ∅ , so P A∩B = 0 ≠ P A P B
Unless P(A) = 0
or P(B) = 0
𝑃 𝐴∩𝐵 =𝑃 𝐴 𝑃 𝐵
Independence 12
Lecture Notes 04
Example:
Want: P 𝐴∩𝐵 =𝑃 𝐴 = 𝑃 𝐴 𝑃 𝐵
Expt: Toss a fair coin three times, and note dawn the
sequence of heads and tails.
Ω = {HHH, HHT, HTH, HTT, THH, TTH, THT, TTT}
If we assume that the events from the three coin
tosses are independent,
1
𝑃 {𝐻𝐻𝐻} = 𝑃 𝐻 𝑃 𝐻 𝑃 𝐻 =
8
Similarly, the other seven elementary events have a
𝟏
Probability of
𝟖
Let A1 ∊ F1 , A2 ∊ F2 , … , An ∊ Fn
where Fi denotes the events space of the ith
sub-experiment.
WARNING:
Not all events can be represented this way!!
That is, there are subsets of Ω that cannot
be expressed as A1xA2x … xAn for Ai∊ F
Lecture Notes 04 Independence 17
Example:
Expt:
𝑪𝒐𝒊𝒏 𝒕𝒐𝒔𝒔 followed by 𝒓𝒐𝒍𝒍𝒊𝒏𝒈 𝒂 𝒅𝒊𝒆
E1 E2
Ω1 = { H, T } Ω2 = { 1, 2, 3, 4, 5, 6 }
𝐻, 1 , 𝐻, 2 , 𝐻, 3 , 𝐻, 4 , 𝐻, 5 , (𝐻, 6)
Ω1 x Ω2 =
𝑇, 1 , 𝑇, 2 , 𝑇, 3 , 𝑇, 4 , 𝑇, 5 , (𝑇, 6)
The event
{{H, 2}, {T,6}} cannot be expressed as A1xA2
for some A1 ⊂ Ω1 ,
A2 ⊂ Ω2
= (½). (3/6) = ¼
Independence 22
Lecture Notes 04
Solution of the example:
Ω = { GGG, GGB, GBG, GBB, BGG, BGB, BBG, BBB }
#Ω = |Ω| = 8 : number of the elements of Ω
Let A = event first child is Girl.
A = { GGG, GGB, GBG, GBB}, #A = 4
#𝑨 𝟒 𝟏
𝑷 𝑨 = = = 𝑏𝑦 𝑐𝑙𝑎𝑠𝑠𝑖𝑐𝑎𝑙 𝑎𝑝𝑝𝑟𝑜𝑎𝑐ℎ
#𝜴 𝟖 𝟐
Let B = event second child is Girl.
B = { GGG, GGB, BGB, BGG}, #B = 4
#𝑩 𝟒 𝟏
𝑷 𝑩 = = = 𝑏𝑦 𝑐𝑙𝑎𝑠𝑠𝑖𝑐𝑎𝑙 𝑎𝑝𝑝𝑟𝑜𝑎𝑐ℎ
#𝜴 𝟖 𝟐
Let C = A∩B = event the couple's first two children are girls.
A∩B = { GGG, GGB}, #(A∩B) = 2
#(𝑨 ∩ 𝑩) 𝟐 𝟏
𝑷 𝑨∩𝑩 = = = 𝑏𝑦 𝑐𝑙𝑎𝑠𝑠𝑖𝑐𝑎𝑙 𝑎𝑝𝑝𝑟𝑜𝑎𝑐ℎ
#𝜴 𝟖 𝟒
Lecture Notes 04 Independence 23
Solution of the example (cont.):
Ω = { GGG, GGB, GBG, GBB, BGG, BGB, BBG,BBB }
A = {Event first child is Girl} P(A) = 0.5
B = {Event second child is Girl} P(B) = 0.5
(A∩B) =C = {Event the couple's first two children are girls}.
P(A∩B) = P(C) = 0.25
a) The probability that the second child is a Girl. P(B) = 0.5
b) The probability that the second child is a girl given that the first
child is a girl.
𝑷(𝑨 ∩ 𝑩) 𝟐/𝟖 𝟐 𝟏
𝑷 𝑩|𝑨 = = = =
𝑷(𝑨) 𝟒/𝟖 𝟒 𝟐
c) Is the event that the couple's third child is a girl independent of
the event that the couple's first two children are girls?
Let D = the event that the third child is a girl.
Lecture Notes 04 D = { GGG, GBG, BGG, BBG}, P(D) = 4/8 = 0.5 24
Solution of the example (cont.):
c) Let D = the event that the third child is a girl. P(D) = 0.5
Now, (C∩D) becomes the event that all three children are girls and
hence it looks like:
(C∩D) = {GGG}
Using the classical approach to assigning probability to the (C∩D):
#(𝑪 ∩ 𝑫) 𝟏
𝑷 𝑪∩𝑫 = = = 𝟎. 𝟏𝟐𝟓
#𝜴 𝟖
The condition of the independence is P(C∩D) = P(C).P(D)
where
𝑃𝑛 𝑘 is the probability that there are exactly k success.
k is # of success
n is total number of trials
𝑛! 𝑛 𝑛 𝑛
= 𝑜𝑟 𝐶
𝑛 𝑘 𝑜𝑟 𝐶𝑘 𝑜𝑟 𝐶𝑘
𝑘! 𝑛 − 𝑘 ! 𝑘
Combination: n choose k.
Lecture Notes 04 Independence
33
Sketch of proof (Counting Arguments!)
{ A, A, … A, Ā, …, Ā, A,…,A, A, Ā, …, Ā, Ā, A, … }
{Ā, A, Ā, A, … A, A, Ā, …, Ā, A,…, Ā, Ā, A, Ā, … }
{ A, A, … Ā, Ā, …, Ā, A,…, Ā, A, A, Ā, …, A, A, … }
𝒑𝒌 𝒒𝒏−𝒌
3. Thus, probability of ‘’exactly k success’’ is
𝒏!
𝑷 Exactly k succes = 𝒑𝒌 𝒒𝒏−𝒌
𝒌! 𝒏 − 𝒌 !
= 𝑷𝒏 𝑿 = 𝒊 = 𝑷𝒏 𝒊
𝒊=𝒌 𝒊=𝒌
= 𝑷 𝒏 𝑿 = 𝒊 = 𝑷𝒏 𝒊
𝒊=𝟎 𝒊=𝟎
Independence
Lecture Notes 04 36
Example:
A pair of dice (let say a black dice and a white dice)
tossed eight (8) times, and number of points on each
die added up.
(a) What is the probability that ‘’7 occurs exactly 4
times’’ ?
P({ 7 occurs exactly 4 times }) = ?