We can now solve a Heterogeneous Agent New Keynesian model. In terms of computation, there is little differnece from what we have already done solving the model with the sequence-space Jacobians. So most of this lecture is about formulating the model.
Previously we have assumed a very basic model of households (e.g. only two income states). Let's take this opportunity to do something a bit more realistic. We can assume that households have a stochastic endowment of labor efficiency with their log productivity following an AR(1) process. There are several ways of approximating a continuous AR(1) process with a Markov chain. For a highly persistent process, the preferred method is the Rouwenhorst method. We will assume that the cross-sectional averge of is constant and equal to 1.
The households have preferences
where and is the disutility from labor supply.
We will assume that households save in a short-term nominal bond. The ex-post real return on the bond is , where we use the conventional timing that is the nominal rate between and and is the inflation rate between and . We will assume that the bond is in positive net supply because there is a stock of government debt outstanding. To pay interest on the debt the government imposes a proportional tax on household earnings. Finally, the government may pay a lump-sum transfer in amount . The household's real budget constraint is
where is the real wage (index).
It is common in the literature to assume that wages are set by unions who control the labor supply of the households and ration labor hours equally across households. In that case, is not in the control of the household. So the household's choice is simply to choose how much to consume and how much to save. We can use the endogenous grid method and non-stochastic simulation just as we did before.
Final goods are produced out of a labor aggregate according to , where is a CES aggregate of differentiated labor varieties supplied by unions. The market for final goods is competitive and the price is equal to the nominal marginal cost, which is the nominal wage index . This implies , where . Due to the equal rationing of labor hours, we have so in the household problem simplifies to .
The labor unions only adjust their wages infrequently resulting in a Phillips curve for wages and prices
Here is the log deviation of output from its natural level. We will assume that the natural level of output is constant (I am taking a shortcut here for simplicity) so is just the log deviation from steady state.
Let's assume monetary policy follows a simple Taylor rule
where is the the steady state real interest rate and is a monetary shock that follows an AR(1).
Turning to fiscal policy, we assume the transfer is exogenous. Let be the real value of the debt issued at and repaid at . The government budget constraint is
Fiscal policy sets such that debt evolves as follows
These two equations implicitly determine .
The aggregate variables are , , , , , , , and . These variables must satisfy asset market clearing
where and depend on the path of prices households face. In addition we have the Fisher equation, the Phillips curve, the two government policy rules, the government budget constraint, and the two exogenous sequences for and .
Let's start with the big picture: we are still formulating a set of equations of the form In this case, contains the transition paths of the eight variables listed above so it has dimension , where is the length of the transition. Similarly, we have eight equations holding at each date so represents equations. We are going to partition into two blocks. The first block contains the asset market clearing conditions at each date, which we construct with the heterogeneous-agent methods. We can differtiate this block with the Fake News algorithm. The other block of dimension contains the other equations at each date. This block can be constructed and differentiated using the same methods we used for the RBC model.
HANK_Script.jl
uses the model described here to simulate a fiscal policy shock consisting of a temporary increase in transfers. The results are shown in the figure below. With the increase in transfers, output increases leading to an increase in inflation and tighter monetary policy. Income taxes rise slightly to gradually pay off the extra government debt.