Solving Models with Heterogeneous Expectations

Similar documents
Learning in Macroeconomic Models

Solving Models with Heterogeneous Agents: Reiter Hybrid Method

Introduction to Numerical Methods

Solving Heterogeneous Agent Models with Dynare

Solution Methods. Jesús Fernández-Villaverde. University of Pennsylvania. March 16, 2016

Accuracy of models with heterogeneous agents

Solving Models with Heterogeneous Agents Xpa algorithm

Inflation Expectations and Monetary Policy Design: Evidence from the Laboratory

Solving models with (lots of) idiosyncratic risk

Projection. Wouter J. Den Haan London School of Economics. c by Wouter J. Den Haan

Learning to Optimize: Theory and Applications

Parameterized Expectations Algorithm

Solving Models with Heterogeneous Agents Macro-Finance Lecture

Endogenous Information Choice

Lecture 7. The Dynamics of Market Equilibrium. ECON 5118 Macroeconomic Theory Winter Kam Yu Department of Economics Lakehead University

Signaling Effects of Monetary Policy

Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework

Taylor Rules and Technology Shocks

The Dark Corners of the Labor Market

1 The Basic RBC Model

Extracting Rational Expectations Model Structural Matrices from Dynare

Foundation of (virtually) all DSGE models (e.g., RBC model) is Solow growth model

Monetary Economics: Problem Set #4 Solutions

Lecture XII. Solving for the Equilibrium in Models with Idiosyncratic and Aggregate Risk

Dynamic stochastic general equilibrium models. December 4, 2007

The Zero Lower Bound

Monetary Policy and Unemployment: A New Keynesian Perspective

Ambiguous Business Cycles: Online Appendix

1 Recursive Competitive Equilibrium

SMOOTHIES: A Toolbox for the Exact Nonlinear and Non-Gaussian Kalman Smoother *

The Analytics of New Keynesian Phillips Curves. Alfred Maußner

Bayesian Estimation of DSGE Models: Lessons from Second-order Approximations

Can News be a Major Source of Aggregate Fluctuations?

MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations

Lecture 4 The Centralized Economy: Extensions

MA Advanced Macroeconomics: Solving Models with Rational Expectations

Dynare. Wouter J. Den Haan London School of Economics. c by Wouter J. Den Haan

Lecture 15. Dynamic Stochastic General Equilibrium Model. Randall Romero Aguilar, PhD I Semestre 2017 Last updated: July 3, 2017

Modelling Czech and Slovak labour markets: A DSGE model with labour frictions

Mortenson Pissarides Model

Expectation Formation and Rationally Inattentive Forecasters

New Keynesian Macroeconomics

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING

Lecture 2: Firms, Jobs and Policy

New Keynesian Model Walsh Chapter 8

DSGE Model Forecasting

Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models

Real Business Cycle Model (RBC)

Topic 9. Monetary policy. Notes.

Government The government faces an exogenous sequence {g t } t=0

The New Keynesian Model: Introduction

Players as Serial or Parallel Random Access Machines. Timothy Van Zandt. INSEAD (France)

Dynare Summer School - Accuracy Tests

Chapter 1. Introduction. 1.1 Background

Dynamic stochastic game and macroeconomic equilibrium

Monetary Economics. Lecture 15: unemployment in the new Keynesian model, part one. Chris Edmond. 2nd Semester 2014

GCOE Discussion Paper Series

