Shock to expectation of exogenous variable

Dear all,

I am new to Dynare. I wonder if it’s possible to add shock to the expectation of an exogenous variable.

To be more clear, I am thinking about doing something similar to the news shock experiment (figure 6) in Gertler and Karadi (2011). In the top left figure, the expectation of capital quality remains low for 4 quarters and then went back to normal. I would greatly appreciate it if anyone can share some insights on this.

Many thanks in advance!

You can either go for a news shocks as in DSGE_mod/RBC_news_shock_model at master · JohannesPfeifer/DSGE_mod · GitHub or do a perfect foresight simulation.

Thanks, professor. Your news shock sample code is super helpful!
Could you explain more about doing this using perfect foresight simulation? Is this for simulating an unrealized shock in deterministic circumstances? My understanding is that under perfect foresight, agents know the whole path of exogenous variables. So if we use perfect foresight simulation, agents will do nothing because they know that the news shock will not be unrealized?

It seems I have misunderstood your question. If it’s a pure news shock, then the linked code seems appropriate.

Dear Professor, If I want to solve this RBC model with news shocks using value function iteration, How should I program the news shocks. Thank you!

What exactly do you mean with that? You may have to bring the process into a state space form by augmenting the state space: time series - State space representation of ARMA(p,q) from Hamilton - Cross Validated

Dear professor, I am so sorry. My model is highly nonlinear,so I need to solve it with global method. In this process, the shock that following AR(1) can be approximated by tauchen method or Rouwenhorst method. But, what about expectation shock, how can I deal with it? For example, the TFP shock is A_t=\rhoA_{-1}+\epsilon_{t-4}Thank you very much.

As I wrote above, you may need to enlarge the state space so that you have one shock and four states due to the lags. Then you can use standard techniques.

Thank you professor. So (1) Do I just need to think of lag shocks as separate state variables and not consider their time? That is, if there are four period lags, only four state variables are introduced, and the others are not considered.What’s the role of time? How do I make sure it’s four period shocks and not four shocks at the same period (2) If I consider a lag of 8 periods, do I have 8 additional state variables? (3) Are there any relevant papers or books to recommend

  1. Lagged shocks become a state variable that is to other lags via an equation.like
    eps_lag=eps(-1)
    That makes sure the timing is preserved instead of having separate shocks. That is the whole point of augmenting the state space.
  2. Yes, you would have 8 adidtional states in that case.
  3. Not really.

Thank you professor. Is it true that when I slove the policy function, they are essentially four shocks, regardless of time. It’s only when I’m calculating the impulse response that I need to focus time and make the shock lag.Thank you very much again.

No, that is incorrect. The decision rules of the agent need to take into account the relation between the news shock and subsequent lags.

Is a node representing time? I haven’t worked these types of solution techniques in a long time.