Documente Academic
Documente Profesional
Documente Cultură
I am a somebody!
Likelihood
conditional probabilities
Posterior
integrates prior with likelihood using Bayes
theorem
Bayes Theorem
d i
P Aj | B
P ( B| Ai ) P ( Ai )
n
P ( B| A ) P ( A )
i
j 1,2,..., n
i 1
P ( B A2 ) P ( B| A2 ) P ( A2 )
A2
A1
B
A3
P ( B A3 ) P ( B| A3 ) P ( A3 )
Likelihood
Product
Posterior
A1
P(A1)
P(B|A1)
P(B|A1) P(A1)
A2
.
.
.
.
An
P(A2)
P(B|A2)
P(B|A2) P(A2)
P(An)
P(B|An)
P(B|An) P(An)
SUM
1.0
P(B)
1.0
n
P ( B) P ( B| Ai ) P ( Ai )
i 1
Urn I
2 red
8 green
Urn II
8 red
2 green
Urn III
Prior Likelihood
Joint Prob
Posterior
1/3
1/2
1/6
(1/6)/(1/2)=1/3
1/3
1/5
1/15
(1/15)/(1/2)=2/15
1/3
4/5
4/15
(4/15)/(1/2)=8/15
P(Red)=1/2
1.0
1.0
.5
.3
solid
growth stagnation
.2
bonds
12
9.2
stocks
15
-2
8.0
credit union
7.0
inflation
expected
value
Forecast predicted
Growth
Stagnation
Inflation
.7
.1
0
.2
.1
.7
.1
.8
.3
Pr(Forecast Stagnation|Stagnation)
Pr(Forecast Stagnation|Inflation)
Posterior
.921
.079
0
1.00
Posterior
.143
.686
.171
1.00
More Revisions
Forecast says INFLATION:
Prior Likelihood
Joint Posterior
Growth
.5
.2
.10
.370
Stagnation
.3
.1
.03
.111
Inflation
.2
.7
.14
.519
P(forecast Inflation) = .27 1.00
I wholeheartedly endorse
this Bayesian thing.
.3
High
60,000
0
.5
Moderate
20,000
0
.2
Low
-70,000
0
I need to get
me some of that.
EMV
14,000
0
State
of nature
High
.3
Mod
.5
Low
.2
Likelihood
Joint
Prior High Mod Low High Mod Low
.6
.2
.2
.18 .06
.06
.72
.1
.8
.1
.05 .40
.05
.20
.1
.2
.7
.02 .04
.14
.08
.25 .50
.25
Posterior
High Mod L
.12
.24
.80
.20
.08
.56
Theoretical Likelihoods
let m = the expected number of system failures per month
Event
Prior
Poisson likelihood Function:
m = 1/mo.
.60
x = number of failures per month
m = 2/mo.
.30
m x
e
m
m = 3/mo.
.10
P ( x| m)
x!
If one failure is observed (x = 1) during the initial trial month, find posterior.
m
1
2
3
Prior
.6
.3
.1
1.0
e-2 2
Likelihood
Joint
.368
.2208
.271
.0813
e-1
.149
.0149
p(1) = .317
e-3 3
Posterior
.6965
.2565
.0470
1.0
Prior
.6
.3
.1
1.0
Likelihood
.184
.271
.224
Joint
.1104
.0813
.0224
p(1) = .2141
e m m2
P (2| m)
2!
Posterior
.5156
.3797
.1046
1.0