Page 1 Section 1.6: Conditional Probability and Section 1.7: Bayes’ Theorem Definition:

advertisement
Page 1
Math 166-copyright Joe Kahlig, 16A
Section 1.6: Conditional Probability and Section 1.7: Bayes’ Theorem
Definition:
Conditional probability is the probability of an event, A, will occur given that
another event, B, has already happened. This is denoted as P (A|B).
Example: This table classifies the English, History, Math, and Poly Sci majors at State U according
to their year. (There are no double majors.)
Freshmen(F)
Sophomores(Soph)
Juniors(J)
Seniors(Sr)
Totals
English(E)
64
35
31
41
171
History(H)
55
41
33
52
181
Math(M)
29
32
50
69
180
Poly Sci(PS)
70
33
41
37
181
Totals
218
141
155
199
713
If a student is selected at random, find
A) P(H | soph) =
B) P (M c |J) =
C) P( (soph ∪ J) |PS) =
Interpret these Statements: Express these questions using the correct probability notation.
A factory makes widgets on three different machines; A, B and C; and a widget is selected at random.
1. What is the probability that it is defective knowing that the widget was made on machine C?
2. If the widget was made on machine A, what is the probability that it is defective?
3. What is the probability that the widget selected from line B is defective?
Page 2
Math 166-copyright Joe Kahlig, 16A
4. What is the probability it is made on machine A and is not defective?
5. What is the probability the widget is selected from line B or is defective?
6. What is the probability that the defective widget was made on machine C?
7. What is the probability that the widget is defective and came from machine A or machine B?
Example: Use the probability distribution and the events to answer these questions.
S
a
b
c
d
e
f
prob
0.15
0.08
0.21
0.12
0.25
0.19
E = { a, c, d, e}
F = {b, d, f}
G = {a, b, d}
Compute
A) P (E|G) =
B) P (G|F ) =
Definition: Let E and F be two events of the sample space S. Then the conditional probability that
E occurs given that F has occurred is defined as
P (E|F ) =
Math 166-copyright Joe Kahlig, 16A
Page 3
Example: It is know from a survey that 29% of the people buy product A, 36% of the people buy
product B and 11% buy both products. Find the probability that
A) the person buys product A if they bought product B.
B) the person does not buy product B knowing that they bought product A.
Example: A Jar has 5 red, 4 green, and 3 yellow items. Two items are drawn in succession without
replacement. Construct the probability tree that represents this experiment.
Math 166-copyright Joe Kahlig, 16A
Page 4
Example: You have two jars. Jar 1 had 4 red, 3 green and 2 black balls. Jar 2 has 8 red and 5 green
balls. The experiment is to draw a single ball. We have been told that a person is twice as likely to
draw a ball from Jar 1 as from Jar 2.
A) Draw the probability tree for this problem.
B) P (r|J1) =
C) P (g|J2) =
D) P (b|J2) =
E) P (J1 ∩ r) =
F) P (J1 ∩ g) =
G) P (g) =
Page 5
Math 166-copyright Joe Kahlig, 16A
Example: Use fact that P (C ∩ D) = 0.09 and the tree to answer these questions.
A) P (E|A) =
0.7
D
A
E
B) P (B|D) =
0.4
0.8
D
B
E
D
0.1
C
E
C) P (A ∪ D) =
Example: Based on data from a dental survey, it has been determined that 42% of 12-year olds have
never had a cavity, 34% of 13-year olds have never had a cavity, and 28% of 14-year olds have never
had a cavity. A child is selected at random from a group of students of which 28% of them are 12-year
olds, 45% of them are 13-year olds and the rest are 14-year olds.
A) What is the probability that
the selected student has a cavity?
B) What is the probability that the student,
who had a cavity, was 14 years old?
Math 166-copyright Joe Kahlig, 16A
Page 6
Example: Draw one ball from box A and place it into box B. Then draw one ball from box B.
Box A
Box B
3 red
2 red
5 green
5 yellow
If the second ball drawn is red, what is the probability
that the transferred ball was green?
Example: A medical test has been designed to detect the presence of a certain condition. Among
those who have the condition, the probability that the test will detect it is 98%. The test will give a
false positive 6% of the time. It is generally known that 12% of the population has the condition.
A) If the test administered to a person is positive,
what it the probability that the person actually
has the condition?
B) If the test is administered a second time and
it comes back positive both times, what is the
probability that the person has the condition?
Math 166-copyright Joe Kahlig, 16A
Page 7
Example: Draw cards from a deck of cards without replacement.
A) What is the probability that the
second card drawn is a heart.
B) P(3rd card is a heart) =
C) P(28th card is a heart) =
D) P(1st heart | 2nd is a club) =
Example: A computer store shipped 5 defective computers in its shipment of 30 computes to a local
school. The computers are arranged on desks inside the classroom. Find the probability that the
computer on desk 5 is defective if the computer on desk 1 and desk 10 are both good and the one on
desk 25 is defective.
Example: A box contains 5 red, 1 yellow, and 3 green objects. What is the probability that the third
object drawn is yellow?
Page 8
Math 166-copyright Joe Kahlig, 16A
Definition: Events E and F are said to be independent if
P (E|F ) = P (E)
and
P (F |E) = P (F )
Example: A kennel raises purebred dogs. Several litters from one dog produced 16 puppies with the
following markings:
Five had a white mark only on the head.
three had a white mark only on the forelegs.
three had a white mark on both head and forelegs
The rest had neither mark.
Determine whether the events “white mark on the head” and “white mark on the forelegs” are independent or not.
Math 166-copyright Joe Kahlig, 16A
Page 9
Example: A kidney transplant doctor has three patients, A, B, and C, that will be receiving a kidney
transplant. The doctor has determined that patient A has a 12% chance of rejecting the kidney,
patient B has a 8% chance of rejecting the kidney, and patient C has a 21% chance of rejecting the
kidney.
A) What is the probability that none
of the patients reject the kidney.
B) What is the probability that exactly
one of the patients will reject the kidney.
Example: If P (A) = 0.4 and P (B) = 0.6, what is P (A ∩ B)?
Example: A retailer receives a shipment of TV sets from two different companies. The first shipment,
from company A, is known historically to be 7.5% defective. The second, from company B, is known
to be 13% defective. If one item is selected from each shipment, what is the probability of selecting
one good TV and one defective TV?
Download