• No results found

Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models

N/A
N/A
Protected

Academic year: 2022

Share "Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models"

Copied!
78
0
0

Loading.... (view fulltext now)

Full text

(1)

Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models

Adrien Auclert, Bence Bardóczy, Matt Rognlie, Ludwig Straub

Computational Economics and Finance Remote Brown Bag, May 2020

1

(2)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method] 2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of

aggregate sequences (sequence space) [MIT shock method] For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ...

(3)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method]

2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of aggregate sequences (sequence space) [MIT shock method]

For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ...

2

(4)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method]

2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of aggregate sequences (sequence space) [MIT shock method]

For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ...

(5)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method]

2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of aggregate sequences (sequence space) [MIT shock method]

For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ...

2

(6)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method]

2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of aggregate sequences (sequence space) [MIT shock method]

For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ...

(7)

This paper

Q: How to solveheterogeneous-agent (HA) modelsin GE with aggregate shocks?

• When idiosyncratic risk  aggregate risk, two leading options:

1. Linearize wrt aggregate shocks, solvelinear state space system [Reiter method]

2. Assume perfect foresight wrt aggregate shocks, solvenonlinear systemin space of aggregate sequences (sequence space) [MIT shock method]

For small shocks, 1 ⇔ 2 by certainty equivalence [Boppart, Krusell, Mitman]

• Here: directly solvelinear systemin thesequence space: same, but faster!

• Our method: three steps

1. Write HA model as a collection ofblocks along a directed acyclic graph (DAG) 2. Compute theJacobian of each block: key “sufficient statistic” for GE interactions 3. Use Jacobians for:IRFs, determinacy, full-info estimation, nonlinear transitions, ... 2

(8)

Why is our method useful?

1. Fast: for state-of-the-art, two-asset HANK model,

• First impulse response takes ∼5s (vs ∼100s with leading alternative methods)

• Additional impulse responses take ∼100ms (vs 100s) byre-using Jacobians

• This makesmodel estimationpossible

2. Accurate: no “model reduction” necessary, only error is from truncation 3. Modular: easy to build complex models by stitching blocks together 4. Intuitive: block Jacobians often have simple interpretation[eg MPCs]

5. Accessible: key steps automated in publicly available code[in Python]

(9)

Literature: our method combines several innovations

• Write equilibrium as linear system in aggregates

[Reiter 2009, McKay and Reis 2016, Winberry 2018, Bayer, Luetticke, Pham-Dao and Tjaden 2019, Mongey and Williams 2017, Ahn, Kaplan, Moll, Winberry and Wolf 2018, ...]

size of system now independent of underlying HA, no Schur decomposition that’s costly for large state space

• Solve for impulse responses in sequence space

[Auerbach and Kotlikoff 1987, Guerrieri and Lorenzoni 2017, McKay, Nakamura and Steinsson 2016, Kaplan, Moll and Violante 2018, Boppart, Krusell and Mitman 2018, ...]

but now compute all in one go, no slowly-converging iteration

• Capture heterogeneity using GE sufficient statistics

[Auclert and Rognlie 2018, Auclert, Rognlie and Straub 2018, Guren, McKay, Nakamura and Steinsson 2018, Koby and Wolf 2018, Wolf 2019]

previously empirical or conceptual, now a computational tool

4

(10)

Roadmap

1 Models as collections of blocks arranged along a DAG

2 All you need are block Jacobians

3 Speeding up HA Jacobian computation

(11)

Models as collections of blocks

arranged along a DAG

(12)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs

Example 1:heterogeneous household block {rt,wt} → {Ct}

Example 2:representative firm block with L = 1 Example 3:goods market clearing block

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

(13)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

• Exogenous Markov chain for skills Π (e0|e)

• Households

max E0

X

t

βtu(cit)

cit+kit≤ (1 + rt)kit−1+wteit kit0

Given initial distribution D0(e, k), path of aggregate consumption CtR ct(e, k)Dt(e, dk)only depends on {rs,ws}s=0.

[Farhi-Werning 2017, Kaplan-Moll-Violante 2018, Auclert-Rognlie-Straub 2018] (We’ll assume rs=r, ws=w for s ≥ T0.)

Example 2:representative firm block with L = 1 Example 3:goods market clearing block

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

6

(14)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

• Exogenous Markov chain for skills Π (e0|e)

• Households

max E0

X

t

βtu(cit)

cit+kit≤ (1 + rt)kit−1+wteit kit0

