Python code for Romer §5.6
This Colab notebook presents Python code to run the simulation in §5.6 of Romer 5e. It basically translates Romer’s verbal explanations of the method of undetermined coefficients into Python. For actual day-to-day research, you may prefer to use Benjamin Jenkins’ linearmodels package or Dynare, but writing code yourself for once will be very helpful to absorb the algorithm.