Professional Documents
Culture Documents
Proj D
Proj D
Project D
Exercise D.1 (1 point). Let y|(X, β, σ 2 ) ∼ Nn (Xβ, σ 2 In ), as in slides C1.
1. Show that
1
2 2 −n/2
p(y|X, β, σ ) ∝σ2 (σ ) exp − 2 SSR(β) .
2σ
2. Let ν
2 ν0 2
0
1/σ ∼ Gamma , σ .
2 2 0
Assuming σ 2 ⊥
⊥ (X, β), show that
Exercise D.2 (0.5 point). Show that if the density µ and the Markov kernel function
k(·, ·) are in detailed balance, then the Markov chain with Markov kernel function k is
µ-invariant.
1. Show that the Markov kernel function k(·, ·) of the MetropolisHastings (MH) algo-
rithm for sampling from a target density µ(·) is as given in the slides;
1
Dr. Shahin Tavakoli Applied Bayesian Statistics Project D
Assume that µ0 , Λ0 , η0 , S0−1 , ν0 , σ0 are given and xed. Giving details and justication of
any calculations you might need to do,
(a) {y j } ⊥
⊥ (θ, Σ)|({β j }, σ 2 ),
(b) σ 2 ⊥
⊥ (β, θ, Σ),
(c) θ ⊥
⊥ Σ,
(a) (θ, Σ) ⊥
⊥ ({y j }, σ 2 )|{β j },
(b) θ ⊥
⊥ Σ,
Hint: for some of these you might use calculations or results seen previously (but mention
them).
2
Dr. Shahin Tavakoli Applied Bayesian Statistics Project D
Instructions
This project is worth 25% of your nal mark.
The deadline for this project is Sunday 11th of June 2023 at midnight.
You can work on this in groups of 3 students. You can decide the groups. Make sure
that the names of each person in the group appears on the report.
You do not have to write your solutions in Latex. You can either write on a tablet
and convert it into pdf or you can write on paper and scan the sheet.
Late submissions are allowed but you will lose 0.5 pt for each 12 hours period of
delay.
The length of the report should be reasonable. Reports that are too long will be
penalized.
You will receive group feedbacks for your work but no general solution will be released.