Page 1 of 1
stoch_simul after estimation vs stoch_simul using posterior
Posted:
Sun Apr 08, 2012 7:47 am
by superlily
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
Re: stoch_simul after estimation vs stoch_simul using poster
Posted:
Wed Apr 18, 2012 7:26 pm
by jpfeifer
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.
Re: stoch_simul after estimation vs stoch_simul using poster
Posted:
Fri Nov 15, 2013 9:53 am
by ilobayesian
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?
Re: stoch_simul after estimation vs stoch_simul using poster
Posted:
Fri Nov 15, 2013 2:43 pm
by jpfeifer
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.
Re: stoch_simul after estimation vs stoch_simul using poster
Posted:
Mon Nov 18, 2013 9:22 am
by ilobayesian
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!
Re: stoch_simul after estimation vs stoch_simul using poster
Posted:
Tue Nov 19, 2013 9:24 am
by jpfeifer
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.