Bayes`s Theorem Practice Problems

advertisement
Bayes Theorem Practice Problems
These are set of practice probability problems for exam 2. Express all probabilities to four decimal
digits.
Q1: Mammograms and breast cancer
1% of women at age forty who participate in routine screening have breast cancer. 80% of women with
breast cancer will get positive mammograms. 9.6% of women without breast cancer will also get
positive mammograms. .
Q1.1
What are the values of the following probabilities?
π‘ƒπ‘Ÿ(𝐢) = 0.0100
Pr(𝐢̅ ) = 0.9900
π‘ƒπ‘Ÿ(𝑀|𝐢) = 0.8000
Μ… |𝐢) = 0.2000
π‘ƒπ‘Ÿ(𝑀
π‘ƒπ‘Ÿ(𝑀|𝐢̅ ) = 0.0960
Μ… |𝐢̅ ) = 0.9400
π‘ƒπ‘Ÿ(𝑀
Bayes Theorem Practice Problems
Q1.2
Draw a probability tree using the probabilities given above that can be used to compute the probability
that a randomly selected woman has breast cancer if she has a positive mammogram.
Bayes Theorem Practice Problems
Q1.3
Draw a probability contingency table and compute the joint probabilities for each cell in the table.
Event
𝐢
𝐢̅
Marginal
M
0.00800
0.09504
0.10304
Μ…
Marginal
𝑀
0.00200 0.0100
0.89496 0.9900
0.89696 1.0000
π‘ƒπ‘Ÿ(𝐢, 𝑀) = π‘ƒπ‘Ÿ(𝑀|𝐢) Pr(𝐢) = 0.8000 βˆ™ 0.0100 = 0.00800
Μ… ) = π‘ƒπ‘Ÿ(𝑀
Μ… |𝐢)π‘ƒπ‘Ÿ(𝐢) = 0.2000 βˆ™ 0.0100 = 0.00200
π‘ƒπ‘Ÿ(𝐢, 𝑀
π‘ƒπ‘Ÿ(𝐢̅ , 𝑀) = π‘ƒπ‘Ÿ(𝑀|𝐢̅ )π‘ƒπ‘Ÿ(𝐢̅ ) = 0.0960 βˆ™ 0.9900 = 0.09504
Μ… ) = π‘ƒπ‘Ÿ(𝑀
Μ… |𝐢̅ )π‘ƒπ‘Ÿ(𝐢̅ ) = 0.9040 βˆ™ 0.9900 = 0.89496
π‘ƒπ‘Ÿ(𝐢̅ , 𝑀
Q1.4
Compute the probability that a randomly chosen woman will have a positive mammogram.
π‘ƒπ‘Ÿ(𝑀) = π‘ƒπ‘Ÿ(𝐢, 𝑀) + π‘ƒπ‘Ÿ(𝐢̅ , 𝑀) = 0.10304
Hint: This number can be found in the bottom row of the above table.
Bayes Theorem Practice Problems
Q1.5
Suppose a randomly selected woman has a mammogram and it is positive. What is the probability that
she has breast cancer? What is the probability that she does not have breast cancer?
π‘ƒπ‘Ÿ(𝐢|𝑀) =
π‘ƒπ‘Ÿ (𝐢,𝑀)
Pr(𝑀)
0.00800
= 0.10304 = 0.07763975 ≈ 0.0776
Bayes Theorem Practice Problems
Q2: Steroid Use in Rigby
A manufacturer claims that its drug test will detect steroid use (that is, show positive for an athlete who
uses steroids) 95% of the time. Further, 15% of all steroid-free individuals also test positive. 10% of the
rugby team members use steroids. Your friend on the rugby team has just tested positive.
Q2.1
We define the events in this problem as:
𝑆 = π‘π‘™π‘Žπ‘¦π‘’π‘Ÿ 𝑒𝑠𝑒𝑠 π‘ π‘‘π‘’π‘Ÿπ‘–π‘œπ‘‘π‘ 
𝑆̅ = π‘π‘™π‘Žπ‘¦π‘’π‘Ÿ π‘‘π‘œπ‘’π‘  π‘›π‘œπ‘‘ 𝑒𝑠𝑒 π‘ π‘‘π‘’π‘Ÿπ‘–π‘œπ‘‘π‘ 
𝑃 = π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’ 𝑑𝑒𝑠𝑑 π‘“π‘œπ‘Ÿ π‘ π‘‘π‘’π‘Ÿπ‘–π‘œπ‘‘π‘ 
𝑃̅ = π‘›π‘’π‘”π‘Žπ‘‘π‘–π‘£π‘’ 𝑑𝑒𝑠𝑑
Given the above event definitions, what are the values of the following probabilities?
π‘ƒπ‘Ÿ(𝑆) = 0.10
π‘ƒπ‘Ÿ(𝑆̅) = 0.90
π‘ƒπ‘Ÿ(𝑃|𝑆) = 0.95
π‘ƒπ‘Ÿ(𝑃̅ |𝑆) = 0.05
π‘ƒπ‘Ÿ(𝑃|𝑆̅) = 0.15
π‘ƒπ‘Ÿ(𝑃̅ |𝑆̅) = 0.85
Bayes Theorem Practice Problems
Q2.2
Draw a probability tree or a contingency table that can help you compute the probability that a
randomly selected rugby player is a steroid user if the player has a positive drug test. You may use the
empty tree below if you wish. Draw your own table if you are using a probability contingency table.
Bayes Theorem Practice Problems
Q2.3
Compute the following probabilities:
π‘ƒπ‘Ÿ(𝑆, 𝑃) = π‘ƒπ‘Ÿ(𝑆|𝑃) π‘ƒπ‘Ÿ(𝑃) = 0.1000 βˆ™ 0.9500 = 0.0950
Pr(𝑆̅, 𝑃) = Pr(𝑃̅|𝑆) π‘ƒπ‘Ÿ(𝑆) = 0.0500 βˆ™ 0.1000 = 0.0050
π‘ƒπ‘Ÿ(𝑆, 𝑃̅) = π‘ƒπ‘Ÿ(𝑃|𝑆̅)π‘ƒπ‘Ÿ(𝑆̅) = 0.1500 βˆ™ 0.9000 = 0.1350
π‘ƒπ‘Ÿ(𝑆̅, 𝑃̅) = π‘ƒπ‘Ÿ(𝑃|𝑆̅)π‘ƒπ‘Ÿ(𝑆̅) = 0.8500 βˆ™ 0.9000 = 0.7650
Q2.4
Compute the probability that the steroid test will give a positive result.
π‘ƒπ‘Ÿ(𝑃) = π‘ƒπ‘Ÿ(𝑆, 𝑃) + (𝑆̅, 𝑃) = 0.09050 + 0.1350 = 0.2300
Q2.4
Compute the probability that that a randomly selected player is using steroids if he has a positive test?
π‘ƒπ‘Ÿ(𝑆|𝑃) = π‘ƒπ‘Ÿ(𝑆, 𝑃)⁄π‘ƒπ‘Ÿ(𝑃) = 0.0950⁄0.2300 ≈ 0.4130
Bayes Theorem Practice Problems
Q2.5
A rugby team has 22 players. Suppose a league has 10 teams. How many players will be falsely
implicated by this drug test if all players are tested?
Let π‘₯ = π‘›π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘“π‘Žπ‘™π‘ π‘’ π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’ π‘π‘™π‘Žπ‘¦π‘’π‘Ÿπ‘ . Then the expected value of x is given by:
𝐸(𝑋) = 𝑛𝑝 = (10 βˆ™ 22) βˆ™ 0.1350 = 29.7
Q2.6
Do you think that this test is fair? Explain your answer.
No, because approximately 30 players will be accused of using steroids when they are not steroid users.
Download