convergence problem

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.

convergence problem

Postby umut » Tue Mar 02, 2010 3:12 am

Hello everyone,

I do have a model that includes stochastic shock which Dynare can handle. However, if I convert that shock to a deterministic one, I experience convergence problem. Even though everything is same in the files, but, when I replace the stochastic shock with a deterministic one, I am not able to get the solution. You can see both of the files attached. Do you have any idea regarding this problem?

Best regards
Attachments
stochastic.mod
(1.08 KiB) Downloaded 73 times
deterministic.mod
(1.1 KiB) Downloaded 75 times
umut
 
Posts: 4
Joined: Tue Nov 17, 2009 5:01 am

Re: convergence problem

Postby SébastienVillemot » Tue Mar 09, 2010 9:14 am

Hi,

I guess that the shock in determistic mode is too big, so that the models enter a region of the state space where it is no longer stable. Remember that the stability criterion (as embodied by the Blanchard-Kahn conditions) is only a local property valid in the neighborhood of the steady state.

Try to diminish the size of your shock.

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: convergence problem

Postby StephaneAdjemian » Thu Mar 11, 2010 10:43 am

Hi,

(To be less pessimistic than Sebastien) Even if the model is globally stable and if there is no indeterminacy problem, as it would be in a Ramsey growth model, if the initial condition is too far (or the shock too big) the deterministic solver may fail in finding the solution (where too far or too big depend on the degree of nonlinearity of the model). The solution of a perfect foresight model is computed by solving a large system of nonlinear equations (the FOCs defining the model at all the periods). If the solution (the path for the endogenous variables) is too far from the initial condition the newton routine used to solve this system will fail. By default in Dynare, the initial condition for the path of the endogenous variables is the steady state (last steady state if the shock affects the steady state).

In your case, if you really need big shocks or large initial deviation to the steady state, an homotopic approach can be used. I will post an example as soon as possible on the wiki (briefly this can be done with a loop around the simul command).

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
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: No registered users and 8 guests