MODEL_FILENAME_mode.mat and MODEL_FILENAME_mh_mode.mat

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.

MODEL_FILENAME_mode.mat and MODEL_FILENAME_mh_mode.mat

Postby Aldo » Thu Jun 15, 2017 4:16 am

1. What is the difference between MODEL_FILENAME_mode.mat and MODEL_FILENAME_mh_mode.mat?

I understand MODEL_FILENAME_mode.mat is output after set mode_compute>0.
And MODEL_FILENAME_mh_mode.mat is output (mode and covariance of mcmc draws) after metropolis hasting.

Am I rigth?

2. I am using option mode_file based in MODEL_FILENAME_mode.mat, by doing this I get "tigth" distributions (very very concentrated around some point), is this a bad signal?

3. I think the tightness of distributions is because my initial point of mcmc is based in MODEL_FILENAME_mode.mat which is the mode, and it should be change if I set mode_file based in mean of priors.

4. Where is saved mean of priors distributions?

Thanks a lot in advance!!
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm

Re: MODEL_FILENAME_mode.mat and MODEL_FILENAME_mh_mode.mat

Postby jpfeifer » Fri Jun 16, 2017 8:17 am

The MODEL_FILENAME_mode.mat is based on the results from mode finding, i.e.
Code: Select all
mode_compute>0
. The resulting covariance matrix comes either out of the respective optimizer or is a Hessian at the mode computed via a finite difference approximation.

The MODEL_FILENAME_mh_mode.mat is computed based on the MCMC draws, i.e. if
Code: Select all
mh_replic>0

Based on MCMC draws the covariance matrix can be computed as the covariance between the draws. Ideally, the approximation at the mode should be a good approximation of the distribution and thus the results from both should be very similar. If they are not similar, there are a couple of reasons for this. For example, the mode-finding may have been unsuccessul of the MCMC may not have converged yet. Thus, it is hard to tell which one is preferrable.
An additional complication is that the covariance matrix at the mode from mode-finding is used as the proposal density for the MCMC and an almost 0 variance in one direction will then propagate to the MCMC. This may be what you are experiencing.
Which one to use depends very much on oyur goal. Most people report HPDIs based on the MCMC. In this case, it is important to verify convergence.

Using the prior mean to start the MCMC is generally not a good idea.
------------
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

Re: MODEL_FILENAME_mode.mat and MODEL_FILENAME_mh_mode.mat

Postby Aldo » Fri Jun 16, 2017 11:26 am

Thanks a lot dear jpfeifer.

Cheers

Aldo
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm


Return to Dynare help

Who is online

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