(a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming

Open Economy Macroeconomics: Theory, methods and applications

THE ZERO LOWER BOUND: FREQUENCY, DURATION,

Indeterminacy and Sunspots in Macroeconomics

Lecture XIV. Solving for the Equilibrium in Models with Idiosyncratic and Aggregate Risk

1 Bewley Economies with Aggregate Uncertainty

Y t = log (employment t )

Technical appendices: Business cycle accounting for the Japanese economy using the parameterized expectations algorithm

Adaptive Learning and Applications in Monetary Policy. Noah Williams

Getting to page 31 in Galí (2008)

The Ramsey Model. (Lecture Note, Advanced Macroeconomics, Thomas Steger, SS 2013)

Resolving the Missing Deflation Puzzle. June 7, 2018

1. Constant-elasticity-of-substitution (CES) or Dixit-Stiglitz aggregators. Consider the following function J: J(x) = a(j)x(j) ρ dj

DSGE-Models. Calibration and Introduction to Dynare. Institute of Econometrics and Economic Statistics

Discussion Global Dynamics at the Zero Lower Bound

Learning, Expectations, and Endogenous Business Cycles

Timevarying VARs. Wouter J. Den Haan London School of Economics. c Wouter J. Den Haan

Volume 30, Issue 3. A note on Kalman filter approach to solution of rational expectations models

The Basic New Keynesian Model, the Labor Market and Sticky Wages

Advanced Macroeconomics II The RBC model with Capital

POLICY GAMES. u t = θ 0 θ 1 π t + ε t. (1) β t (u 2 t + ωπ 2 t ). (3)

Sentiments and Aggregate Fluctuations

POLICY GAMES. u t = θ 0 θ 1 π t + ε t. (1) β t (u 2 t + ωπ 2 t ). (3) π t = g t 1 + ν t. (4) g t = θ 1θ 0 ω + θ 2 1. (5)

2. What is the fraction of aggregate savings due to the precautionary motive? (These two questions are analyzed in the paper by Ayiagari)

Monetary Policy and Unemployment: A New Keynesian Perspective

A Dynamic Model of Aggregate Demand and Aggregate Supply

A simple macro dynamic model with endogenous saving rate: the representative agent model

Culture Shocks and Consequences:

Learning and Monetary Policy

Equilibrium Conditions and Algorithm for Numerical Solution of Kaplan, Moll and Violante (2017) HANK Model.

Assessing others rationality in real time

Topic 3. RBCs

A framework for monetary-policy analysis Overview Basic concepts: Goals, targets, intermediate targets, indicators, operating targets, instruments

S TICKY I NFORMATION Fabio Verona Bank of Finland, Monetary Policy and Research Department, Research Unit

Title. Description. Remarks and examples. stata.com. stata.com. Introduction to DSGE models. intro 1 Introduction to DSGEs and dsge

Topic 2. Consumption/Saving and Productivity shocks

Eco504, Part II Spring 2008 C. Sims POLICY GAMES

Solving and Simulating Models with Heterogeneous Agents and Aggregate Uncertainty Yann ALGAN, Olivier ALLAIS, Wouter J. DEN HAAN, and Pontus RENDAHL

Monetary Policy and Heterogeneous Expectations

Simple New Keynesian Model without Capital

ADVANCED MACROECONOMICS I

HOMEWORK #3 This homework assignment is due at NOON on Friday, November 17 in Marnix Amand s mailbox.

Nonlinear and Stable Perturbation-Based Approximations

Transcription:

Solving Models with Heterogeneous Expectations Wouter J. Den Haan London School of Economics c Wouter J. Den Haan August 29, 2014

Overview 1 Current approaches to model heterogeneous expectations 2 Numerical algorithm to solve models with rational and irrational agents the right way

Modelling heterogeneous expectations Agent-based modelling: several papers have "fundamental" or "rational" agents but terminology is very misleading lack of forward looking agents makes numerical analysis very straightforward (just simulate the economy) Rule of thumb and rational agents popular in model with New Keynesian Phillips curve But NK Phillips curve has been derived under assumption of homogeneous expectations

Some papers do combine both elements Nice examples in the literature: Nunes (Macroeconomic Dynamics, 2009) rational agents and agents that learn Molnar (2010) rational agents and backward looking agents fractions of each endogenous

Nunes (2009) NK Phillips curve: π t = κz t + βẽ t π t+1 IS curve: z t = Ẽ t z t+1 σ 1 ( r t r n t Ẽ t π t+1 )

Nunes (2009) Natural rate: Policy: r n t = ρr n t 1 + ε t r t = π + φ π (π t π ) + φ z z t

Nunes (2009) Nice: Rational agents are truly rational Not nice: Nunes follows the standard approach: 1 use a representative agent model 2 simply replace the expectation by a weighted average of agents expectations But how do I know these are the right relationships if agents have heterogeneous expectations

Molnar (2010) Model: p t = λe t [p t+1 ] + m t m t = ρm t 1 + ε t, ρ [0, 1) Again, E t [p t+1 ] is a weighted average of the expectations of different types

New Keynesian model and aggregation NK Phillips curve: π t = βe t [π t+1 ] + λy t Question: Does this equation hold in models with heterogeneous agents with E t [π t+1 ] replaced by weighted average? Branch and McGough (2009): there is a set of assumptions for which the answer is yes assumptions are restrictive even necessary conditions are shown to be restrictive

Alternative setup Model behavior of individual agents from the ground up some rational some not rational Explicit aggregate their behavior to get aggregate behavior Can we solve these models? Yes using the tools learned in this course

Environment unit mass of firms half has rational expectations half has "type A" expectations for now fractions are fixed

Firm output All firms have the same production function ( y i = z i z1 n1, 1 α + z 2n2, 1 α ) two production processes n 1 and n 2 are chosen in previous period z i : idiosyncratic shock z 1 and z 2 : aggregate (common) shocks

Exogenous random processes z i = (1 ρ i ) + ρ i z i, 1 + e i, e i N(0, σ 2 i ) z 1 = (1 ρ) + ρz 1, 1 + e 1, e 1 N(0, σ 2 ) z 2 = (1 ρ) + ρz 2, 1 + e 2, e 2 N(0, σ 2 )

Problem rational agent max n 1,n 2 v(n 1, 1, n 2, 1, z) = ) z i (z 1 n1, 1 α + z 2n2, 1 α w(n 1 ) 0.5η(n n 1 ) 2 +βe t [v(n 1, n 2, z +1 )] where n = n 1 + n 2, N : aggregate employment

FOCs rational firm αβe [z i,+1 ] E [z 1,+1 ] n α 1 1 βe [w +1 ] η (n n 1 ) + ηβe [n +1 n] = 0 αβe [z i,+1 ] E [z 2,+1 ] n α 1 2 βe [w +1 ] η (n n 1 ) + ηβe [n +1 n] = 0

FOCs type A firm αβê [ẑ i,+1 ] Ê [z 1,+1 ] ˆn α 1 1 βê [w +1 ] η (ˆn ˆn 1 ) + ηβê [ˆn +1 ˆn] = 0 αβê [ẑ i,+1 ] Ê [z 2,+1 ] ˆn α 1 2 βê [w +1 ] η (ˆn ˆn 1 ) + ηβê [ˆn +1 ˆn] = 0

Labor supply w = ω 0 + ω 1 (N 1 1) N = ni di + ˆn i di 2

Normalization Steady state values: ω 0 = α0.5 α 1 n 1 = n 2 = ˆn 1 = ˆn 2 = 0.5 w = ω 0 N = 1

Solving the rational firm problem Rational firm s problem easy if I know...

Solving the rational firm problem Rational firm s problem easy if I know... dgp for wages (or N)

Problem for type A Just as easy or easier

Solving the complete problem Use KS iteration scheme

Solving the complete problem Use KS iteration scheme PEA

Varying fractions of types state-dependent switching probability of switching depends on profitability E.g. P AR = 1 ρ p 2 P RA = 1 ρ p 2 + ρ p P AR, 1 + η (F R F A ) + ρ p P RA, 1 η (F R F A ) where F R : average profits made by rational firms F A : average profits made by type A firms

Implications for algorithms? What are the implications for deriving ALM? What are the implications for individual firm problem?

What is wrong? alpha*n_1_r^(alpha-1)*z_i(+1)*z_1(+1) = wage_exp_r +eta*(n_r-n_r(-1) (1 prob) eta (n_r(+1) n_r) prob eta (n_a(+1) n_r)

How to do it correctly with Dynare? alpha*n_1_r^(alpha-1)*z_i(+1)*z_1(+1) = wage_exp_r +eta*(n_r-n_r(-1) (1 prob) eta (n_r(+1) n_r) prob eta (??? n_r)

How to do it correctly with Dynare? Suppose??? in the previous slide is an endogenous rule that I have to solve for. Can I solve for the policy rule of??? and n_r with Dynare?

How to do it correctly with Dynare? Suppose??? in the previous slide is an endogenous rule that I have to solve for. Can I solve for the policy rule of??? and n_r with Dynare? Yes, but you need two programs and iterate back and forth

How to do it correctly with Dynare? Can I do this with first-order perturbation?

How to do it correctly with Dynare? Can I do this with first-order perturbation? No, because of quadratic cost

Switching types and valuation problems example above: rational firm does think through implications of choices for his irrational self But there is no "valuation" problem to assess value of irrational self Is that problematic here? No, a rational firm just needs to know how an irrational firm chooses employment

Switching types and valuation problems new example simpler environment no idiosyncratic shocks different question, namely: calculate firm value, while rationally taking into account that you could become irrational fixed probability of switching

Firm problem v(n 1, z) = max n zn α 1 wn 1 + 0.5η(n n 1 ) 2 +βe t [ (1 ρ) v(n, z+1 ) ρw(n, z +1 ) ] = zn α 1 wn 1 + 0.5η(n n 1 ) 2 +βe t [ (1 ρ) v(n, z +1 ) ρw(n, z +1 ) ]

Switching types and valuation problems v(n 1, z) : value of a rational firm according to rational agent w(n 1, z) : value of an irrational firm according to a rational agent, i.e. using rational expectations

Rational value of irrational firm w(n 1, z) = So again a standard problem zn α 1 wn 1 + 0.5η(ˆn n 1 ) 2 +βe t [ (1 ρ) v(ˆn, z+1 ) ρw(ˆn, z +1 ) ]

Learning problem Go back to original problem but no idiosyncratic shocks Type A firms forecast using "least-squares" learning They use past observations to fit forecasting rule for Ê [z 1 ], Ê [z 2 ], Ê [w +1 ], Ê [ˆn +1 ]

Forecasting rules Example of forecasting rules Ê [y] = ˆω 0 + ˆω 1 y 1 and ˆω 0 and ˆω 1 estimated using past observations

Weighted least-squares y t = bx t + u t ˆb T = T t=1 βt t x t y t T t=1 βt t x 2 t = T t=1 βt t x t y t K T

Recursive weighted least-squares For the problem to be tractable we need recursive formulation for the forecasts made by type A firms like in the Kalman filter

Recursive weighted least-squares ˆb T+1 = T+1 t=1 βt+1 t x t y t K T+1 = β T t=1 βt t x t y t + x T+1 y T+1 K T+1 = βk T K T+1 ˆbT + x T+1y T+1 K T+1 K T+1 = βk T + x 2 T+1

FOCs rational firm αβe [z 1,+1 ] n α 1 1 βe [w +1 ] η (n n 1 ) + ηβe [n +1 n] = 0 αβe [z 2,+1 ] n α 1 2 βe [w +1 ] η (n n 1 ) + ηβe [n +1 n] = 0

Algorithm Parameterize expectations which one(s)? Simulate economy Update expectation

State variables for rational agent???

Tough problem? This is a standard problem Many state variables? possibly if type A agents forecast a lot of variables but maybe you don t need all as state variables to get an accurate solution

References Branch, W.A., and B.McGough, 2009, A New Keynesian Model with Heterogeneous Expectations, Journal of Economic Dynamics and Control. Molnar, K., 2010, Learning with Expert Advice, Journal of the European Economic Association. Nunes, R., 2009, Learning the inflation target, Macroeconomic Dynamics.