acceptance rate

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.

acceptance rate

Postby wdml » Thu Aug 16, 2007 3:06 pm

Hi,

I was doing my MCMC for my model with mh-replics= 1000000. Initially the acceptance rate came out to be around 30% for more than half of the process. But later the rate started to decline, and by the time the iterations were completed it was close to 10 %. I was wondering what one might diagnose of this. Thanks.
wdml
 
Posts: 5
Joined: Tue Apr 17, 2007 3:56 pm

Postby MichelJuillard » Thu Aug 16, 2007 10:17 pm

The only thing that one may say without looking at the output and at the actual Metropolis run is that Metropolis must have moved to another part of the distribution. It may be that the computed mode wasn't very good.
How big is the model? How long does it take to run 1000000 iterations?

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: acceptance rate

Postby StephaneAdjemian » Fri Aug 17, 2007 8:00 am

There is a log file for the metropolis in dynare version 4. If your model is written in XXX.mod you just have to open the text file :

./XXX/metropolis/metropolis.log

In this file you will find a lot of informations about what is going on in your mh. For instance, regularly the acceptation rate is saved (say every 2000 simulations) with the mean value of the parameters, so that you can find some explanations about the drop of your acceptation rate.

Best,
Stéphane.
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Postby wdml » Fri Aug 17, 2007 3:58 pm

Many thanks, Michel and Stéphane. My model is of quite size. It took about a day to run a block of 1000000 iterations. But without this many iterations, problems like this won't show up. Over half of the process, the acceptance rate is pretty stable at 0.3.
wdml
 
Posts: 5
Joined: Tue Apr 17, 2007 3:56 pm

Postby MichelJuillard » Sat Aug 18, 2007 1:54 am

I would like to find the origin of the problem. Can you send me the model and the data? I will look at it in September.

Kind regards

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby StephaneAdjemian » Sat Aug 18, 2007 7:58 am

I had the same type of problems with bvar-dsge estimation a couple of weeks ago. If you estimate this kind of model you should try with the last version of dynare v4 (the problem is not corrected in dynare v3). The problem was that for some values of the deep parameters the likelihood (and so the posterior kernel) appeared to be complex (I do not yet understand why). In this case the mh algorithm is trapped and the acceptation rate is zero.

Best, Stéphane.
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests