question about the number of mh draws

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

question about the number of mh draws

Postby jkh » Sat Sep 12, 2015 8:38 am

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.
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: question about the number of mh draws

Postby jpfeifer » Sat Sep 12, 2015 11:36 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 2 guests

cron