Chapter Seven Introduction To Probability Theory: Terminology and Notations in Elementary Set Theory Experiment
Chapter Seven Introduction To Probability Theory: Terminology and Notations in Elementary Set Theory Experiment
12
Chapter Seven
Introduction to Probability Theory
Example:
- In the random experiment of tossing a coin, the two events
A = {H}, B = {T} are mutually exclusive.
- Suppose that Ω = {1, 2, 3, 4}. If:
A = {1, 2}, B = {1, 3, 4} and C = {4}
Then, A and B are subsets of Ω; A ⊆ Ω and B ⊆ Ω, 2 A, 3 A, A B =
{1, 2, 3, 4}, A∩B = {1}, A∩C = Ø, Ac= {3, 4}, A Ac = Ω, A and C are
disjoint or mutually exclusive.
Venn diagrams: A Venn diagram is a graphical representation that is
often useful for discussing the concepts of set relationships:
Dr.Tasnim Hasan Lec. 12
A B A∩B Ac A∩B = Ø
Laws of the Set Relations:
1. Commutative Laws
A B = B A A∩B = B∩A
2. Associative Laws
A (B C) = (A B) C A∩(B∩C) = (A∩B)∩C
3. Distributive laws
A∩ (B C) = (A∩B) (A∩C)
A (B∩C) = (A B) ∩ (A C)
4. Identity Laws
A Ø = A A∩Ø = Ø A Ω = Ω A∩Ω= A
5. Complement laws
A Ac = Ω A∩Ac = Ø (Ac)c = A Ωc=Ø Øc = Ω
6. Demorgan`s Laws
(A B)c = Ac∩Bc and (A∩B)c = Ac Bc
(A B)c (A∩B)c
Power set of Ω: The family of all subsets of Ω is known as the power set
of Ω.
𝒫(Ω) = {A: A⊆Ω}
In general, if Ω is a finite set and has n elements then 𝒫(Ω) will have 2n
elements.
Example:
Ω = {a, b} then 𝒫 (Ω) = {{a}, {b}, Ω, ϕ}
Algebras of sets:
Event space: An event space is a sigma field obtained from a sample
space. An element of the event space is called an event.
An event in probability corresponds to a set in set theory.
Remark:
. The sample space Ω is called the sure event.
. The empty set ϕ is called the impossible event.
. The operations , ∩ , ⊂, … on any number of events are also events.
Examples:
1. 𝒜 = {ϕ, Ω} is the smallest σ – field (smallest event space).
2. 𝒜 = 𝒫 (𝛺) is the largest σ – field on Ω.
3. Let A ⊂ Ω, then 𝒜 = {A, Ac, Ω, ϕ} is the σ – field generated by the
set A.
4. Let Ω = {1, 2, 3}. Then
Dr.Tasnim Hasan Lec. 12
Properties of σ- Fields
Let A be a σ – field over Ω then:
1. 𝛺∈𝒜
Proof: Since 𝒜 is a σ – field, there exist a set A∈ 𝒜.
Hence Ac ∈ 𝒜.
Consider the infinite sequence of elements A, Ac, Ac, Ac, … ∈ 𝒜
𝐴 ∪ 𝐴𝑐 ∪ 𝐴𝑐 ∪ 𝐴𝑐 … ∈ 𝒜
but 𝐴 ∪ 𝐴𝑐 ∪ 𝐴𝑐 ∪ 𝐴𝑐 … = 𝐴 ∪ 𝐴𝑐 = 𝛺.
Hence 𝛺 ∈ 𝒜
2. 𝜙∈𝒜
Proof: Since 𝛺 ∈ 𝒜 then 𝛺𝑐 ∈ 𝒜
But Ωc = ϕ, hence 𝜙 ∈ 𝒜
Measurable Space:
The pair (Ω,𝒜) of a sample space Ω and an event space 𝒜 is called a
measurable space.
Probability measure:
For the measurable space (Ω,𝒜), a set function is called a probability
measure if it assigns a real number P(A) to a set 𝐴 ∈ 𝒜
P: 𝒜 → [0, 1] under the constraint of the following axioms
1. If 𝐴 ∈ 𝒜 , P(A) ≥ 0
2. P(Ω)=1
3. ∀ 𝐴𝑖 (𝑖 = 1, 2, … )𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝐴𝑖 ∈ 𝒜, and Ai ∩ Aj = ϕ ∀ i ≠ j
then 𝑃(⋃∞ ∞
𝑖=1 𝐴𝑖 ) = ∑𝑖=1 𝑃 (𝐴𝑖 )
Theorem:
Let (Ω, 𝒜, P) be a probability space, then
1. P(ϕ) = 0
Proof:
Consider the infinite sequence of events A1, A2, … such that Ai = ϕ for i =
1, 2, … ; then by axiom 3
𝑃(𝜙) = 𝑃(⋃∞ ∞ ∞
𝑖=1 𝐴𝑖 ) = ∑𝑖=1 𝑃 (𝐴𝑖 ) = ∑𝑖=1 𝑃(∅),
which can hold only if P(ϕ) = 0
⋃∞ 𝑛
𝑖=1 𝐴𝑖 = ⋃𝑖=1 𝐴𝑖 , and by axiom 3
𝑃(⋃𝑛𝑖=1 𝐴𝑖 ) = 𝑃(⋃∞ ∞
𝑖=1 𝐴𝑖 ) = ∑𝑖=1 𝑃 (𝐴𝑖 )
= ∑𝑛𝑖=1 𝑃(𝐴𝑖 ) + ∑∞
𝑖=𝑛+1 𝑃 (𝐴𝑖 )
= ∑𝑛𝑖=1 𝑃(𝐴𝑖 ) + 0
= ∑∞
𝑖=1 𝑃 (𝐴𝑖 )
Proof: (1)
𝐴1 ∪ 𝐴2 ∪ … = (𝐴1 | 𝐴∘ ) ∪ (𝐴2 |𝐴1 ) ∪ …
where 𝐴∘ = ϕ
∞
𝑃(⋃∞
𝑛=1 𝐴𝑛 ) = 𝑃 (⋃𝑘=1 𝐴𝑘 |𝐴𝑘−1 )
= ∑∞ 𝑛
𝑘=1 𝑃 (𝐴𝑘 |𝐴𝑘−1 ) = lim ∑𝑘=1 𝑃 (𝐴𝑘 |𝐴𝑘−1 ) … (1)
𝑛→∞
𝑃(⋃∞
𝑛=1 𝐴𝑛 ) = lim 𝑃(𝐴𝑛 )
𝑛→∞
Proof: (2)
𝐴1 ⊃ 𝐴2 ⊃ ⋯ = 𝐴1𝑐 ⊂ 𝐴𝑐2 ⊂ ⋯
𝑃(⋃∞ 𝑐 𝑐
𝑛=1 𝐴𝑛 ) = lim 𝑃(𝐴𝑛 )
𝑛→∞
By De Morgan’s law ⋃∞ 𝑐 ∞
𝑛=1 𝐴𝑛 = (⋂𝑛=1 𝐴𝑛 )
𝑐
𝑃(⋃∞ 𝑐 ∞ 𝑐 ∞
𝑛=1 𝐴𝑛 ) = 𝑃 (⋂𝑛=1 𝐴𝑛 ) = 1 − 𝑃 (⋂𝑛=1 𝐴𝑛 )
Dr. Tasnim Hasan Lec. 13
Therefore
1 − 𝑃(⋂∞
𝑛=1 𝐴𝑛 ) = 1 − lim 𝑃 (𝐴𝑛 )
𝑛→∞
Hence, 𝑃(⋂∞
𝑛=1 𝐴𝑛 ) = lim 𝑃 (𝐴𝑛 )
𝑛→∞
= ∑ 𝑃(𝐴𝑖 ) + 0 + 0 + ⋯
𝑖=1
𝑛
A = {(3, 1), (3, 2), … , (3, 6),(2, 1), (2, 2), … , (2, 6), (1, 1), (1, 2), … , (1,
6)}.
B = {(1, 1), (2, 1), … , (6, 1), (1, 2), (2, 2), … , (6, 2)}.
A∩B = {(3, 1), (3, 2), (2, 1), (2, 2), (1, 1), (1, 2)}
p(A or B) = p(A B) = p(A) + p(B) - p(A∩B)
18 12 6 24 2
= + − = =
36 36 36 36 3
12
Ω can occur in C 2 = 66 ways in which 2 items can be chosen from 12.The
number of ways that 2 defective items be chosen from 4 defective items
4
is C2 = 6
Dr. Tasnim Hasan Lec. 14
C 28 28 14
p(B) = C 12 = =
2 66 33
Since C is the complement of B,
28 38
p(C) = p(Bc) = 1 – p(B) = 1 − =
66 66
Since E is the complement of A,
1 10
p(E) = p(Ac) = 1 – p(A) = 1 − =
11 11
Example: An urn contains 10 black, 15 white, and 5 red balls. What is the
probability of drawing a black, a white or a red ball?
Example: A class contains 10 men and 20 women of which half the men
and half the women have brown eyes. Find the probability that a person
chosen at random is a man or has brown eyes.
10 1
Let A = {person is a man} p(A) = =
30 3
5 + 10 1
B = {person has brown eyes} p(B) = =
30 2
A∩B = {person is a man and has brown eyes}
5 1
p(A∩B) = =
30 6
p(A B) = p(A) + p(B) - p(A∩B)
1 1 1 4 2
= + − = =
3 2 6 6 3
H.W.
1. A fair die is rolled twice, find the probability that:
a. The sum of both outcomes is 7.
b. The sum is not 7.
c. The sum is more than 7.
d. The sum is less than or equal to 7.
2. A card is drawn from a deck. What is the probability that:
a. The card is red.
b. The card is a diamond.
c. The card is a picture.
d. The card is a picture or diamond.
e. The card is a joker.
Dr. Tasnim Hasan Lec. 14
3. Consider two events A and B such that P(A) = 1/3, and P(B) = 1/2.
Determine P(B∩Ac) for each of the following cases:
a. A and B are disjoint.
b. A is a subset of B.
c. P(AB) = 1/8
4. For any event A, if P(B) = 1 , show that P(A) = P(AB)
Hint: Take A = AB ABc
5. Consider the experiment in which a fair coin is tossed once and a
balanced die is rolled once.
a. Describe the sample space.
b. What is the probability that a head is appeared on the coin, and an odd
number is appeared on the die?
6. A school contains students in grades 1, 2, 3, 4, 5, and 6. Grades 2, 3, 4,
5, and 6 all contain the same number of students, but there is twice this
number in grade 1. A student is selected at random from a list of all the
students in the school.
a. What is the probability that the selected student is in grade 3?
b. What is the probability that the selected student is in an odd numbered
grade?
Dr. Tasnim Hasan Lec. 15
Conditional Probability:
Let A and B be two events in 𝒜 of the probability space (Ω, 𝒜, P), the
conditional probability of event A given that event B has occurred is
defined by:
P( A B) P( AB )
P(A|B) = or if P(B) > 0
P( B) P( B)
Problem: For given event B for which P(B) > 0, show that P( ∙ |B) is a
probability measure function.
Solution:
P( AB )
1. P(A|B) = P( B ) ≥ 0 for every A in 𝒜.
P(B) P( B)
2. P(Ω |B) = P( B) = =1
P( B)
3. If A1, A2, … is a sequence of mutually exclusive events in 𝒜 and
⋃∞𝑖=1 𝐴𝑖 𝜖𝒜 , then
∞
𝑃((⋃∞
𝑖=1 𝐴𝑖 ) ∩ 𝐵) 𝑃(⋃∞
𝑖=1(𝐴𝑖 𝐵)) ∑∞
𝑖=1 𝑃(𝐴𝑖 𝐵)
𝑃 (⋃ 𝐴𝑖 |𝐵) = = =
𝑃(𝐵) 𝑃(𝐵) 𝑃(𝐵)
𝑖=1
∞
= ∑ 𝑃(𝐴𝑖 |𝐵)
𝑖=1
Hence, P( ∙ |B) is a probability measure function.
Example 1: Three fair coins are tossed. Find the probability that they are
all heads if:
i. The first coin is head.
Let A = {the first coin is head} = {HHH, HHT, HTH, HTT}
B = {the three coins are heads} = {HHH}, A∩B = {HHH}
1
p ( AB ) # AB 1
= = 8 =
P(B|A) = p ( A) #A 4 4
8
Dr. Tasnim Hasan Lec. 15
The sum is even if both numbers are even or both are odd.
4
There are 4 even numbers {2, 4, 6, 8}. Hence there are C2 = 6 ways to
choose two even numbers.
5
There are 5 odd numbers {1, 3, 5, 7, 9}. Hence there are C2 = 10 ways
to choose two odd numbers.
Dr. Tasnim Hasan Lec. 15
Thus, there are 6 + 10 = 16 ways to choose two numbers such that the sum
is even.
Let A = {the sum of the two digits is even} 16 elements
16
P(A) =
36
10
B = {the two digits are odd} 10 elements, P(B) =
36
A∩B = B 10 elements
10
P ( AB ) 10 5
= 36 = =
P(B|A) = P ( A) 16 16 8
36
Properties of P( ∙ |B) :
Assume that the probability space (Ω, 𝒜, P) is given, and let B ∈ 𝒜
satisfy P(B) > 0.
1. If A = B , then P(A|B)= 1
5. P(A|B) + P(Ac|B) = 1
P(A1|B) ≤ P(A2|B)
Dr. Tasnim Hasan Lec. 15
H. W.
Given the probability space (Ω, 𝒜, P), where 𝒜={A, Ac, Ω, ϕ},
Construct P(∙|A), P(∙|Ac).
Theorem
For a given probability space (Ω, 𝒜, P), let A1, A2, …, An be events
belonging to 𝒜 for which P(A1 A2 … An-1) >0; then
P(A1 A2 … An )= P(A1)P(A2|A1)P(A3| A1 A2 )… P(An| A1 A2 … An-1)
Proof:
The product of probabilities on the right side of the above equation is
equal to
𝑃(𝐴1 𝐴2 ) 𝑃(𝐴1 𝐴2 𝐴3 ) 𝑃(𝐴1 𝐴2 … 𝐴𝑛 )
𝑃(𝐴1 ) …
𝑃 (𝐴1 ) 𝑃(𝐴1 𝐴2 ) 𝑃(𝐴1 𝐴2 … 𝐴𝑛−1 )
Since P(A1 A2 … An-1) > 0, each of the denominators in this product must
be positive. All of the terms in the product cancel each other except the
final numerator which is the left side of the equation.
A= Ω ∩A = (B1 B2 … Bn)∩A
= ∑ 𝑃(𝐴|𝐵𝑗 ) 𝑃(𝐵𝑗 )
𝑗=1
Bayes’ Theorem
For a given probability space (Ω, 𝒜, P), if B1, B2, …, Bn is a collection
of mutually disjoint events in 𝒜 satisfying Ω = ⋃𝑛𝑗=1 𝐵𝑗 and P(Bj) > 0
for j = 1, 2, …, n, then for every A ∈ 𝒜 for which P(A) > 0
p ( Bk ) p ( A / Bk )
p(Bk|A) = n
p( B
j =1
j ) p( A / B j )
Proof:
p ( A Bk )
Since p(A|Bk) = p ( Bk )
Dr. Tasnim Hasan Lec. 15
p( Bk ) p( A / Bk )
=
p( B1 ) p( A / B1 ) + p( B2 ) p( A / B2 ) + ... + p( Bn ) p( A / Bn )
Frequently, the original probabilities p(Bj)are called prior probabilities
and the conditional probabilities p(Bj|A) are called the posterior
probabilities.
Example1:
In a certain factory, machine I, II, and III are all producing springs of the
same length. Of their production, machine I, II, and III produce 2%, 1%,
and 3% defective springs, respectively. Of the total production of springs
in the factory machine I produce 35%, machine II produces 25% and
machine III produces 40%. If one spring is selected at random:
a. Find the probability that it is defective.
b. Find the probability that it was produced by machine I, II or III.
Solution:
2 35
.
p( I ) p( D / I ) 100 100 = 70
b. p(I|D) = =
p ( D) 215 215
10000
Dr. Tasnim Hasan Lec. 15
1 25
.
p( I I ) p( D / I I ) 25
p(II|D) = = 100 100 =
p( D) 215 215
10000
3 40
.
p ( III) p ( D / III) 100 100 = 120
p(III|D) = =
p( D) 215 215
10000
Example2:
Urn 1 contains 8 black and 2 white balls; urn 2 contains 3 black and 7
white balls. A ball is to be chosen at random from one of the urns.
1. What is the probability that the ball is black?
2. What is the probability that the drawn ball selected from urn 1?
3. What is the probability that the drawn ball selected from urn 2?
Solution:
Let B = {the ball drawn is black}
A1 = {the ball drawn selected from urn 1}
A2 = {the ball drawn selected from urn 2}
1. P(B) = P(A1) P(B| A1 ) + P(A2) P(B| A2)
1 8 1 3 11
= +2 = 20
2 10 10
𝑃(𝐴2)𝑃(𝐵|𝐴2 ) 3/20 3
3. P(A2|B) = = =
𝑃(𝐵) 11/20 11
1
Dr. Tasnim Hasan Lec. 16
Independent Events:
For a given probability space (Ω, 𝒜, P), let A and B be two events
in 𝒜. Events A and B are said to be independent if and only if
p(A|B) = p(A) or p(B| A) = p(B)
This is equivalent to stating that
p(A∩B) = p(AB) = p(A). p(B)
Events that are independent are sometimes called statistically
independent or stochastically independent.
Example 1: A coin is tossed three times and the eight outcomes are
assumed to be equally likely. If A is the event that a head occurs on
each of the first two tosses, B is the event that a tail occurs on the
third toss; and C is the event that exactly two tails occur in the three
tosses; Show that:
a. Events A and B are independent. b. Events B and C are dependent.
2 1
Since A = {HHH, HHT} p(A) = =
8 4
4 1
B = {HHT, HTT, THT, TTT} p(B) = =
8 2
3
C = {HTT, THT, TTH} p(C) =
8
1
A∩B = {HHT} p(AB) =
8
2 1
B∩C = {HTT, THT} p(BC) = =
8 4
1 1 1
a- p(A).p(B) = . = =p(AB), events A and B are independent.
4 2 8
1 3 3
b- p(B).p(C) = . = ≠ p(BC), events B and C are not
2 8 16
independent.
2
Dr. Tasnim Hasan Lec. 16
Example 2:
If p(A) = 0.4, p(C|A) = 0.5, p(A|C) = 0.4
i. Are A and C independent?
Since p(A|C) = p(A) = 0.4, events A and C are independent
ii. Find p(C).
Since A and C are independent then p(C|A) = p(C) = 0.5
iii. Find p(A C).
Since A and C are independent
p(A∩C) = p(A).p(C) = (0.4)(0.5) = 0.2
p(A C) = p(A) + p(C) – p(A∩C) = 0.4 + 0.5 – 0.2 = 0.7
iv. Find p(Ac∩Cc).
p(Ac∩Cc)= p(A U C)c = 1 – p(A C) = 1 – 0.7 = 0.3
v. Find p(AcUCc).
p(AcUCc) = p(A∩C)c = 1 – p(A∩C) = 1 – 0.2 = 0.8
Definition:
Let (Ω, 𝒜, P) be a probability measure space, Ȼ is a class of
stochastic independent events means:
Ȼ ⊂ 𝒜 and the probability of the intersection of any finite number of
different events in Ȼ is equal to the product of their probabilities.
Theorem
Let Ȼ = {A, B}, be a class of stochastically independent events, then
the classes Ȼ1 = {Ac, B}, Ȼ2 = {A, Bc} and Ȼ3 = {Ac, Bc} are also
independent.
Proof:
i. Ȼ1 = {Ac, B}
B = AB AcB
Since AB∩Ac B = ϕ
P(B) = P(AB) + P(AcB)
P(Ac B) = P(B)- P(AB) = P(B)- P(A).P(B) A, B indep.
4
Dr. Tasnim Hasan Lec. 16
Theorem
Let Ȼ = {A, B, C}, be a class of stochastically independent events,
then the classes Ȼ1 = {Ac, B, C}, Ȼ2 = {A, Bc, C}, Ȼ3 = {A, B, Cc}, Ȼ4 =
{Ac, Bc, C}, Ȼ5 = {Ac, B, Cc},Ȼ6 = {A, Bc, Cc}, and Ȼ7 = {Ac, Bc, Cc}
are also independent.
Proof:
5
Dr. Tasnim Hasan Lec. 16
i. Ȼ3 = {A, B, Cc}
AB = ABC ABCc
P(AB) = P(ABC) + P(ABCc)
P(ABCc) = P(AB) – P(ABC)
= P(A). P(B)- P(A).P(B).P(C)
=P(A)P(B)[1- P(C)] = P(A)P(B)P(Cc)
Hence Ȼ3 is a class of S.I. events.
ii. Ȼ4 = {Ac, Bc, C}
C = (A B)∩C ( A B)c∩C
P(C) =P(AC) P(BC) + P(AcBcC)
= P(AC) + P(BC)- P(ABC)+ P(AcBcC)
P(AcBcC) = P(C)-P(AC)-P(BC) + P(ABC)
=P(C)-P(A) P(C)-P(B)P(C)+ P(A) P(B) P(C)
=P(C)[1-P(A)]-P(B)P(C)[1-P(A)]
=P(C)P(Ac)[1- P(B)]
= P(Ac)P(Bc)P(C)
Hence Ȼ4 is a class of S.I. events.
iii. Ȼ7 = {Ac, Bc, Cc}
AcBcC c= (A B C)c
P(AcBcC c) = P(A B C)c
= 1- P(A B C)
= 1- P(A)- P(B)- P(C)+P(AB)+P(AC)+P(BC)-P(ABC)
=P(Ac)- P(B) – P(C)+P(A)P(B)+P(A)P(C)+P(B)P(C)-P(A)P(B)P(C)
= P(Ac)- P(B)[1-P(A)]- P(C)[1-P(A)]+P(B)P(C)[1- P(A)]
6
Dr. Tasnim Hasan Lec. 16
= P(Ac)[1-P(B)-P(C)+P(B)P(C)]
=P(Ac)[1-P(B)-P(C)[1-P(B)]]
=P(Ac)[1-P(B)][1-P(C)]
= P(Ac)P(Bc)P(Cc)
Hence Ȼ7 is a class of S.I. events.
H. W:
1. Let A and B be events with: p(A) = 1/2, p(B) = 1/3, p(A∩B) = 1/4.
Find: p(A|B), p(B|A), p(A B), p(Ac|Bc), p(Bc|Ac).
4. Two cards are drawn at random from a deck with replacement. Let
A be the event that the first card is an ace and B be the event that the
second card is a spade. Are A and B independent?