Given initial distribution D0(e, k), path of aggregate consumption CtR ct(e, k)Dt(e, dk)only depends on {rs,ws}s=0.

Example 2:representative firm block with L = 1 Example 3:goods market clearing block

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

(15)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

Example 2:representative firm block with L = 1 {Kt,Zt} → {Yt,It,rt,wt} Yt=ZtKαt−1

It=Kt− (1 − δ) Kt−1

rt= αZtKt−1α−1− δ wt= (1 − α) ZtKt−1α

Given initial capital K−1, path of {Yt,It,rt,wt}t=0only depends on {Ks,Zs}s=0.

Example 3:goods market clearing block

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

6

(16)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

Example 2:representative firm block with L = 1 {Kt,Zt} → {Yt,It,rt,wt} Example 3:goods market clearing block {Yt,Ct,It} → {HtCt+ItYt}

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

(17)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

Example 2:representative firm block with L = 1 {Kt,Zt} → {Yt,It,rt,wt} Example 3:goods market clearing block {Yt,Ct,It} → {HtCt+ItYt}

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

• Key restriction: agents interact via limited set of aggregate variables

6

(18)

Introducing models as collections of blocks

• Block: Mapping from sequence of inputs to sequence of outputs Example 1:heterogeneous household block {rt,wt} → {Ct}

Example 2:representative firm block with L = 1 {Kt,Zt} → {Yt,It,rt,wt} Example 3:goods market clearing block {Yt,Ct,It} → {HtCt+ItYt}

• Model: Set of blocks, arranged along a directed acyclic graph (DAG)

• some inputs are exogenousshocks, e.g. {Zt}

• some inputs are endogenousunknowns, e.g. {Kt}

• some outputs aretargetsequences that must equal zero in GE, e.g. {Ht} [must have as many targets as unknowns]

• Many models can be written in this way.

(19)

Krusell-Smith model DAG Capital market clearing

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• DAG can be collapsed into mapping

Ht({Ks}, {Zs}) =Ct+ItYt

• GE path of {Ks}achievesHt({Ks}, {Zs}) =0

7

(20)

Krusell-Smith model DAG Capital market clearing

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• DAG can be collapsed into mapping

Ht({Ks}, {Zs}) =Ct+ItYt

• GE path of {Ks}achievesHt({Ks}, {Zs}) =0

(21)

Krusell-Smith model DAG Capital market clearing

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• DAG can be collapsed into mapping

Ht({Ks}, {Zs}) =Ct+ItYt

• GE path of {Ks}achievesHt({Ks}, {Zs}) =0

7

(22)

Dealing with endogenous labor: add an unknown and a target

het.

agent

rep.

firm unknowns K, L

shock Z

goods mkt.

clearing H2=C + I − Y

labor market clearing H1=N −L

K, L,Z

C

Y, I w, r

N L

• DAG can be collapsed into mapping

Ht({Ks,Ls}, {Zs}) = {Ct+ItYt,NsLs}

• GE path of {Ks,Ls}achievesHt({Ks,Ls}, {Zs}) =0

(23)

Dealing with endogenous labor: add an unknown and a target

het.

agent

rep.

firm unknowns K, L

shock Z

goods mkt.

clearing H2=C + I − Y

labor market clearing H1=N −L

K, L,Z

C

Y, I w, r

N L

• DAG can be collapsed into mapping

Ht({Ks,Ls}, {Zs}) = {Ct+ItYt,NsLs}

• GE path of {Ks,Ls}achievesHt({Ks,Ls}, {Zs}) =0

8

(24)

Simple one-asset HANK model with sticky wages: another DAG with one unknown

unknown Y shock r

fiscal het.

agent

goods mkt.

clearing H=C −Y Y,r

Y Ypost

r C

• DAG can be collapsed into mapping

Ht({Ys}, {rs}) =CtYt

• GE path of {Ys}achievesHt({Ys}, {rs}) =0

(25)

Simple one-asset HANK model with sticky wages: another DAG with one unknown

unknown Y shock r

fiscal het.

agent

goods mkt.

clearing H=C −Y Y,r

Y Ypost

r C

• DAG can be collapsed into mapping

Ht({Ys}, {rs}) =CtYt

• GE path of {Ys}achievesHt({Ys}, {rs}) =0

9

(26)

Two-asset HANK model in paper: richer DAG with three unknowns

unknowns r, w, Y shocks Z, r,G

prod.

fiscal

NKPC-p

equity

finance

mon pol het.

agents

asset mkt.

clearing (H2)

NKPC-w (H3) Fisher eq.

