Question: Consider a model with Likelihood function L ( , , ) = P ( d , , ) = i = 1 n P (

Consider a model with Likelihood function

L(,,)=P(d,,)=i=1nP(dii,)P(i)

P(dii,)2ie(di)2

P(i,)=e(1+i)

and prior distributions

P()1

P()=e

with fixed . The goal is now to sample from the posterior distribution P(,,d) using a Metropolis-Hastings algorithm in which parameter gets updated in-turn using symmetric proposal kernels. Note that ,>0 .

Indicate for each of the following statements if it is true or false.

a) The Hasting ration for an update ii is

hi=min(1,iie(ii)[+(di)2])

b) The normal distribution iN(0,2) is a possible choice for a symmetric proposoanl kernel .

c) The R function

q <- function(x,d){return(abs(x + runif(1)*d - d/2));} 

constitues a valid proposal kernel q(i) .

d) The log-Hastings ration for an update is

log(h)=min(0,i[(di)2(di)2]

e) If the acceptance rate of the parameter is around 45%, the variance of the proposal kernel q() should be decreased.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!