Lec 2
Lec 2
• Sample Space.
• Events.
• Counting Techniques.
• Probability of an Event.
• Additive Rules.
• Conditional Probability.
• Independence, and the Product Rule.
• Bayes’ Rule.
𝑆 = {1,2,3,4,5,6}
𝑆 = {1,2,3,4,5,6}
Flipping a coin
𝑆 = {𝐻𝑒𝑎𝑑, 𝑇𝑎𝑖𝑙}
𝑆 = {𝐻, 𝑇}
Flipping a coin
Example1:
Find the sample space for the random experiments
(flipping) a coin of two times?
Example1:
Find the sample space for the random experiments
(flipping) a coin of two times?
Answer:
𝑆 = {𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇}
Tree Diagrams:
Sample spaces can also be described graphically with tree
diagrams.
Example2:
An experiment consists of flipping a coin and then flipping
it a second time if a head occurs. If a tail occurs on the first
flip, then a die is tossed once.
Example2:
An experiment consists of flipping a coin and then flipping
it a second time if a head occurs. If a tail occurs on the first
flip, then a die is tossed once.
Answer:
𝑆 = {𝐻𝐻, 𝐻𝑇, 𝑇1, 𝑇2, 𝑇3, 𝑇4, 𝑇5, 𝑇6}
Example2:
𝑆=
{𝐻𝐻, 𝐻𝑇, 𝑇1, 𝑇2,
𝑇3, 𝑇4, 𝑇5, 𝑇6}
Example3: Continuous
𝑺 = 𝑅 + = 𝑥 𝑥 > 0}
If it is known that all recycle times are between 1.5 and 5
seconds, the sample space can be
𝑺 = 𝑥 1.5 < 𝑥 < 5}
Event (𝑬):
• A result of none , one , or more outcomes in the sample
space. An event is a subset of the sample space of a
random experiment.
Event (𝑬):
• A result of none , one , or more outcomes in the sample
space. An event is a subset of the sample space of a
random experiment.
𝑆 = {1,2,3,4,5,6}
𝐸 = {2,4,6} Even Numbers
Example1:
A dice is rolled twice. What is the Event that the sum of the
faces is greater than 7, given that the first outcome was a 4?
Example1:
A dice is rolled twice. What is the Event that the sum of the
faces is greater than 7, given that the first outcome was a 4?
Answer:
𝑆 = {11, 12, 13, 14, 15, 16, 21, 22, 23, 24, 25, 26,
31, 32, 33, 34, 35, 36, 𝟒𝟏, 𝟒𝟐, 𝟒𝟑, 𝟒𝟒, 𝟒𝟓, 𝟒𝟔,
51, 52, 53, 54, 55, 56, 61, 62, 63, 64, 65, 66}
Example2:
In the tossing of a die, we might let 𝐴 be the event that an
even number occurs and 𝐵 the event that a number greater
than 3 shows.
Example2:
In the tossing of a die, we might let 𝐴 be the event that an
even number occurs and 𝐵 the event that a number greater
than 3 shows.
Then the subsets 𝐴 = {2, 4, 6} and 𝐵 = {4, 5, 6} are subsets
of the same sample space 𝑆 = {1, 2, 3, 4, 5, 6}.
Example2:
Then the subsets 𝐴 = {2, 4, 6} and 𝐵 = {4, 5, 6} are subsets
of the same sample space 𝑆 = {1, 2, 3, 4, 5, 6}.
𝐴 ∩ 𝐵 = 4, 6
𝐴 ∪ 𝐵 = 2, 4, 5, 6
𝐴′ = 1, 3, 5
𝐵′ = 1, 2, 3
𝐴 = 2, 4, 6 and 𝐵 = 1, 3, 5
𝐴∩𝐵 = =∅
Venn Diagrams:
Diagrams are often used to portray relationships between
sets, and these diagrams are also used to describe
relationships between events. We can use Venn diagrams to
represent a sample space and events in a sample space.
𝑆 𝐸
Example1:
𝑆 = 1, 2, 3, 4, 5, 6, 7
𝐴 = 1, 2, 4, 7
𝐵 = 1, 2, 3, 6
𝐶 = 1, 3, 4, 5
Example2:
Example3:
Example4:
Example5:
Example6:
𝑆 = 1, 2, 3, 4, 5, 6, 7
𝐴 = 1, 2, 4, 5, 7
𝐵 = 1, 2 1
4
𝐶 = 4, 6
2
6
5 7
Several Results: