Download Sec5.3

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Statistics wikipedia , lookup

History of statistics wikipedia , lookup

Birthday problem wikipedia , lookup

Inductive probability wikipedia , lookup

Ars Conjectandi wikipedia , lookup

Probability interpretations wikipedia , lookup

Probability wikipedia , lookup

Transcript
+
Chapter 5: Probability: What are the Chances?
Section 5.3
Conditional Probability and Independence
The Practice of Statistics, 4th edition – For AP*
STARNES, YATES, MOORE
+
Chapter 5
Probability: What Are the Chances?
 5.1
Randomness, Probability, and Simulation
 5.2
Probability Rules
 5.3
Conditional Probability and Independence
+Section 5.3
Conditional Probability and Independence
Learning Objectives
After this section, you should be able to…

DEFINE conditional probability

COMPUTE conditional probabilities

DESCRIBE chance behavior with a tree diagram

DEFINE independent events

DETERMINE whether two events are independent

APPLY the general multiplication rule to solve probability questions
is Conditional Probability?
When we are trying to find the probability that one event will happen
under the condition that some other event is already known to have
occurred, we are trying to determine a conditional probability.
Definition:
The probability that one event happens given that another event
is already known to have happened is called a conditional
probability. Suppose we know that event A has happened.
Then the probability that event B happens given that event A
has happened is denoted by P(B | A).
Read | as “given that”
or “under the
condition that”
Conditional Probability and Independence
The probability we assign to an event can change if we know that some
other event has occurred. This idea is the key to many applications of
probability.
+
 What
Grade Distributions
+
 Example:
E: the grade comes from an EPS course, and
LB: the grade is lower than a B.
Total
6300
1600
2100
Total 3392 2952
Find P(E)
P(E) = 1600 / 10000 = 0.16
Find P(E | LB)
P(E | L) = 800 / 3656 = 0.2188
Find P(LB | E)
P(L| E) = 800 / 1600 = 0.5000
3656
10000
Conditional Probability and Independence
Consider the two-way table on page 314. Define events
Probability and Independence
Definition:
Two events A and B are independent if the occurrence of one
event has no effect on the chance that the other event will
happen. In other words, events A and B are independent if
P(A | B) = P(A) and P(B | A) = P(B).
Example:
Are the events “male” and “left-handed”
independent? Justify your answer.
P(left-handed | male) = 3/23 = 0.13
P(left-handed) = 7/50 = 0.14
These probabilities are not equal, therefore the
events “male” and “left-handed” are not independent.
Conditional Probability and Independence
When knowledge that one event has happened does not change
the likelihood that another event will happen, we say the two
events are independent.
+
 Conditional
Multiplication Rule
P(A ∩ B) = P(A) • P(B | A)
where P(B | A) is the conditional probability that event
B occurs given that event A has already occurred.
Conditional Probability and Independence
General Multiplication Rule
The probability that events A and B both occur can be
found using the general multiplication rule
+
 General
A Special Multiplication Rule
Definition:
Multiplication rule for independent events
If A and B are independent events, then the probability that A
and B both occur is
P(A ∩ B) = P(A) • P(B)
Example:
Following the Space Shuttle Challenger disaster, it was determined that the failure
of O-ring joints in the shuttle’s booster rockets was to blame. Under cold
conditions, it was estimated that the probability that an individual O-ring joint would
function properly was 0.977. Assuming O-ring joints succeed or fail independently,
what is the probability all six would function properly?
P(joint1 OK and joint 2 OK and joint 3 OK and joint 4 OK and joint 5 OK and joint 6 OK)
=P(joint 1 OK) • P(joint 2 OK) • … • P(joint 6 OK)
=(0.977)(0.977)(0.977)(0.977)(0.977)(0.977) = 0.87
Conditional Probability and Independence
When events A and B are independent, we can simplify the
general multiplication rule since P(B| A) = P(B).
+
 Independence:
+
Example:
If P(A) = 0.45, P(B) = 0.35, and A &
B are independent, find P(A or B).
First we need to ask if A & B disjoint?
NO, independent
events
cannot
If A & B are disjoint,
can they
also
be be disjoint
P(A or B) = P(A) +independent?
P(B) – P(A & B)
Disjoint events are
Disjoint events Cannot coexist!
Ifindependent!
NEVER
So will knowing
event A has happened
How can you
independent,
probability
of B?
find the
P(A or B) affect
= .45the
+ multiply
.35
- .45(.35)
= 0.6425
probability of
A & B?
Conditional Probabilities:
+
 Using
What percent of teens are online and have posted a profile?
P(online )  0.93
P(profile | online )  0.55
P(online and have profile )  P(online )  P( profile | online )

 (0.93)(0.55)
 0.5115
51.15% of teens are online and have
 a profile.
