stoch_simul after estimation vs stoch_simul using posterior

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.

stoch_simul after estimation vs stoch_simul using posterior

Postby superlily » Sun Apr 08, 2012 7:47 am

I have a mod file where I estimate via Bayesian and then run stoch_simul to get the theoretical variances. But I find that if I write a new mod file using the posterior mean of parameters and then run stoch_simul to get the theoretical variances, the variances are different from those above. Why are they different?

The Dynare version is 4.2.4
superlily
 
Posts: 1
Joined: Sun Apr 08, 2012 7:19 am

Re: stoch_simul after estimation vs stoch_simul using poster

Postby jpfeifer » Wed Apr 18, 2012 7:26 pm

That should not be the case. Does the issue persist in Dynare 4.2.5? If yes, could you post the mod-file and the data-file.
------------
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: stoch_simul after estimation vs stoch_simul using poster

Postby ilobayesian » Fri Nov 15, 2013 9:53 am

I am experiencing a similar issue: if i run stoch_simul after estimation, I get my output, but if I impose the parameter values I just estimated in a separate file and I use stoch_simul, Dynare tells me that B-K conditions are not satisfied. It seems that does not depend on the version of Dynare I am using. How is that possible?
ilobayesian
 
Posts: 37
Joined: Mon Jul 25, 2011 3:55 pm

Re: stoch_simul after estimation vs stoch_simul using poster

Postby jpfeifer » Fri Nov 15, 2013 2:43 pm

Every parameter vector must satisfy the Blanchard-Kahn-conditions. However, the parameters after Bayesian estimation are not the mean parameter vector, but the vector of parameter means. This might explain the difference. You can try to get the mode by using

Code: Select all
xparam = get_posterior_parameters('mode')

after completing estimation.
------------
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: stoch_simul after estimation vs stoch_simul using poster

Postby ilobayesian » Mon Nov 18, 2013 9:22 am

Sorry, I do not think I am getting it. The vector of parameter means, i.e. the estimation result, should satisfy the Blanchard-Kahn-conditions. Otherwise how could stoch_simul (runned after the estimation) be able to solve the model at the posterior mean?

Thank you for the clarification!
ilobayesian
 
Posts: 37
Joined: Mon Jul 25, 2011 3:55 pm

Re: stoch_simul after estimation vs stoch_simul using poster

Postby jpfeifer » Tue Nov 19, 2013 9:24 am

For every parameter vector the BK conditions are satisfied in estimation. But the estimation result is none of these parameters. It is not the median, but the mean. The mean is a convex combination of the estimated parameters. If the stability region is a convex set of the parameters, this particular convex-combination called mean will be inside the stability region. However, in some cases the stability region is not a convex set and the mean parameter vector is outside of it. In these cases, stoch_simul after estimation will crash because the BK-conditions are violated.
------------
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 7 guests