Venn Diagrams & Conditional Probability
Venn Diagrams & Conditional Probability
2 sets shading
Union of A complement and set B complement of the intersection complement of the union
Example:
U = {1, …, 15}
A = {5, 10 15}
B = { 1, 2, 5, 10}
A n B = {5, 10}
A’ = {1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14}
B’ = {3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15}
A’ U B’ = {1, 2, 3, 4, 6, 7, 8, 9, 11, 12,13, 14, 15} = (A n B)’
Question 1
Solutions
a. 𝑛(𝐼) = 25 + 16 = 41
b. 𝑛(𝐿) = 16 + 30 = 46
c. 𝑛(𝐼 ∩ 𝐿) = 16
d. 𝑛(𝐼 ′ ∩ 𝐿′ ) = 𝑛(𝐼 ∪ 𝐿)′ = 9
e. 𝑛(𝐼 ∩ 𝐿′ ) = 25
IN GENERAL
+ + =
Recall
• If two events A and B are independent, then
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴) × 𝑃(𝐵)
Example:
Determine if events A and B are independent
Solution:
i. 𝑃(𝐴 ∩ 𝐵)
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴) × 𝑃(𝐵)
= 0.2 × 0.3
= 0.06
′)
ii. 𝑃(𝐴 ∩ 𝐵
𝑃(𝐴 ∩ 𝐵′) = 𝑃(𝐴) − 𝑃(𝐴 ∩ 𝐵)
= 0.2 − 0.06
= 0.14
OR
v. 𝑃(𝐴 ∪ 𝐵)′
𝑃(𝐴 ∪ 𝐵)′ = 1 − 𝑃(𝐴 ∪ 𝐵)
= 1 − 0.44
= 0.56
vi. 𝑃(𝑆)
𝑃(𝑆) = 𝑃(𝐴 ∩ 𝐵 ′ ) + 𝑃(𝐴 ∩ 𝐵) + 𝑃(𝐵 ∩ 𝐴′ ) + 𝑃(𝐴 ∪ 𝐵)′
= 0.14 + 0.06 + 0.24 + 0.44
=1
OR
b) Venn Diagram U
A B
0.14 0.06
0.24
0.56
Conditional Probability
• If events A and B are dependent, then the conditional probability A given B is
𝑃(𝐴 ∩ 𝐵)
𝑃(𝐴|𝐵) =
𝑃(𝐵)
Example
Solution:
𝑇𝑜𝑡𝑎𝑙 = 92 + 57 + 36 + 25
𝑛(𝑠) = 210 𝑛(𝐶 ) = 36 + 25 = 61
𝑛(𝐷) = 57 + 36 = 93 𝑛(𝐷 ∩ 𝐶 ) = 36
𝑛(𝐷 ∪𝐶)′ 𝑛(𝐶 ∩ 𝐷)
a. 𝑃(𝐷 ∪ 𝐶)’ = b. 𝑃(𝐶|𝐷) =
𝑛(𝑆) 𝑛(𝐷)
36
92 =
= 93
210
12
= 105
41 =
31
36
210
𝑃(𝐶 ∩ 𝐷) 93 36 12
Using the formula, we get: 𝑃(𝐶|𝐷) = = = 93 = 31
𝑃(𝐷) 210
• If events A and B are independent, then the conditional probability A given B is
𝑃(𝐴∩𝐵)
𝑃(𝐴|𝐵) =
𝑃(𝐵)
𝑃(𝐴)×𝑃(𝐵)
=
𝑃(𝐵)
= 𝑃(𝐴)
Example
A and B are two independent events with P(A) = 0.2 and P(B) = 0.3.
Calculate:
i. 𝑃(𝐴|𝐵)
ii. 𝑃(𝐵|𝐴)
Solution:
𝑃(𝐴∩𝐵) 𝑃(𝐵 ∩ 𝐴)
i. 𝑃(𝐴|𝐵) = ii. 𝑃(𝐵|𝐴) =
𝑃(𝐵) 𝑃(𝐴)