(H1) r, w, Y, Z

w, r, G r N

mc

p, d, r π

π

π

ra,rb i, r, π

p A, B

U i

Y, r, w τ,w, N

r, Y

q, K

(27)

All you need are block Jacobians

(28)

Block Jacobians

• Suppose we have set the DAG and initial conditions [typically the steady state]

• Define a block Jacobian as the derivatives of its outputs wrt its inputs

• e.g. household block

het. agent

C w, r

two Jacobians: Jt,sC,w ∂w∂Ct

s [iMPCs, Auclert-Rognlie-Straub]and Jt,sC,r∂rCt

s

• Next: block Jacobians are sufficient to compute GE impulse responses

(29)

Block Jacobians

• Suppose we have set the DAG and initial conditions [typically the steady state]

• Define a block Jacobian as the derivatives of its outputs wrt its inputs

• e.g. household block

het.

agent

C w, r

two Jacobians: Jt,sC,w ∂w∂Ct

s [iMPCs, Auclert-Rognlie-Straub]and Jt,sC,r∂rCt

s

• Next: block Jacobians are sufficient to compute GE impulse responses

11

(30)

Block Jacobians

• Suppose we have set the DAG and initial conditions [typically the steady state]

• Define a block Jacobian as the derivatives of its outputs wrt its inputs

• e.g. household block

het.

agent

C w, r

two Jacobians: Jt,sC,w ∂w∂Ct

s [iMPCs, Auclert-Rognlie-Straub]and Jt,sC,r∂C∂rt

s

• Next: block Jacobians are sufficient to compute GE impulse responses

(31)

Block Jacobians

• Suppose we have set the DAG and initial conditions [typically the steady state]

• Define a block Jacobian as the derivatives of its outputs wrt its inputs

• e.g. household block

het.

agent

C w, r

two Jacobians: Jt,sC,w ∂w∂Ct

s [iMPCs, Auclert-Rognlie-Straub]and Jt,sC,r∂C∂rt

s

• Next: block Jacobians are sufficient to compute GE impulse responses

11

(32)

Krusell-Smith model Jacobians

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• Jacobians here:

• het. agent:n

∂Ct

∂ws

o ,n

∂Ct

∂rs

o

denote JC,w, JC,r

• rep. firm:n

∂wt

∂Ks

o,n

∂wt

∂Zs

o,n

∂rt

∂Ks

o,n

∂rt

∂Zs

o, . . . denote Jw,K, Jw,Z, Jr,K, Jr,Z, . . .

• We can then chain the Jacobians along the DAG to get the Jacobians ofH:

∂H

∂K = JC,rJr,K+JC,wJw,K+JI,K−JY,K ∂H

∂Z = JC,rJr,Z+JC,wJw,Z+JI,Z−JY,Z

(33)

Krusell-Smith model Jacobians

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• Jacobians here:

• het. agent:n

∂Ct

∂ws

o ,n

∂Ct

∂rs

o

denote JC,w, JC,r

• rep. firm:n

∂wt

∂Ks

o,n

∂wt

∂Zs

o,n

∂rt

∂Ks

o,n

∂rt

∂Zs

o, . . . denote Jw,K, Jw,Z, Jr,K, Jr,Z, . . .

• We can then chain the Jacobians along the DAG to get the Jacobians ofH:

∂H

∂K = JC,rJr,K+JC,wJw,K+JI,K−JY,K ∂H

∂Z = JC,rJr,Z+JC,wJw,Z+JI,Z−JY,Z

12

(34)

Krusell-Smith model Jacobians

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• Jacobians here:

• het. agent:n

∂Ct

∂ws

o ,n

∂Ct

∂rs

o

denote JC,w, JC,r

• rep. firm:n

∂wt

∂Ks

o ,n

∂wt

∂Zs

o ,n

∂rt

∂Ks

o ,n

∂rt

∂Zs

o

, . . . denote Jw,K, Jw,Z, Jr,K, Jr,Z, . . .

• We can then chain the Jacobians along the DAG to get the Jacobians ofH:

∂H

∂K = JC,rJr,K+JC,wJw,K+JI,K−JY,K ∂H

∂Z = JC,rJr,Z+JC,wJw,Z+JI,Z−JY,Z

(35)

Krusell-Smith model Jacobians

het.

agent

rep.

firm unknown K

shock Z

goods mkt.

clearing H=C + I − Y K,Z

C

Y, I w, r

• Jacobians here:

• het. agent:n

∂Ct

∂ws

o ,n

