Universiteit Hasselt Concepts in Bayesian Inference Exam June 2015
Universiteit Hasselt Concepts in Bayesian Inference Exam June 2015
Universiteit Hasselt Concepts in Bayesian Inference Exam June 2015
Name: ...............................................................
GOOD LUCK!
1. (1 point) Explain briefly what is meant by saying that, in a particular
Bayesian statistics problem, a prior distribution is ‘conjugate’ ?
are known.
(a) Explain carefully how a sample from the joint posterior of the
parameters can be obtained using the method of composition.
(b) Explain how the posterior mean of δ may be estimated from this
sample.
(c) Explain how a sample from the posterior predictive distribution
of y can be obtained.
(d) How can the algorithm be modified if the parameter δ is con-
strained to lie in the interval (d1 , d2 )?
6. (2 points) Two Bayesian tools for hypothesis testing of H0 : θ = 0 are
the contour probabilities and Bayes factor.
Gamma distribution
If X ∼ gamma(a, b) then it has density
ba a−1 −bx
f (x|a, b) = x e
Γ(a)
for x > 0, a > 0, b > 0.
Further, E(X) = a/b and V ar(X) = a/b2
Geometric distribution
If X ∼ geometric(θ) then it has probability function
f (x|θ) = (1 − θ)x−1 θ
for x = 1, 2, ... and 0 < θ < 1.
Further, E(X) = 1/θ and V ar(X) = (1 − θ)/θ2
Poisson distribution
If X ∼ P oisson(λ) then it has probability function
λx e−λ
f (x|λ) =
x!
for x = 0, 1, 2, ... and λ > 0.
Further, E(X) = λ and V ar(X) = λ
Normal distribution
If X ∼ N (µ, σ 2 ) then it has density
!
1 (x − µ)2
f (x|µ, σ 2 ) = √ exp −
2πσ 2 2σ 2
for −∞ < x < ∞, −∞ < µ < ∞ and σ > 0.
Further, E(X) = µ and V ar(X) = σ 2
Standard Normal distribution table
Z x
P(X ≤ x) = ϕ(t)dt
X ∼ N (0, 1) −∞
-3 -2 -1 0 1 2 3