Oct 16-20 - Bayes’ Rule
1. Conditional Probabilities – PIL Ch 5
• Consider a chance set-up with dependent outcomes: specifically, a coin is tossed to select between two packs of cards, and then a card is drawn. We don’t suppose either that the coin is fair or that the packs are ordinary ones.
Let H = ‘the coin comes up heads’
Let T = ‘the coin comes up tails’
Let AS = ‘the card drawn is the ace of spades’
• Suppose that N trials are performed – with the following numbers for the different outcomes:
• Let Fr(X) be the (relative) frequency with which X occurs in the trials:
Fr(H) = n/N
Fr(AS) = ?
(*) Fr(H ∧ AS) = a/N
Fr(T ∧ ¬AS) = ?
• Let Fr(X/Y) be the frequency with which X occurs in the trials in which Y occurs – i.e., given that Y occurs:
(**) Fr(AS/H) = a/n
Fr(¬AS/T) = ?
• From (*) and (**) we see:
Fr(AS/H) = Fr(AS ∧ H) ÷ Fr(H)
• In the ‘long run’ probabilities should agree with frequencies – thus we have:
(v)Pr(AS/H) = Pr(AS ∧ H) ÷ Pr(H)
2. Bayes’ Rule – PIL Ch 7
• Pr(X) = Pr(X ∧ Y) + Pr (X ∧ ¬Y) – why?
• Bayes’ Rule:
|
|
|
| |
|
| |
|
|
|
|
| |
Pr(B/A) × Pr(A) + Pr(B/¬A) × Pr(¬A)
|
• E.g., let the coin be fair, let the heads pack be an ordinary 52 card deck, and let the tails pack contain nothing but the ace of spades – fill in the probabilities.
(a)Suppose someone performs a trial without your seeing – what is the probability that they tossed heads?
(b)Suppose they show you that the card drawn was the ace of spades – what is the probability that they tossed heads?
(c)Suppose that they return the card, shuffle and draw a second ace of spades – what is the probability that they tossed heads?
Notice how the evidence keeps effects the probability as it mounts up.
• Answer Q2-3 (p.56)
• Suppose your probability of having a certain type of cancer is Pr(C). Suppose further that a test is 99% reliable – if you have cancer, it yields a positive result 99% of the time, so Pr(+/C) = 99/100. Suppose that the chance of a ‘false positive’ is 1/200: P(+/¬C) = 1/200. If you receive a positive result, what is the chance that you have cancer, given:
(a)Pr(C) = 1/10,000?
(b)Pr(C) = 1/1,000?
(c)Pr(C) = 1/10?
What we see is that the ‘base rate’ is crucial to evaluating such probabilities.
• Q2 (p.77).