Chapter 2
Chapter 2
Conditional Probability
1
CALCULATING PROBABILITIES FOR
INTERSECTIONS (INDEPENDENCE)
The rule for calculating P(A B) depends on the idea
of independent and dependent events
2
CONDITIONAL PROBABILITIES
Theprobability that A occurs, given that event B
has occurred is called the conditional probability
of A given B and is defined as
P( A Ç B )
P( A | B) = if P( B) ¹ 0
P( B)
“given”
4
EXAMPLE 1
Toss a fair coin twice and define:
What is the probability that the coin will
land on head on the second toss given that it
landed on head on the first toss.
A: head on second toss
B: head on first toss
5
EXAMPLE 1
Toss a fair coin twice and define:
6
DEFINING INDEPENDENCE
We can redefine independence in terms of
conditional probabilities:
Two events A and B are independent if and only if
P(A|B) = P(A) or P(B|A) = P(B)
Otherwise, they are dependent
Once you’ve decided whether or not two events
are independent, you can use the following rule
to calculate their intersection
7
EXAMPLE 2
A bowl contains five M&Ms®, two red and three blue. Randomly select two candies one at a time
with replacement. What is the probability that the second is red given that the first is blue
8
EXAMPLE 2
A bowl contains five M&Ms®, two red and three
blue. Randomly select two candies one at a time
with replacement, and define:
A: second candy is red
m B: first candy is blue
P(A|B) =P(2 nd red|1st blue)= 2/5
m
m
P(A|not B) = P(2nd red|1st red) = 2/5
m m
10
EXAMPLE 2
A bowl contains five M&Ms®, two red and three
blue. Randomly select two candies one at a time
without replacement, and define:
A: second candy is red
m B: first candy is blue
P(A|B) =P(2 nd red|1st blue)= 2/4 = 1/2
m
m
12
EXAMPLE 3
A bowl contains five M&Ms®, two red and three blue. Randomly select two
candies, one at a time. The first candy was noted and returned back and then
a second candy was selected (Independent Events). What is the probability
that
a) both candies are red
13
EXAMPLE 3
A bowl contains five M&Ms®, two red and three
blue. Randomly select two candies, one at a time.
The first candy was noted and returned back and
then a second candy was selected (Independent
Events). What is the probability that
A) both candies are red
A: second candy is red
B: first candy is red m m
m m
14
EXAMPLE 3
A bowl contains five M&Ms®, two red and three blue. Randomly select two
candies, one at a time. The first candy was noted and not returned back and
then a second candy was selected (dependent Events). What is the probability
that
B) both candies are red
15
EXAMPLE 1
In a certain population, 10% of the people can be classified
as being high risk for a heart attack. Three people are
randomly selected from this population. What is the
probability that exactly one of the three are high risk?
Define H: high risk and N: not high risk
P(exactly one high risk) = P(HNN) + P(NHN) + P(NNH)
= P(H)P(N)P(N) + P(N)P(H)P(N) + P(N)P(N)P(H)
= (.1)(.9)(.9) + (.9)(.1)(.9) + (.9)(.9)(.1)= 3(.1)(.9)2
= .243
16
EXAMPLE 2
Suppose we have additional information for the previous
example. We know that only 49% of the population are
female. Also, of the female patients, 8% are high risk. A
single person is selected at random. What is the
probability that it is a high-risk and female?
Define H: high risk and F: female
From the example, P(F) = .49 and P(H|F) = .08.
Use the Multiplicative Rule:
P(high risk and female) = P(HF)
= P(F)P(H|F) =.49(.08)
= .0392 17
EXAMPLE
24
PRACTICE EXAMPLE
Chapter 1
© 2020 UMass Amherst
Lesson 1
Global. All rights reserved.