STATS+Ch+13-14+PPT
STATS+Ch+13-14+PPT
1 2 3 4 5 6
0.13 0.19 0.18 0.2 0.12 0.18
Using this sample distribution, let the following notations be defined as:
P(A) = P(odd result on the dice)
P(B) = P(result less than 4)
Find the following probabilities:
P(1 or 5)?
0.13+0.12 = 25% (union)
P(A ∩ B)?
A: 1,3,5 B: 1,2,3
P(1,3) = 0.13+0.18 = 31% (intersection)
P(A ∩ Bc)?
A: 1,3,5 B: 4,5,6
P(5) = 0.12 = 12%
Probability Topics:
Probability, Chance, and Randomness
Probability Models
Probability Rules
Tree Diagrams
Venn Diagrams
Conditional Probability
Tree Diagrams
Another way to display the possible outcomes
for a particular event is to create a
Tree Diagram.
Graphical display of the event(s)
Note: Sequence is important!
All of the possible outcomes (Sample Space) must be
shown
Note: For large trees, you may abbreviate with “…”
Sample Space is often designated at the end of the
tree
Tree Diagrams
For our example of Flipping a coin, followed by
rolling a dice, the tree diagram would be:
Notice:
Root node
Labels
Tree lines
Sample Space values
Tree Diagrams
Create a Tree Diagram for the event of:
Flipping a coin, then rolling 2 dice…
Tree Diagrams
Tree Diagram for
Flipping a coin,
then rolling 2 dice…
Note: for large Sample
Space values, “…” is
acceptable
Show full range of values
(i.e., both H, T, multiple
1-6 ranges)
S{H-1-1… H-1-6… H-6-6…
T-1-1… T-1-6… T-6-6}
Tree Diagrams
Create a Tree Diagram and find the
probabilities for the following events:
3 consecutive coin flips
a) 3 heads
b) 2 heads
c) at least 1 head
2 consecutive dice rolled
a) the same number twice
b) a sum of at least 7
c) a sum less than 10
Probability Topics:
Probability, Chance, and Randomness
Probability Models
Probability Rules
Tree Diagrams
Venn Diagrams
Conditional Probability
Venn Diagrams
Mutually exclusive (disjoint)
vs. non-mutually exclusive
(joint) sets
Joint:
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
Disjoint:
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
but note P(A ∩ B) = 0
Venn diagram example…
In an apartment complex, 40% of residents read the
USA Today, while 25% of residents read the New
York Times. Five percent of residents read both.
Suppose we select an apartment resident at random
and record which of the two papers the person reads.
Make a two-way table that displays the sample space.
Construct a Venn diagram to represent the outcomes.
Find the probability the person reads at least 1 of the 2
papers.
Find the probability the person does not read either paper.
Venn diagram example…
Define the events:
A: reads the USA Today
B: reads the New York Times
Given: P(A) = 0.40, P(B) = 0.25
P(A ∩ B) = 0.05 Reads
USA Today?
Reads NY Times? YES NO Total
YES 0.05 0.20 0.25
NO 0.35 0.40 0.75
Total 0.40 0.60 1.00
Venn diagram example…
Construct a Venn Diagram:
Read
0.40 USA Today
0.25 Read
NY Times
35% 5% 20%
Reads
USA Today?
Reads NY Times? YES NO Total
YES 0.05 0.20 0.25
NO 0.35 0.40 0.75
Total 0.40 0.60 1.00
Venn diagram example…
Find the probability the person reads at least 1
of the 2 papers…
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
= 0.40 + 0.25 – 0.05 = 0.60 (60%)
A: reads the USA Today Reads
B: reads the New York Times USA Today?
Reads NY Times? YES NO Total
YES 0.05 0.20 0.25
NO 0.35 0.40 0.75
Total 0.40 0.60 1.00
Venn diagram example…
Find the probability the person does not read
either paper…
From the table, NYTimes=No and USAToday=No,
probability = 0.40 (40%)
Also, 1 – P(A ∪ B) = 1 – 0.60 = 0.40
OR, P(Ac ∩ Bc) = 0.40
Reads
USA Today?
Reads NY Times? YES NO Total
YES 0.05 0.20 0.25
NO 0.35 0.40 0.75
Total 0.40 0.60 1.00
Venn diagram example…
A recent census at a major university found that
40% of its students primarily used Macs, the
remainder used PCs. At the same time, 67% of the
school’s students were undergraduates, with the
remainder graduate students. In the census, 23% of
respondents were graduate students who used PCs as
their main computer.
Assuming there were 10,000 students in the census, make
a two-way table that displays the sample space.
Construct a Venn diagram to represent the outcomes.
Find the probability the student is either a graduate
student OR uses a Mac. Write the event in symbolic form
using the 2 events.
Venn diagram example…
Define the events: Note: I chose
A: students using PCs B: graduate students B: Grad because
P(A) = 0.60, P(B) = 0.33 and P(A ∩ B) = 0.23 PC + Grad was given
Student Classification Student Classification
Graduate
students
37 % 23% 10%
Venn diagram example…
The two-way table below describes the members
of the US Senate in a recent year.
Male Female
Democrats 47 13
Republicans 36 4
Females
36 % 4 % 13%
Venn Diagrams – Multiple Variables
There are 125 students enrolled in various AP courses at the
American High School.
There are 31 students in AP European History, 52 students in AP Calculus,
and 18 students in AP Spanish
10 students study both AP European History and AP Calculus, 5 students
study both AP European History and AP Spanish, 8 students study both AP
Calculus and AP Spanish, and 3 students study all three.
What is the probability:
• A student takes an AP course other than these three?
AP-European
• A student takes just AP-Calculus? History
• A student takes just AP-European History?
AP-Spanish
AP-Calculus
Venn Diagrams – Multiple Variables
125 students:
31 AP-European History, 52 AP-Calculus, 18 AP-Spanish
10 in both AP-EH + AP-Calc, 5 in both AP-EH + AP-Span, 8 in both AP-
Calc + AP-Span, 3 in all 3 AP classes
What is the probability:
• A student takes an AP course other than these three?
• P (EH+Calc+Span)c = 125 – (19+8+37+2+3+5+7) = 125 – 81 = 44 => 44/125 = 35.2%
NOTE: you can also use the 31/52/18 total numbers but would need to subtract the
2/3/5/7 intersecting numbers AND subtract 3 a 2nd time (triple-counted)
Find the probability the student is Female, given that the student has
pierced ears.
P(F | P) = 96 / 120 = 0.80 (80%)
Pierced Ears?
Gender Yes No Total
Male 24 76 100
Female 96 4 100
Total 120 80 200
Probability Model Examples
Continuing… M: Male, F: Female P: Pierced Ears, N: Not Pierced Ears
A few more Conditional Probability examples:
Find the probability the student is Female, given that the student does
not have pierced ears.
P(F | N) = 4 / 80 = 0.05 (5%)
Given that the student is male, find the probability that he does not
have pierced ears?
P(P | M) = 76 / 100 = 0.76 (76%)
(Note: pay attention to the wording…)
Pierced Ears?
Gender Yes No Total
Male 24 76 100
Female 96 4 100
Total 120 80 200
Probability Model Examples
Is Gender and Ear Piercing “Independent”?
Remember: Independent events means that 1 event does not impact
another event… or, event 2 is not dependent upon event 1
You can check for Independence within 2-way tables by comparing the
proportions of certain rows (or columns) against other rows (or columns),
or against the overall total.
For example:
• % Pierced Ears overall is 120/200 = 60%
• % Males with Pierced Ears is 24/200 = 12%
These are considerably different, so Gender and Pierced Ears are NOT independent
(i.e., pierced ears DOES depend on gender…)
Pierced Ears?
Gender Yes No Total
Male 24 76 100
Female 96 4 100
Total 120 80 200
Independence,
Mutually Exclusive Events
Are Gender and Leisure Time Preference
independent?