Probability Concepts: Game Probabilities and Bayes' Theorem, Exercises of Mathematics

Various probability concepts through examples, including the expected value of a dice game and the use of bayes' theorem to calculate the probability of having cancer given a positive test result. It also touches upon the concept of simpson's paradox.

Typology: Exercises

2021/2022

Uploaded on 03/31/2022

carlick
carlick 🇺🇸

4.2

(11)

276 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 10B, Spring 2017
Math 10B Probability Worksheet 2
1. (a) Suppose your friend offers to play the following game with you: she will roll three
six-sided dice. If all of the dice show different numbers, she will pay you $10. How
much would you be willing to pay her to be allowed to play this game?
The sample space here is all sequences of three numbers, each between 1
and 6. So there are 63possible outcomes and (assuming the dice are not
loaded) each is equally likely. The number of outcomes in which all three
dice show different numbers is P(6,3) = 6 ·5·4. Thus the probability that
you win the $10 is 6·5·4
63=5
9.
So if you play this game many times, you should expect that 5
9of the time
you will win $10. Thus the average amount of money you win if you play
many times is $50
9. So it is reasonable to be willing to pay any amount less
than that value to be allowed to play the game.
(b) What if she rolls seven dice instead of three?
You should not pay any money to play the game. If there are seven 6-sided
dice then they cannot all show different numbers—this is an example of the
pigeonhole principle.
2. Show that your belief in something should never increase both when some other event
occurs and when it doesn’t occur. Formally, show that if P(A|B)> P (A) then
P(A|Bc)< P (A).
Let’s assume for a moment that P(A|Bc)P(A) and see what that implies.
As we saw in class, we can always write
P(A) = P(AB) + P(ABc).
By definition of conditional probability, we also have that
P(AB) = P(A|B)P(B)
P(ABc) = P(A|Bc)P(Bc).
Therefore
P(A) = P(A|B)P(B) + P(A|Bc)P(Bc).
But since we have assumed that P(A|B)> P (A) and P(A|Bc)P(A), this
means that
P(A)> P (A)P(B) + P(A)P(Bc) = P(A)(P(B) + P(Bc)).
1
pf3
pf4

Partial preview of the text

Download Probability Concepts: Game Probabilities and Bayes' Theorem and more Exercises Mathematics in PDF only on Docsity!

Math 10B Probability Worksheet 2

  1. (a) Suppose your friend offers to play the following game with you: she will roll three six-sided dice. If all of the dice show different numbers, she will pay you $10. How much would you be willing to pay her to be allowed to play this game?

The sample space here is all sequences of three numbers, each between 1 and 6. So there are 6^3 possible outcomes and (assuming the dice are not loaded) each is equally likely. The number of outcomes in which all three dice show different numbers is P (6, 3) = 6 · 5 · 4. Thus the probability that you win the $10 is 6 · 5 · 4 63

So if you play this game many times, you should expect that 59 of the time you will win $10. Thus the average amount of money you win if you play many times is $ 509. So it is reasonable to be willing to pay any amount less than that value to be allowed to play the game.

(b) What if she rolls seven dice instead of three?

You should not pay any money to play the game. If there are seven 6-sided dice then they cannot all show different numbers—this is an example of the pigeonhole principle.

  1. Show that your belief in something should never increase both when some other event occurs and when it doesn’t occur. Formally, show that if P (A | B) > P (A) then P (A | Bc) < P (A).

Let’s assume for a moment that P (A | Bc) ≥ P (A) and see what that implies. As we saw in class, we can always write

P (A) = P (A ∩ B) + P (A ∩ Bc).

By definition of conditional probability, we also have that

P (A ∩ B) = P (A | B)P (B) P (A ∩ Bc) = P (A | Bc)P (Bc).

Therefore P (A) = P (A | B)P (B) + P (A | Bc)P (Bc). But since we have assumed that P (A | B) > P (A) and P (A | Bc) ≥ P (A), this means that

P (A) > P (A)P (B) + P (A)P (Bc) = P (A)(P (B) + P (Bc)).

By the laws of probability, P (B) + P (Bc) = 1. Therefore the above equation implies that P (A) > P (A). Since this conlcusion is absurd, our original assumption must have been false. So we can conclude that P (A | Bc) < P (A). By the way, there are many situations in which humans fail to act in a way that is consistent with this fact of probability theory.

  1. Suppose there is a test for checking the presence of skin cancer. When cancer is present, the test is positive 90% of the time and negative the other 10%. When cancer is not present, the test is positive 10% of the time, and negative the other 90%. Furthermore, the probability of having cancer is 1%. If someone receives the test and the result is positive, what is the probability that they have cancer? Hint: Use Bayes’ theorem.

As the hint suggests, we can calculate this probability using Bayes’ theorem. Let C be the event that cancer is present and let P be the event that the test is positive. We want to find P (C | P ) and we are given P (C), P (P | C), and P (P | Cc). So by Bayes’ theorem,

P (C | P ) =

P (P | C)P (C)

P (P )

P (P | C)P (C)

P (P ∩ C) + P (P ∩ Cc)

=

P (P | C)P (C)

P (P | C)P (C) + P (P | Cc)P (Cc)

In other words, if the test is positive then the probability that you actually have cancer is about 8.3%. This result may seem surprising since the test appears to be pretty accurate based on the given information. However, the probability of having cancer starts out very low. This is common in uses of Bayes’ theorem and demonstrates a common flaw in human ability to intuitively judge probabilities. Namely, humans have a tendency to overweight new evidence and underweight the importance of the original probability (often referred to as the “prior probability.”) By the way, this example helps explain why it is now recommended that people delay getting certain types of cancer screenings until later in life. When you are young, your chances of getting cancer are much lower and so a positive test result is likely to be a false positive and will lead to unnecessary stress and medical fees.

  1. Kidney stones is an affliction that comes in two varieties: small stones and large stones.

By similar calculations, we have that

P (S | Ac) =

P (S ∩ Ac) P (Ac)

If you only see these final answers, it is tempting to believe that treatment B is better. However, when you look at the table of success probabilities above, it seems that treatment A is better for both small stones and large stones! What is going on? The answer is that despite that fact that treatment A is apparently more successful, treatment A is used more frequently for patients with large stones. But both treatments A and B are less likely to succeed on patients with large stones. Here’s one way to think about this: treatment A is most often used on patients for which both methods have trouble, whereas treatment B is most often used on patients for which both methods work well, creating the illusion that treatment B is better overall. The lesson here is not that treatment A is better—although based on the evidence given above, that seems likely—but rather that you should be careful when reasoning about probabilities: they don’t always indicate what you intuitively think they should.