posted
Conditional Probability and Independence
The Pew Internet and American Life Project finds that 93% of teenagers (ages
12 to 17) use the Internet, and that 55% of online teens have posted a profile
on a social-networking site.
Conditional Probabilities
General Multiplication Rule
P(A ∩ B) = P(A) • P(B | A)
Conditional Probability Formula
To find the conditional probability P(B | A), use the formula
=
Conditional Probability and Independence
If we rearrange the terms in the general multiplication rule, we
can get a formula for the conditional probability P(B | A).
+
 Calculating
Who Reads the Newspaper?
What is the probability that a randomly selected resident who reads USA
Today also reads the New York Times?
P(A  B)
P(B | A) 
P(A)


P(A  B)  0.05
P(A)  0.40
0.05
P(B | A) 
 0.125
0.40
There is a 12.5% chance that a randomly selected resident who reads USA
Today also reads the New York Times.
Conditional Probability and Independence
In Section 5.2, we noted that residents of a large apartment complex can be
classified based on the events A: reads USA Today and B: reads the New
York Times. The Venn Diagram below describes the residents.
+
 Example:

A probability that takes into account a
given condition
P(A  B)
P(B | A) 
P(A)
and
P(B | A) 
given
+
Conditional Probability
+
Ex In a recent study it was found
that the probability that a
randomly selected student is a
girl is .51 and is a girl and plays
sports is .10. If the student is
female, what is the probability
that she plays sports?
P(S  F) .1
P(S | F) 

 .1961
P(F)
.51
+
Ex 10) The probability that a
randomly selected student plays
sports if they are male is .31. What
is the probability that the student is
male and plays sports if the
probability that they are male
is .49?
P(S  M)
x
P(S | M) 
.31 
P(M)
.49
x  .1519
TREE DIAGRAMS: Who Visits YouTube?
See the example on page 320 regarding adult Internet users.
Video-sharing sites, led by YouTube are popular
destinations on the Internet. Let’s look only at adult
Internet users, aged 18 and over. About 27% of
adult Internet users are 18-29 years old, another
45% are 30 to 49 and the remaining 28% are 50
and over. The Pew Internet and America Life
Project finds that 70% of Internet users aged 18 to
29 have visited a video-sharing site, along with 51%
of those aged 30 to 49 and 26% of those 5o+.
What percent of all adult Internet
users visit video-sharing sites?
+
 USING
TREE DIAGRAMS: Who Visits YouTube?
+
 USING
See the example on page 320 regarding adult Internet users.
What percent of all adult Internet users visit video-sharing sites?
P(video yes ∩ 18 to 29) = 0.27 • 0.7
=0.1890
P(video yes ∩ 30 to 49) = 0.45 • 0.51
=0.2295
P(video yes ∩ 50 +) = 0.28 • 0.26
=0.0728
P(video yes) = 0.1890 + 0.2295 + 0.0728 = 0.4913
+
Example:
Management has determined that customers return
12% of the items assembled by inexperienced
employees, whereas only 3% of the items assembled
by experienced employees are returned. Due to
turnover and absenteeism at an assembly plant,
inexperienced employees assemble 20% of the items.
Construct a tree diagram or a chart for this data.
What is the probability that an item is returned?
If an item is returned, what is the probability that an
inexperienced employee assembled it?
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
11) What is the probability that the driver is a
student?
195
P (Student ) 
359
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
12) What is the probability that the driver drives a
European car?
45
P (European ) 
359
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
13) What is the probability that the driver drives
an American or Asian car?
212  102
P (American or Asian ) 
359
Disjoint?
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
14) What is the probability that the driver is staff
or drives an Asian car?
164  102  47
P (Staff or Asian ) 
359
Disjoint?
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
15) What is the probability that the driver is staff
and drives an Asian car?
47
P (Staff and Asian ) 
359
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
16) If the driver is a student, what is the
probability that they drive an American car?
107
P (American |Student ) 
195
Condition
+
Probabilities from two way tables
American
European
Asian
Total
Stu
107
33
55
195
Staff
105
12
47
164
Total
212
45
102
359
17) What is the probability that the driver is a
student if the driver drives a European car?
33
P (Student |European ) 
45
Condition
+
Probabilities from two way tables
+ Section 5.3
Conditional Probability and Independence
Summary
In this section, we learned that…

If one event has happened, the chance that another event will happen is a
conditional probability. P(B|A) represents the probability that event B
occurs given that event A has occurred.

Events A and B are independent if the chance that event B occurs is not
affected by whether event A occurs. If two events are mutually exclusive
(disjoint), they cannot be independent.

When chance behavior involves a sequence of outcomes, a tree diagram
can be used to describe the sample space.

The general multiplication rule states that the probability of events A
and B occurring together is P(A ∩ B)=P(A) • P(B|A)

In the special case of independent events, P(A ∩ B)=P(A) • P(B)

The conditional probability formula states P(B|A) = P(A ∩ B) / P(A)
+
Looking Ahead…
In the next Chapter…
We’ll learn how to describe chance processes using the
concept of a random variable.
We’ll learn about
 Discrete and Continuous Random Variables
 Transforming and Combining Random Variables
 Binomial and Geometric Random Variables