Shocks to bounded variables

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.

Shocks to bounded variables

Postby FLeGrand » Wed Feb 17, 2010 1:13 pm

Hi!
I am trying to simulate a model in which I put a shock on a bounded variable (more precisely, this variable is a proba and thus bounded btw 0 and 1). Unless I consider small shock variances , the simulated variable is not bounded any more and the simulation generates errors. Considering 'tricks' like min, max or arctan in order to keep shocks bounded does not seem to help, because of the linearisation I think.
I would like to know if it is possible to impose bounds on shocks or to simulate finite Markov chains, which could also be helpful in my case.
Thanks for any help.
Francois
FLeGrand
 
Posts: 3
Joined: Wed Feb 17, 2010 1:00 pm

Re: Shocks to bounded variables

Postby StephaneAdjemian » Sat Feb 20, 2010 12:38 am

Dear François,

The perturbation approach is not able to handle any kind constraint (positivity, probability less than one, ...) on the endogenous variables of a DSGE model. If you 'trick' dynare with max or min functions you introduce non differentiabilities and the Taylor approximation does not apply anymore. If instead you consider a logistic-like function, the S-shape pattern is lost when the model is linearized (the same if you choose a k-order local approximation).

Dynare simulates the approximated model using gaussian random numbers for the structural innovations. This can be seen at the end of the function simult_.m:

Code: Select all
oo_.exo_simul(:,i_exo_var) = randn(M_.maximum_lag+M_.maximum_lead+options_.periods,nxs)*chol_S;


Obviously you can truncate these innovations (modifying this matlab function). But a first problem is that the needed truncation should depend on the state of the economy (as a consequence innovations are not strong white noise). A second (more important) problem is that, when solving the model, the expectations are computed using non truncated distribution for the innovations. Consequently the expectations would not be consistent with the effective distribution of the innovations implied by the truncation.

I am not sure to understand how a finite a Markov Chain would help here... What do you have in mind ?

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.

Re: Shocks to bounded variables

Postby FLeGrand » Tue Feb 23, 2010 10:05 am

Dear Stephane,
Thanks for the answer. I get convinced of the issue after I compared a transformation of the innovation and its linearization.
Regarding the finite Markov chain, it would allow to approximate an AR(1), while keeping the parameter bounded. However, it should also raise analogous issues regarding Dynare.
Francois
FLeGrand
 
Posts: 3
Joined: Wed Feb 17, 2010 1:00 pm

Re: Shocks to bounded variables

Postby StephaneAdjemian » Tue Feb 23, 2010 10:24 am

Yes the approximation of the AR(1) would raise other issues. The approximation of an autoregressive process by a finite Markov chain is a discretization of a continuous state variable... Perturbation methods do not apply for discrete state variables.

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