The Perfect Foresight Algorithm

Please feel free to raise any comments or issues on the website’s Github repository. Pull requests are very much appreciated.

Description

We cover deterministic simulations in DSGE models also known as perfect foresight simulations and how one can do this in Dynare.

  1. We will cover very briefly the intuition behind this method.
  2. We are going to illustrate several scenarios which you can analyze using a two-country New Keynesian DSGE model as an example.
  3. We will go through the Dynare specific commands that you need know.
  4. We will go under the hood and derive the Newton type algorithm that Dynare uses and discuss some numerical issues we need to deal with.
  5. To make sure that we really understand the algorithm and the way Dynare computes deterministic simulations, we are going to re-implement it manually in MATLAB and then see that the results are exactly the same.

Slides

Codes

Topics

  • Recap Deterministic Simulations under Perfect Foresight
  • Example Two-Country NK model with ZLB
    • Temporary Monetary Policy Shock
    • Pre-Announced Temporary Monetary Policy Shock
    • Permanent Increase Inflation Target (Surprise)
    • Pre-Announced Permanent Increase in future tax rates
  • Dynare Specifics: Commands and Under the Hood
  • General DSGE Framework under Perfect Foresight
  • Two-Boundary Value Problem
  • Newton Method
  • The Perfect Foresight Algorithm
  • Controlling Newton Algorithm in Dynare
  • Initial Guess for Newton Algorithm
  • Infinite Horizon Problems
  • Jacobian
  • Re-Implementation of Perfect Foresight Algorithm in MATLAB

References

  • Sébastien Villemot (2022) - Deterministic Models, Perfect foresight, nonlinearities and occasionally binding constraints