gEconpy
gEconpy copied to clipboard
Add notebook showing linearization/perturbation math
Notebook should use a toy system; 3 equation RBC in reduced form for readability. Bonus points if we use a model with an analytic solution, so we can compare it to the perturbation solution
- Get the jacobian matrices A, B, C, D using sympy
- Substitute variables
xforexp(x)and show the difference between linear and log-linear approximation - Explain the algebra that gives the system of equations for $T$ and $R$
- Explain the algebra that leads to the QZ-decomposition and the approximate policy solutions $T = Z_{22}^{-1} Z_{21}$ and $R = -(CT + B)^{-1} D$
- Do it by hand using
scipy.linalg.ordqz
Good resource: https://stephane-adjemian.fr/dynare/slides/dsge-perturbation-method.pdf