Conjugate Priors: Beta and Normal
18.05 Spring 2014
January 1, 2017 1 /15
Conjugate Priors: Beta and Normal 18.05 Spring 2014 January 1, 2017 - - PowerPoint PPT Presentation
Conjugate Priors: Beta and Normal 18.05 Spring 2014 January 1, 2017 1 /15 Review: Continuous priors, discrete data Bent coin: unknown probability of heads. Prior f ( ) = 2 on [0,1]. Data: heads on one toss. Question: Find the
January 1, 2017 1 /15
January 1, 2017 2 /15
January 1, 2017 3 /15
January 1, 2017 4 /15
prior)
post)
−(θ−µprior)2 2σ2
prior
−(x−θ)2 2σ2
−(θ−µpost)2 2σ2
post
January 1, 2017 5 /15
January 1, 2017 6 /15
2 4 6 8 10 12 14 0.0 0.2 0.4 0.6 0.8 Prior Plot 1 Plot 2 Plot 3 Plot 4 Plot 5
January 1, 2017 7 /15
2 4 6 8 10 12 14 0.0 0.2 0.4 0.6 0.8 Prior Plot 1 Plot 2 Plot 3 Plot 4 Plot 5
January 1, 2017 8 /15
January 1, 2017 9 /15
hypothesis data prior likelihood posterior Bernoulli/Beta θ ∈ [0, 1] x beta(a, b) Bernoulli(θ) beta(a + 1, b) or beta(a, b + 1) θ x = 1 c1θa−1(1 − θ)b−1 θ c3θa(1 − θ)b−1 θ x = 0 c1θa−1(1 − θ)b−1 1 − θ c3θa−1(1 − θ)b Binomial/Beta θ ∈ [0, 1] x beta(a, b) binomial(N, θ) beta(a + x, b + N − x) (fixed N) θ x c1θa−1(1 − θ)b−1 c2θx(1 − θ)N−x c3θa+x−1(1 − θ)b+N−x−1 Geometric/Beta θ ∈ [0, 1] x beta(a, b) geometric(θ) beta(a + x, b + 1) θ x c1θa−1(1 − θ)b−1 θx(1 − θ) c3θa+x−1(1 − θ)b Normal/Normal θ ∈ (−∞, ∞) x N(µprior, σ2
prior)
N(θ, σ2) N(µpost, σ2
post)
(fixed σ2) θ x c1 exp (
−(θ−µprior)2 2σ2
prior
) c2 exp (
−(x−θ)2 2σ2
) c3 exp (
(θ−µpost)2 2σ2
post
)
January 1, 2017 10 /15
prior)
2σ2
prior
prior)
2σ2
prior
January 1, 2017 11 /15
0.0 0.2 0.4 0.6 0.8 1.0 1 2 3 4 5 6 beta(2,12) beta(12,12) beta(21,12) beta(21,19)
January 1, 2017 12 /15
January 1, 2017 13 /15
January 1, 2017 14 /15
MIT OpenCourseWare https://ocw.mit.edu
Spring 2014 For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.