Second order approximation - Simulations

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.

Second order approximation - Simulations

Postby ernestp » Tue Jun 27, 2006 7:43 pm

Dear Professor Juillard,
while simulating a (large) nonlinear model with Dynare I encontered a strange problem. Namely, the Dynare computes the theoretical moments (let say properly), but If I try to use the solution for the second order approximation to simulate the moments (using the same mod-file but with a command "period=...") the state vector explodes after 5-6 iterations. I think there must be something wrong with the model solution but what could be the reason for this. And more important, how to tackle the problem.
I will appreciate any feedback from you.
Ernest
ernestp
 
Posts: 4
Joined: Sun May 28, 2006 4:29 pm

Postby OndraKamenik » Wed Jun 28, 2006 10:42 am

The theoretical moments calculated in Dynare Matlab are the second order accurate. So this is only a gross approximation to true ergodic distribution. For the second order approximation the first moment at t depends on the second moments at t-1. By induction, for the ergodic distribution, the first moment will depend on all other moments (not only on the second). As far as I know it is impossible to calculate this theoretically.

Your problem with the exploding simulations is that the second order decision rule is not stationary, although the first order is (Blanchard Kahn linear stability).

The possible solutions are:

1) decrease the volatility of the shocks

2) decrease the degree of non-linearity in the model

3) perhaps your policy is not enough agressive?

4) It is still possible that your model yields a stationary solution but the second order approximation is wrong. So try a higher order approximation using Dynare++, maybe higher orders will compensate error of the second order approximation? If so, let me know.

Regards,

Ondra K.
OndraKamenik
 
Posts: 73
Joined: Mon Dec 20, 2004 8:32 am

Second order approximation - Simulations

Postby ernestp » Wed Jun 28, 2006 11:03 am

Yes, you are right, the reason for the non-stationarity is in this case the high volatility of structural shocks. I will definitely try the higher order approximations.

The another question I have is whether it is possible to calculate the second order accurate theoretical moments in the case where some eigenvalues are equal to unity. I am talking here about a two-country model with definitions of relative prices which are responsible for introducing the eigenvalues equal to unity. Is there any way to calculate theoretical moments (more precisely the mean of consumption) then? What can I use instead of Sylvester formula? Do you know any usefull tricks?
I will appreciate any feedback from you,
E.
ernestp
 
Posts: 4
Joined: Sun May 28, 2006 4:29 pm

Postby OndraKamenik » Wed Jun 28, 2006 11:26 am

I don't know about any trick.

However, if there is some algorithm for solving your problem having units in the spectra, I would be very very careful to prove that the algorithm is numerically stable and would definitely try to theoretically or experimentally calculate its forward error bounds. This is not encouraging, I know, but I am a purist. I always put in doubt algorithms which blindly rely on float(1)-float(1)=exact(0).

regards,

Ondra K.
OndraKamenik
 
Posts: 73
Joined: Mon Dec 20, 2004 8:32 am


Return to Dynare help

Who is online

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