Bayesian Updating 2012
Bayesian Updating 2012
Bayesian Updating 2012
Bayesian Updating
Examples:
Matthew ate an orange today.
Political Science 201b / Psychology 332b
March 23, 2012
Examples:
All of the oranges are rotten.
Examples:
Probability that all of the oranges are rotten,
conditional on Matthew having eaten an orange
today.
Bayes Theorem
p (E|S) p(S)
,
p(E)
\
\
p S
E =p E
S
(1)
T
p (S E)
p (S|E) =
p(E)
(2)
p (S|E) =
So Bayes Theorem is
p (S|E) =
p (E|S) p(S)
p (E|S) p(S)
=
.
p(E)
p(E|S)p(S) + p(E|S)p(S)
p (disease|pos. test) =
p (E|S) p(S)
p(E)
10
p (disease|pos. test) =
11
(.95)(.01)
.
p (positive test)
12
(.95)(.01)
p (pos. test)
(.95)(.01)
p (pos. test | dis.) p (dis.) + p (pos. test | ~dis.) p (~dis.)
(.95)(.01)
.
(.95)(.01) + p (pos. test | ~disease) (.99)
(.95)(.01)
(.95)(.01) + p (pos. test | ~dis.) (.99)
13
(.95)(.01)
(.95)(.01) + p (pos. test | ~disease) (.99)
Many tests are better than this. But when you think
about testing, think about false positives and chances
of successful detection.
14
(.95)(.01)
.24.
(.95)(.01) + (.03)(.99)
15
16
p(S|E) =
(.2)(2/5)
21%.
(.2)(2/5) + (.5)(3/5)
17