∂Ct

∂rs

o

denote JC,w, JC,r

• rep. firm:n

∂wt

∂Ks

o ,n

∂wt

∂Zs

o ,n

∂rt

∂Ks

o ,n

∂rt

∂Zs

o

, . . . denote Jw,K, Jw,Z, Jr,K, Jr,Z, . . .

• We can then chain the Jacobians along the DAG to get the Jacobians ofH:

∂H

∂K = JC,rJr,K+JC,wJw,K+JI,K−JY,K ∂H

∂Z = JC,rJr,Z+JC,wJw,Z+JI,Z−JY,Z

12

(36)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1.

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses Can also compute moments of the distribution Dt(e, k)this way [in paper: generalize usingautomatic differentiation along the DAG]

(37)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1. H(K,Z) =0 after the shock

∂H

∂KdK+∂H

∂ZdZ=0

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses Can also compute moments of the distribution Dt(e, k)this way [in paper: generalize usingautomatic differentiation along the DAG]

13

(38)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1. H(K,Z) =0 after the shock. Solve for unknown dKdK= − ∂H

∂K

−1∂H

∂ZdZ

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses Can also compute moments of the distribution Dt(e, k)this way [in paper: generalize usingautomatic differentiation along the DAG]

(39)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1. H(K,Z) =0 after the shock. Solve for unknown dKdK= − ∂H

∂K

−1∂H

∂ZdZ

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses Can also compute moments of the distribution Dt(e, k)this way [in paper: generalize usingautomatic differentiation along the DAG]

13

(40)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1. H(K,Z) =0 after the shock. Solve for unknown dKdK= − ∂H

∂K

−1∂H

∂ZdZ

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses

[in paper: generalize usingautomatic differentiation along the DAG]

(41)

From block Jacobians to impulse responses

Once Jacobians are chained to give ∂H∂K and ∂H∂Z, we are done:

Suppose shock is dZ= {dZt}[with dZt =0, t ≥ T0], what are the impulse responses?

1. H(K,Z) =0 after the shock. Solve for unknown dKdK= − ∂H

∂K

−1∂H

∂ZdZ

2. Use Jacobians to back out any IRF of interest, e.g. IRF of output dY = JY,KdK+ JY,ZdZ

Block Jacobians are sufficient to obtain all GE impulse responses Can also compute moments of the distribution Dt(e, k)this way

[in paper: generalize usingautomatic differentiation along the DAG] 13

(42)

Aggregate shocks and MA (∞) representation

• Certainty equivalence ⇒ dKis also the MA(∞) representation in model with aggregate shocks:

• Suppose {d˜Zt}is MA(∞) in iid structural innovation vectors {t}: d˜Zt =

X

s=0

dZst−s

then dK˜t =

X

s=0

dKst−s

→ Applications:

1. Simulation method (immediate)

2. Analytical second moments for any X, Y: Cov(d˜Xt,Yt0) = σ2PT−(t0−t)

s=0 dXsdYs+t0−t 3. Estimation (next)

(43)

Aggregate shocks and MA (∞) representation

• Certainty equivalence ⇒ dKis also the MA(∞) representation in model with aggregate shocks:

• Suppose {d˜Zt}is MA(∞) in iid structural innovation vectors {t}:

d˜Zt =

X

s=0

dZst−s

then dK˜t=

X

s=0

dKst−s

→ Applications:

1. Simulation method (immediate)

2. Analytical second moments for any X, Y: Cov(d˜Xt,Yt0) = σ2PT−(t0−t)

s=0 dXsdYs+t0−t 3. Estimation (next)

14

(44)

Aggregate shocks and MA (∞) representation

• Certainty equivalence ⇒ dKis also the MA(∞) representation in model with aggregate shocks:

• Suppose {d˜Zt}is MA(∞) in iid structural innovation vectors {t}:

d˜Zt =

X

s=0

dZst−s

then dK˜t=

X

s=0

dKst−s

→ Applications:

1. Simulation method (immediate)

2. Analytical second moments for any X, Y: Cov(d˜Xt,Yt0) = σ2PT−(t0−t)

dXsdYs+t0−t

(45)

Estimation

• Let V(θ) be the covariance matrix for a set of k outputs, where θ ≡ parameters

• Assuming Gaussian innovations, log-likelihood of observed data Y given θ:

L(Y; θ) = −1

2log detV(θ) − 1

2Y0V(θ)−1Y

• No need for Kalman filter! Old estimation strategy in time series.

