Professional Documents
Culture Documents
2022 CSN373 Lec 2
2022 CSN373 Lec 2
Lecture 2: Probability
● Concept of probability
● Random variables
● Distribution functions: discrete and continuous
● Moments and moment generating functions
2
Probability:
3
Probability:
• If we flip a coin 100 times and compute the proportion of heads observed
after each toss of the coin, what will the proportion approach?
4
Probability and Counting Rules:
5
Probability and Counting Rules:
Objectives:
• Determine sample spaces and find the probability of an event, using classical
probability or empirical probability.
• Find the probability of compound events, using the addition rules.
• Find the probability of compound events, using the multiplication rules.
• Find the conditional probability of an event.
• Find the total number of outcomes in a sequence of events, using the
fundamental counting rule.
• Find the number of ways that r objects can be selected from n objects, using the
permutation rule.
• Find the number of ways that r objects can be selected from n objects without
regard to order, using the combination rule.
• Find the probability of an event, using the counting rules.
6
Sample Spaces and Events:
• A coin is tossed twice. List the elements of the sample space S and list
the elements of the event consisting of at least one head.
S = {HH, TT, HT, TH}
e = {HT, TH, HH}
Tossing a coin:
8
Example 2:
9
Example 3:
• List the sample space S for the types of outfits that can be
made with a red shirt or blue shirt and 3 different ties.
S = {R1, R2, R3, B1, B2, B3}
10
Example 4: Rolling Two Dice
11
Example 4: Rolling Two Dice
12
Example 5: Drawing Cards
Find the sample space for drawing one card from an ordinary deck of cards.
Solution:
Since there are 4 suits (hearts, clubs, diamonds, and spades) and 13 cards
for each suit (ace through king), there are 52 outcomes in the sample space.
13
Exercise #1:
• If two dice are rolled one time, find the probability of getting
these results.
a. A sum of 6
b. The sum gets Doubled
c. A sum of 7 or 11
d. A sum greater than 9
e. A sum less than or equal to 4
14
Exercise #1: Solution
a. A sum of 6
Total of 36 outcomes
There are 62 or 36 outcomes.
There are 5 ways to get a sum of 6.
They are (1,5), (2,4), (3,3), (4,2), and (5,1).
5
The probability then is .
36
b. The sum is Doubled
There are six ways to get doubles. They are (1,1), (2,2),
(3,3), (4,4), (5,5), and (6,6).
6 1
The probability is then = .
36 6
15
Exercise #1: Solution
17
Exercise #2: Gender of Children
• Use a tree diagram to find the sample space for the gender
of three children in a family.
B BBB
B
G BBG
B
B BGB
G
G BGG
B GBB
B
G GBG
G
B GGB
G
G GGG
18
Sample Spaces and Probability:
• Classical probability
• Empirical probability
• Subjective probability
19
Classical probability:
20
Exercise #2: Gender of Children
If a family has three children, find the probability that two of the
three children are girls.
Sample Space:
BBB BBG BGB BGG GBB GBG GGB GGG
21
Rounding Rule for Probabilities:
Probability Rule 1:
• The probability of any event E is a number (either a fraction
or decimal) between and including 0 and 1.
• This is denoted by 0 ≤ P(E) ≤ 1.
Probability Rule 2:
• If an event E cannot occur (i.e., the event contains no
members in the sample space), its probability is 0.
Probability Rule 3:
• If an event E is certain, then the probability of E is 1.
Probability Rule 4:
• The sum of the probabilities of all the outcomes in the
sample space is 1.
22
Rounding Rule for Probabilities:
23
Exercise #3:
Solution:
24
Exercise #4:
25
Exercise #5:
26
Exercise #6:
Two dice are tossed. Find the probability that the sum of two dice is greater
than 8?
27
Exercise #7:
(a) a club
13/52 = ¼ = 0.25
(b) a 4 and a club
1/52 = 0.019
(c) a 4 or a club
16/52 = 4/13 = 0.308
28
Exercise #8:
Three equally qualified runners, Mark, Bill, and Alan, run a 100-meter sprint,
and the order of finish is recorded.
(a) Give a sample space S.
S = {MBA, MAB, BMA, BAM, AMB, ABM}
(b) What is the probability that Mark will finish last?
2/6 = 1/3 = 0.333
29
Example: Rolling a Die
When a single die is rolled, what is the probability of getting a number less
than 7?
30
Probability of Not Occurring an Event:
31
Probability and Counting Rules:
32
Addition Rules for Probability and
Complements:
Objective A: Addition Rue for Disjoint (Mutually Exclusive) Events
Event A and B are disjoint (mutually exclusive) if they have no outcomes in
common.
33
Addition Rules for Probability and
Complements:
Objective B: General Addition Rule
For any two events E and F, P(E or F) = P(E) + P(F) – P(E and F).
34
Addition Rules for Probability and
Complements:
Objective B: Complement Rule
If E represents any event and Ec represents the complement of E, then
P(Ec) = 1 – P(E).
Example 1: The chance of raining tomorrow is 70%. What is the probability that it will
not rain tomorrow?
35
Addition Rules for Probability and
Complements:
Example 3: A probability experiment is conducted in which the sample space of the
experiment is S = {1,2,3,4,5,6,7,8,9,10,11,12}
Let event E = {2,3,5,6,7}, event F = {5,6,7,8}, and event G = {9,11}
(a) List the outcome in E and F. Are E and F mutually exclusive?
(c) List the outcome in E or F. Find P(E or F) by counting the number of outcomes in
E or F.
(e) List the outcomes in Ec . Find P(Ec) by counting the number of outcomes in Ec.
36
Probability and Counting Rules:
37
Next Class…
38