Page 1 of 1

question about the number of mh draws

PostPosted: Sat Sep 12, 2015 8:38 am
by jkh
I set mh_replic=10000. Acceptance rate happened to be 20%.

Then, I guess that the number of final draws is 2000.

But, actually, the number of draws in "filename_mh_blc.mat" files in metropolis folder is 10000.


Thank you for reply in advance.

Re: question about the number of mh draws

PostPosted: Sat Sep 12, 2015 11:36 am
by jpfeifer
You are misunderstanding the working of the Metropolis-Hastings algorithm. It provides correlated draws from the posterior (see Chib/Greenberg 1995 for a good introduction). When a draw is rejected, the old draw becomes the new draw. That's why there are always as many draws as specified.