• several recent revivals in DSGE[e.g. Mankiw and Reis 2007]

• [in practice: use Cholesky or Levinson on V, or Whittle approx when T is large]

• first application to het agents, perfectly suited for sequence-space methods

• Estimating shock processes dZalmost free: use same Jacobians for any dZ!

• Other estimation still very fast as long as we don’t need to recalculate HA s.s. [eg, cap. adjustment costs, degree of price stickiness, ...]

→can use the same HA Jacobians JC,w, JC,r, etc.

15

(46)

Estimation

• Let V(θ) be the covariance matrix for a set of k outputs, where θ ≡ parameters

• Assuming Gaussian innovations, log-likelihood of observed data Y given θ:

L(Y; θ) = −1

2log detV(θ) − 1

2Y0V(θ)−1Y

• No need for Kalman filter! Old estimation strategy in time series.

• several recent revivals in DSGE[e.g. Mankiw and Reis 2007]

• [in practice: use Cholesky or Levinson on V, or Whittle approx when T is large]

• first application to het agents, perfectly suited for sequence-space methods

• Estimating shock processes dZalmost free: use same Jacobians for any dZ!

• Other estimation still very fast as long as we don’t need to recalculate HA s.s. [eg, cap. adjustment costs, degree of price stickiness, ...]

→can use the same HA Jacobians JC,w, JC,r, etc.

(47)

Estimation

• Let V(θ) be the covariance matrix for a set of k outputs, where θ ≡ parameters

• Assuming Gaussian innovations, log-likelihood of observed data Y given θ:

L(Y; θ) = −1

2log detV(θ) − 1

2Y0V(θ)−1Y

• No need for Kalman filter! Old estimation strategy in time series.

• several recent revivals in DSGE[e.g. Mankiw and Reis 2007]

• [in practice: use Cholesky or Levinson on V, or Whittle approx when T is large]

• first application to het agents, perfectly suited for sequence-space methods

• Estimating shock processes dZalmost free: use same Jacobians for any dZ!

• Other estimation still very fast as long as we don’t need to recalculate HA s.s. [eg, cap. adjustment costs, degree of price stickiness, ...]

→can use the same HA Jacobians JC,w, JC,r, etc.

15

(48)

Estimation

• Let V(θ) be the covariance matrix for a set of k outputs, where θ ≡ parameters

• Assuming Gaussian innovations, log-likelihood of observed data Y given θ:

L(Y; θ) = −1

2log detV(θ) − 1

2Y0V(θ)−1Y

• No need for Kalman filter! Old estimation strategy in time series.

• several recent revivals in DSGE[e.g. Mankiw and Reis 2007]

• [in practice: use Cholesky or Levinson on V, or Whittle approx when T is large]

• first application to het agents, perfectly suited for sequence-space methods

• Estimating shock processes dZalmost free: use same Jacobians for any dZ!

• Other estimation still very fast as long as we don’t need to recalculate HA s.s.

(49)

Remarks Determinacy Nonlinear transitions

1. In practice, our method involves the inversion of nT × nT matrix ∂H∂K, where n = # unknowns and T = truncation horizon[typically T ' 300-500]

• very fast as long as DAG doesn’t have too many unknowns

• key benefit of DAGs: reduce n without any loss in accuracy[typically n ≤ 3]

• in practice, choice of T depends on persistence of exogenous variables

2. This matrix is invertible if the model is locallydeterminate

• simple test based on the winding number criterion of Onatski (2006)[see paper]

3. Jacobians are also useful to get thenonlinear perfect-foresight solution

• SolveH(K,Z) =0 using Newton’s method with s.s. Jacobian ∂H∂K [see paper]

Next: how to rapidly compute the Jacobians of heterogeneous-agent blocks

16

(50)

Remarks Determinacy Nonlinear transitions

1. In practice, our method involves the inversion of nT × nT matrix ∂H∂K, where n = # unknowns and T = truncation horizon[typically T ' 300-500]

• very fast as long as DAG doesn’t have too many unknowns

• key benefit of DAGs: reduce n without any loss in accuracy[typically n ≤ 3]

• in practice, choice of T depends on persistence of exogenous variables

2. This matrix is invertible if the model is locallydeterminate

• simple test based on the winding number criterion of Onatski (2006)[see paper]

3. Jacobians are also useful to get thenonlinear perfect-foresight solution

• SolveH(K,Z) =0 using Newton’s method with s.s. Jacobian ∂H [see paper]

(51)

Speeding up HA Jacobian

computation

(52)

