HANK Models

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.

The household block

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 eite_{it} 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 eite_{it} is constant and equal to 1.

The households have preferences

E0t=0βt[u(ct)v(t)]\mathbb E_0 \sum_{t=0}^\infty \beta^t \left[u(c_t) - v(\ell_t)\right]

where u(c)=c1γ/(1γ)u(c) = c^{1-\gamma}/(1-\gamma) and v()v(\cdot) 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 1+rt=1+it11+πt1+r_t = \frac{1+i_{t-1}}{1+\pi_t}, where we use the conventional timing that iti_t is the nominal rate between tt and t+1t+1 and πt\pi_t is the inflation rate between t1t-1 and tt. 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 ηt \eta_t. The household's real budget constraint is

c+a=(1τ)wte+(1+rt)a+ηc + a' = (1-\tau) w_t e \ell + (1+r_t) a + \eta

where wtw_t 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, \ell 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.

The supply side

Final goods are produced out of a labor aggregate according to Yt=LtY_t = L_t, where LL is a CES aggregate of differentiated labor varieties supplied by unions. The market for final goods is competitive and the price PtP_t is equal to the nominal marginal cost, which is the nominal wage index WtW_t. This implies Yt=wtLtY_t = w_t L_t, where wt=Wt/Ptw_t = W_t / P_t. Due to the equal rationing of labor hours, we have =L\ell = L so wtw_t \ell in the household problem simplifies to YtY_t.

The labor unions only adjust their wages infrequently resulting in a Phillips curve for wages and prices

πt=κY^t+βπt+1.\pi_t = \kappa \hat Y_t + \beta \pi_{t+1}.

Here Y^t\hat Y_t 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 Y^t\hat Y_t is just the log deviation from steady state.

Policy

Let's assume monetary policy follows a simple Taylor rule

it=rˉ+ϕπt+εti_t = \bar r + \phi \pi_t + \varepsilon_t

where rˉ\bar r is the the steady state real interest rate and εt\varepsilon_t is a monetary shock that follows an AR(1).

Turning to fiscal policy, we assume the transfer ηt\eta_t is exogenous. Let AtA_{t} be the real value of the debt issued at tt and repaid at t+1t+1. The government budget constraint is

At=(1+rt)At1τtYt+ηt.A_t= (1+r_t)A_{t-1} -\tau_t Y_t + \eta_t.

Fiscal policy sets τt\tau_t such that debt evolves as follows

At=(1ρA)Aˉ+ρAt1+ηtηˉ+rtAt1rˉAˉ.A_t = (1-\rho_A) \bar A + \rho A_{t-1} + \eta_t -\bar \eta + r_t A_{t-1} - \bar r \bar A.

These two equations implicitly determine τt\tau_t.

Equilibrium

The aggregate variables are YtY_t, πt\pi_t, rtr_t, iti_t, AtA_t, τt\tau_t, ηt\eta_t, and εt\varepsilon_t. These variables must satisfy asset market clearing

At=gt(a,e)dΓt(a,e),A_t = \int g_t(a,e) d\Gamma_t(a,e),

where gtg_t and Γt\Gamma_t 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 ηt\eta_t and εt\varepsilon_t.

Implementation and code

Let's start with the big picture: we are still formulating a set of equations of the form f(X,E)=0.f(X,E) = 0. In this case, XX contains the transition paths of the eight variables listed above so it has dimension 8T8T, where TT is the length of the transition. Similarly, we have eight equations holding at each date so ff represents 8T8T equations. We are going to partition ff 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 7T7T 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.

Fiscal policy shock in a HANK model.