Computing heterogeneous-agent Jacobians

So far: DAG + Jacobians ⇒ IRFs, determinacy, estimation, nonlinear transitions But how do we get the blockJacobians?

• simple blocks: (e.g. representative firms) simple, sparse matrix

• HA blocks? → next

(53)

Computing heterogeneous-agent Jacobians

So far: DAG + Jacobians ⇒ IRFs, determinacy, estimation, nonlinear transitions

But how do we get the blockJacobians?

• simple blocks: (e.g. representative firms) simple, sparse matrix

• HA blocks? → next

17

(54)

Computing heterogeneous-agent Jacobians

So far: DAG + Jacobians ⇒ IRFs, determinacy, estimation, nonlinear transitions

But how do we get the blockJacobians?

• simple blocks: (e.g. representative firms) simple, sparse matrix

• HA blocks? → next

(55)

Jacobian of consumption with respect to wage

• Want to know Jt,s∂w∂Ct

s for s, t ∈ {0, . . . , T − 1}[intertemporal MPCs]

• Assume initial condition is s.s., with rt=r, wt=w, D0(e, k) =D (e, k)

• Direct algorithm: perturb wsw + 

1. iterate backwards to get perturbed policies:cst(e, k),kst(e, k) 2. iterate forward to get perturbed distributions Dst(e, k)

3. put together to get perturbed aggregate consumption: Cst =R cst(e, k)Dst(e, dk) 4. compute J from Jt,s≡ (CtsC)/

• This is slow, since 1–4 needs to be done T times, once for each s

• Paper proposesfake news algorithmthat is T times faster:

• requires single backward iteration & single forward iteration

• key idea: exploit time symmetries around the steady-state

18

(56)

Jacobian of consumption with respect to wage

• Want to know Jt,s∂w∂Ct

s for s, t ∈ {0, . . . , T − 1}[intertemporal MPCs]

• Assume initial condition is s.s., with rt=r, wt=w, D0(e, k) =D (e, k)

• Direct algorithm: perturb wsw + 

1. iterate backwards to get perturbed policies:cst(e, k),kst(e, k) 2. iterate forward to get perturbed distributions Dst(e, k)

3. put together to get perturbed aggregate consumption: Cst =R cst(e, k)Dst(e, dk) 4. compute J from Jt,s≡ (CtsC)/

• This is slow, since 1–4 needs to be done T times, once for each s

• Paper proposesfake news algorithmthat is T times faster:

• requires single backward iteration & single forward iteration

• key idea: exploit time symmetries around the steady-state

(57)

Jacobian of consumption with respect to wage

• Want to know Jt,s∂w∂Ct

s for s, t ∈ {0, . . . , T − 1}[intertemporal MPCs]

• Assume initial condition is s.s., with rt=r, wt=w, D0(e, k) =D (e, k)

• Direct algorithm: perturb wsw + 

1. iterate backwards to get perturbed policies:cst(e, k),kst(e, k) 2. iterate forward to get perturbed distributions Dst(e, k)

3. put together to get perturbed aggregate consumption: Cts=R cst(e, k)Dst(e, dk) 4. compute J from Jt,s≡ (CtsC)/

• This is slow, since 1–4 needs to be done T times, once for each s

• Paper proposesfake news algorithmthat is T times faster:

• requires single backward iteration & single forward iteration

• key idea: exploit time symmetries around the steady-state

18

References

Related documents

In this section, the researcher would like to explain steps of the research. The researcher focuses on identifying the teaching writing practices based on 2013 curriculum. In

Implementation of the learning device with a scientific approach and 5E learning cy - cle model is said to be effective in this physics study if the implementation of lesson

Later siblings of infants who died of sudden infant death syndrome (SIDS), use of an apnea monitor is considered medically necessary until the later siblings are 1 month

In Section III, we test the performance of the AW-TVCC estimator using simulated signals and then apply it in visual task based fMRI dataset to analyze the transient changes

Notes: Interventions: ACEM = Meditation style taught at Academic Meditation School; MSPE = Mindfulness Sport Performance Enhancement; SC = Self Compassion: Measurements: STAI = State

The performance of Low Cost Housing (LCH) is caused by various factors or attributes. Whether a building is rated under good or poor performance, the rating is highly related to

The consumer insights presented in this paper provide evidence that desirable saving account products for lower-income consumers can be created and may even be a better

In Oruta, we utilize ring signatures [4], [5] to construct homomorphic authenticators [2], [6], so that the third party auditor is able to verify the integrity of shared data for