Solving LQ-Gaussian Robustness Problems in Dynare

Size: px
Start display at page:

Download "Solving LQ-Gaussian Robustness Problems in Dynare"

Transcription

1 Solving LQ-Gaussian Robustness Problems in Dynare July / 20

2 Overview Why Robustness? Ellsberg s Paradox. Gambling Example. Knightian Uncertainty: there is a difference between Risk and Uncertainty. Robustness is a method that Rationalizes concerns about Knightian Uncertainty into certain preferences. What are these preferences? The General Case deals with entropy...i will show something simpler here. 2 / 20

3 Overview Why Robustness? We attempt to show that Robustness Problems in LQ-Gaussian setups are easy to solve using Dynare. Linear Quadratic Gaussian Models are very general, they can approximate dynamic preferences, habit persistence, adjustment costs, durable goods, etc. We present a matlab subroutine that does the job of writing a mod file for you once you specify the LQ-setup. The following presentation reviews the LQ setup of Hansen and Sargent, the Robustness problem, shows how the code works and uses an example. 3 / 20

4 HS-LQ Setup A first glance at LQ-Problem: Problem (LQ-Regulator) max (1/2) β t [(s t b t ) (s t b t ) + (g t ) (g t )] {c t,k t} t=0 subject to the following set of restrictions: Φ c c t + Φ g g t + Φ i i t = Γk t 1 + d t k t = k k t 1 + Θ k i t h t = h h t 1 + Θ h c t s t = Λh t 1 + Πc t and exogenous variables evolve according to a VAR structure: z t+1 = A 22 z t + C 2 w t+1, b t = U b z t and d t = U d z t w t+1 is i.i.d Standard-Normal vector. 4 / 20

5 HS-LQ Setup So we can write up a Lagrangian: To solve this program we use a Lagrangian method: (1/2) E{ β t [(s t b t ) (s t b t ) + (g t ) (g t )] +... t=0 +M d t [Φ c c t + Φ g g t + Φ i i t Γk t 1 d t ]... +M k t [k t k k t 1 Θ k i t ]... +M h t [h t h h t 1 Θ h c t ]... +M s t [s t Λh t 1 Πc t ]} 5 / 20

6 HS-LQ Setup NFOC s yield the following system The FONC for the problem, found in system of HS-LQ book are: and the restrictions: (1/2) E{ β t [(s t b t) (s t b t) + (g t) (g t)] +... t=0 +Mt d [Φ cc t + Φ g g t + Φ i i t Γk t 1 d t]... +Mt k [k t k k t 1 Θ k i t]... +Mt h [h t h h t 1 Θ h c t]... +Mt s [s t Λh t 1 Πc t]} Φ cc t + Φ g g t + Φ i i t = Γk t 1 + d t k t = k k t 1 + Θ k i t h t = h h t 1 + Θ h c t s t = Λh t 1 + Πc t b t = U b z t d t = U d z t We have a system of stochastic difference equations. Dynare is the perfect environment for solving for the optimal feedback policies. 6 / 20

7 Robustness Problem The Robustness problem is the artificial simultaneous game: min max E{ {w t+1 } {c t,k t } t=0 subject to: β t ( 1 2 ) [(s t b t) (s t b t) + (g t) (g t)] βθw t+1 w t+1 } Φ cc t + Φ g g t + Φ i i t = Γk t 1 + d t k t = k k t 1 + Θ k i t h t = h h t 1 + Θ h c t s t = Λh t 1 + Πc t b t = U b z t d t = U d z t and the exogenous process: b t = U b z t, d t = U d z t. The difference here is that minimizer chooses w t+1 : z t+1 = A 22 z t + C 2 w t+1 so w t+1 is not a Guassian vector any more. 7 / 20

8 Robustness Problem Lagrangian The LQ-Robustness problem may also be written as a Lagrangian: min max {w t+1 } {c t,k t } { t=0 (1/2) β t [(s t b t) (s t b t) + (g t) (g t)] βθ w t+1 w t+1 } 2 +M d t [Φ cc t + Φ g g t + Φ i i t Γk t 1 d t] +M k t [k t k k t 1 Θ k i t] +M h t [h t h h t 1 Θ h c t] +M s t [s t Λh t 1 Πc t] +M z t [ z t+1 + A 22 z t + C 2 w t+1 ]} 8 / 20

9 Robustness Problem Linear Equation version of the system The NFOC s are: (c t) : M d t Φ c + M h t Θ h + M s t Π = 0 (1) (g t) : g t Φ g M d t = 0 (h t) : M h t + βe (i t) : M d t Φ i + M k t Θ i = 0 (k t) : M k t k + βe (s t) : (s t b t) + M s t = 0 [ M h t+1 h + M s t+1 Λ ] = 0 [ M d t+1 Γ + Mk t+1 k ] = 0 (w t+1) : βθw t+1 + C 2 Mz t = 0 [ ] (z t+1) : βe U d Md t+1 + βe [ A [ 22 t+1] Mz βe (st+1 b t+1) U ] b Mz z t+1 M t = 0 This set of equations is then complemented by: Φ c c t + Φ g g t + Φ i i t = Γk t 1 + d t k t = k k t 1 + Θ k i t h t = h h t 1 + Θ h c t s t = Λh t 1 + Πc t and the minimizer or evil agent chooses w t+1, that will affect: where ɛ t N (0, I ). z t+1 = A 22z t + C 2 (w t+1 + ɛ t) 9 / 20

10 Robustness Problem Why is this working? The reason is that the solution to the minimizing problem is a choice of a mean + noise. This is a property of LQ-Gaussian Robust Problems. For these reasons, the solution is again a set of stochastic linear difference equations. Again, Dynare is the perfect environment for solving for the optimal feedback robust policies! 10 / 20

11 How to Run this in Dynare? How to run this? 1. Declaration of matrixes: The first thing the user has to do is declare ALL of these matrixes: Phi c, Phi g, Phi i, Gamma, Delta k, Theta k, Delta h,.theta h, Lambda, Pi, A22,C2, U b, U d; 2. Declaration of options for Dynare: Variables that go in the standard set of options for dynare should be included. For example one can include statments like: periods=5000; (for number of simulations in Dynare) irfperiods=15; (for number of periods in irf s in Dynare) 3. File Name: A statemant assigning the variable filename a script should be included:(e.g. filename = Hall Test.mod ;) 4. Optional: Assign a value for the optional dummy variable run if you decide whether or not you want to directly execute the generated dynare. Assign run=1; 5. Calling the file: Call the Hansen Sargent converter by simply writing the following statement HS Robust dyn; 11 / 20

12 How to Run this in Dynare? What does the code do? How does it does the code do it? The code does something simple. It reads the matrixes from HS-LQ setup and declares variables and equations in a mod.file using dynare syntax. The steps followed are: 1. Reading Dimensions of Matrixes For example, for the matrix Phi c, it uses the following statement to set in memory the number of rows and columns: [rr Phi c cc Phi c] =size(phi c) ; 2. Checking Consistency: The matrixes must be conformable in HS-LQ setup. The code checks for consistency along columns and rows: 3. Creating an m-file: This statement generates an object in memory that is used to record what we are writing: fid = fopen(filename, wt ); 12 / 20

13 How to Run this in Dynare? What does the code do? 1. Declaring Variables: Reads dimensions and declares a variable. 2. Declaring Parameters is done in a similar way: fprintf(fid, parameters ); fprintf(fid, beta ) ; fprintf(fid, theta ) ; for j=1:rr Phi c for i=1:cc Phi c fprintf(fid, Phi c %g%g,j,i); 13 / 20

14 How to Run this in Dynare? What does the code do? 1. Setting Parameter Values: Using a similar statement we declare parameters. The variable %g in the statement is assign the value of the variable after the second comma. n means that the lines s there: fprintf(fid, beta=%g ; n,beta) ; fprintf(fid, theta=%g ;n,theta) ; for j=1:rr Phi c for i=1:cc Phi c fprintf(fid, Phi c %g%g =%g ; n,j,i,phi c(j,i)); 14 / 20

15 How to Run this in Dynare? What does the code do? 1. Declaring Equations: Let s use an example: For the first block of equations in the system, Mt d Φ c + Mt h Θ h = 0, we use the following commands: for i=1:(rr Phi c) for j=1:(cc Phi c) fprintf(fid, Phi c %g%g*c%g +,i,j,j); for j=1:(cc Phi g) fprintf(fid, Phi g %g%g*g%g +,i,j,j); for j=1:(cc Phi i) fprintf(fid, Phi i %g%g*i%g =,i,j,j); for j=1:(cc Gamma) fprintf(fid, Gamma %g%g*k%g +,i,j,j); fprintf(fid, d%g,i); fprintf(fid, ; n ); 15 / 20

16 How to Run this in Dynare? What does the code do? 1. Running Dynare: This step simply follows the dynare syntax to call dynare according to the previously defined preferences: fprintf(fid, shocks; n ); for i=1:cc C2 fprintf(fid, var e%g; n,i); fprintf(fid, stderr 1; n ); fprintf(fid, ; n n ); fprintf(fid, n ); fprintf(fid, steady; n ); fprintf(fid, stoch simul(solve algo=3, periods=%g); n,irfperiods,periods); fclose(fid); if (run) dynare(filename) 16 / 20

17 Some Examples Hansen, Sargent and Tallarini - Review of Economic Studies 1999 The planner solves the following problem: min {w t+1 } max E{ [ ] β t (1/2) (s t b t) 2 wt+1 wt+1 βθ {ct,kt } 2 t=0 The input of the utility function are an indirect service for the household, s t, and a preference shock b t that satisfy the following: Resource constraints: s t = Λh t 1 + Πc t Productivity Shifts: c t + i t = (1 + r) k t 1 + y t y t = U y z t 17 / 20

18 Some Examples Hansen, Sargent and Tallarini - Review of Economic Studies 1999 Again, the Robust planner problem is different from the standard model in that: a minimizer or evil agent chooses w t+1, that will affect: z t+1 = A z z t + C Z w t+1 and we parameterize this to have a stable solution: γ := (1 + r) = 1 β For a pair of AR(2) process, we have the following values of A z and C Z are: ρ 22 ρ A z = and Cz = 0 0 and Uy = [5 1 1] ρ 44 ρ / 20

19 Some Examples Hansen, Sargent and Tallarini - Review of Economic Studies 1999 The following code is declares the variables and runs dynare: % Declaration of Paramteters delta=0.05; beta=1/1.05; theta=10; % Matrix Form Phi c=1 ; Phi g=0 ; Phi i=1 ; Gamma=0.1 ; Delta k=1-delta ; Theta k=1 ; Delta h=0 ; Theta h=1 ; Lambda=0 ; Pi=1 ; A22=[1 0 0; ; ] ; C2=[0 0; 1 0; 0 1] ; U b=[30 0 1] ; U d=[5 1 0] ; %% User Preferences for Dynare periods=5000; %parameters for simulation irfperiods=15; %parameters for irf s filename= Hall Test.mod ; %pick filename for mod file %Optional: decide whether or not you want to directly execute the generated dynare %code (set run=1 to execute) run=1; %% Call the Hansen Sargent converter: HS Robust dyn; 19 / 20

20 Things worth mentioning LQ is a general setup. :) My guess is that we can ext this to Robust Filtering. : ) We cannot deal yet with Optimal Robust problems with expectations. :( The code may still present some errors. :( 20 / 20

Stochastic simulations with DYNARE. A practical guide.

Stochastic simulations with DYNARE. A practical guide. Stochastic simulations with DYNARE. A practical guide. Fabrice Collard (GREMAQ, University of Toulouse) Adapted for Dynare 4.1 by Michel Juillard and Sébastien Villemot (CEPREMAP) First draft: February

More information

Session 2 Working with Dynare

Session 2 Working with Dynare Session 2 Working with Dynare Seminar: Macroeconomics and International Economics Philipp Wegmüller UniBern Spring 2015 Philipp Wegmüller (UniBern) Session 2 Working with Dynare Spring 2015 1 / 20 Dynare

More information

First order approximation of stochastic models

First order approximation of stochastic models First order approximation of stochastic models Shanghai Dynare Workshop Sébastien Villemot CEPREMAP October 27, 2013 Sébastien Villemot (CEPREMAP) First order approximation of stochastic models October

More information

Extracting Rational Expectations Model Structural Matrices from Dynare

Extracting Rational Expectations Model Structural Matrices from Dynare Extracting Rational Expectations Model Structural Matrices from Dynare Callum Jones New York University In these notes I discuss how to extract the structural matrices of a model from its Dynare implementation.

More information

Dynare Class on Heathcote-Perri JME 2002

Dynare Class on Heathcote-Perri JME 2002 Dynare Class on Heathcote-Perri JME 2002 Tim Uy University of Cambridge March 10, 2015 Introduction Solving DSGE models used to be very time consuming due to log-linearization required Dynare is a collection

More information

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

DSGE-Models. Calibration and Introduction to Dynare. Institute of Econometrics and Economic Statistics DSGE-Models Calibration and Introduction to Dynare Dr. Andrea Beccarini Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics willi.mutschler@uni-muenster.de Summer 2012 Willi Mutschler

More information

Real Business Cycle Model (RBC)

Real Business Cycle Model (RBC) Real Business Cycle Model (RBC) Seyed Ali Madanizadeh November 2013 RBC Model Lucas 1980: One of the functions of theoretical economics is to provide fully articulated, artificial economic systems that

More information

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

Lecture 15. Dynamic Stochastic General Equilibrium Model. Randall Romero Aguilar, PhD I Semestre 2017 Last updated: July 3, 2017 Lecture 15 Dynamic Stochastic General Equilibrium Model Randall Romero Aguilar, PhD I Semestre 2017 Last updated: July 3, 2017 Universidad de Costa Rica EC3201 - Teoría Macroeconómica 2 Table of contents

More information

Introduction to Coding DSGE Models with Dynare

Introduction to Coding DSGE Models with Dynare Introduction to Coding DSGE Models with Macroeconomic Theory (MA1213) Juha Kilponen Bank of Finland Additional Material for Lecture 3, January 23, 2013 is preprocessor and a collection of Matlab (and GNU

More information

DYNARE SUMMER SCHOOL

DYNARE SUMMER SCHOOL DYNARE SUMMER SCHOOL Introduction to Dynare and local approximation. Michel Juillard June 12, 2017 Summer School website http://www.dynare.org/summerschool/2017 DYNARE 1. computes the solution of deterministic

More information

MA Advanced Macroeconomics: 7. The Real Business Cycle Model

MA Advanced Macroeconomics: 7. The Real Business Cycle Model MA Advanced Macroeconomics: 7. The Real Business Cycle Model Karl Whelan School of Economics, UCD Spring 2016 Karl Whelan (UCD) Real Business Cycles Spring 2016 1 / 38 Working Through A DSGE Model We have

More information

Problem Set 4. Graduate Macro II, Spring 2011 The University of Notre Dame Professor Sims

Problem Set 4. Graduate Macro II, Spring 2011 The University of Notre Dame Professor Sims Problem Set 4 Graduate Macro II, Spring 2011 The University of Notre Dame Professor Sims Instructions: You may consult with other members of the class, but please make sure to turn in your own work. Where

More information

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

SMOOTHIES: A Toolbox for the Exact Nonlinear and Non-Gaussian Kalman Smoother * SMOOTHIES: A Toolbox for the Exact Nonlinear and Non-Gaussian Kalman Smoother * Joris de Wind September 2017 Abstract In this paper, I present a new toolbox that implements the exact nonlinear and non-

More information

UNIVERSITY OF WISCONSIN DEPARTMENT OF ECONOMICS MACROECONOMICS THEORY Preliminary Exam August 1, :00 am - 2:00 pm

UNIVERSITY OF WISCONSIN DEPARTMENT OF ECONOMICS MACROECONOMICS THEORY Preliminary Exam August 1, :00 am - 2:00 pm UNIVERSITY OF WISCONSIN DEPARTMENT OF ECONOMICS MACROECONOMICS THEORY Preliminary Exam August 1, 2017 9:00 am - 2:00 pm INSTRUCTIONS Please place a completed label (from the label sheet provided) on the

More information

MONFISPOL FP7 project SSH Report on computing optimal policy

MONFISPOL FP7 project SSH Report on computing optimal policy MONFISPOL FP7 project SSH-225149 Deliverable 1.1.1 Report on computing optimal policy November 2010 Michel Juillard 1 1 CEPREMAP Introduction This report describes the algorithm used by Dynare to compute

More information

MA Advanced Macroeconomics: Solving Models with Rational Expectations

MA Advanced Macroeconomics: Solving Models with Rational Expectations MA Advanced Macroeconomics: Solving Models with Rational Expectations Karl Whelan School of Economics, UCD February 6, 2009 Karl Whelan (UCD) Models with Rational Expectations February 6, 2009 1 / 32 Moving

More information

Computing first and second order approximations of DSGE models with DYNARE

Computing first and second order approximations of DSGE models with DYNARE Computing first and second order approximations of DSGE models with DYNARE Michel Juillard CEPREMAP Computing first and second order approximations of DSGE models with DYNARE p. 1/33 DSGE models E t {f(y

More information

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

Dynare. Wouter J. Den Haan London School of Economics. c by Wouter J. Den Haan Dynare Wouter J. Den Haan London School of Economics c by Wouter J. Den Haan Introduction What is the objective of perturbation? Peculiarities of Dynare & some examples Incorporating Dynare in other Matlab

More information

Solving Models with Heterogeneous Expectations

Solving Models with Heterogeneous Expectations 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

More information

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

Title. Description. Remarks and examples. stata.com. stata.com. Introduction to DSGE models. intro 1 Introduction to DSGEs and dsge Title stata.com intro 1 Introduction to DSGEs and dsge Description Remarks and examples References Also see Description In this entry, we introduce DSGE models and the dsge command. We begin with an overview

More information

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

Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models Eric Sims University of Notre Dame Spring 2011 This note describes very briefly how to conduct quantitative analysis on a linearized

More information

Solving Deterministic Models

Solving Deterministic Models Solving Deterministic Models Shanghai Dynare Workshop Sébastien Villemot CEPREMAP October 27, 2013 Sébastien Villemot (CEPREMAP) Solving Deterministic Models October 27, 2013 1 / 42 Introduction Deterministic

More information

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

Bayesian Estimation of DSGE Models: Lessons from Second-order Approximations Bayesian Estimation of DSGE Models: Lessons from Second-order Approximations Sungbae An Singapore Management University Bank Indonesia/BIS Workshop: STRUCTURAL DYNAMIC MACROECONOMIC MODELS IN ASIA-PACIFIC

More information

Deterministic Models

Deterministic Models Deterministic Models Perfect foreight, nonlinearities and occasionally binding constraints Sébastien Villemot CEPREMAP June 10, 2014 Sébastien Villemot (CEPREMAP) Deterministic Models June 10, 2014 1 /

More information

Lecture 7: Stochastic Dynamic Programing and Markov Processes

Lecture 7: Stochastic Dynamic Programing and Markov Processes Lecture 7: Stochastic Dynamic Programing and Markov Processes Florian Scheuer References: SLP chapters 9, 10, 11; LS chapters 2 and 6 1 Examples 1.1 Neoclassical Growth Model with Stochastic Technology

More information

The Basic RBC model with Dynare

The Basic RBC model with Dynare The Basic RBC model with Dynare Petros Varthalitis December 200 Abstract This paper brie y describes the basic RBC model without steady-state growth.it uses dynare software to simulate the model under

More information

ECOM 009 Macroeconomics B. Lecture 2

ECOM 009 Macroeconomics B. Lecture 2 ECOM 009 Macroeconomics B Lecture 2 Giulio Fella c Giulio Fella, 2014 ECOM 009 Macroeconomics B - Lecture 2 40/197 Aim of consumption theory Consumption theory aims at explaining consumption/saving decisions

More information

Signaling Effects of Monetary Policy

Signaling Effects of Monetary Policy Signaling Effects of Monetary Policy Leonardo Melosi London Business School 24 May 2012 Motivation Disperse information about aggregate fundamentals Morris and Shin (2003), Sims (2003), and Woodford (2002)

More information

Robust Optimal Taxation and Environmental Externalities

Robust Optimal Taxation and Environmental Externalities Robust Optimal Taxation and Environmental Externalities Xin Li Borghan Narajabad Ted Loch-Temzelides Department of Economics Rice University Outline Outline 1 Introduction 2 One-Energy-Sector Model 3 Complete

More information

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING James Bullard* Federal Reserve Bank of St. Louis 33rd Annual Economic Policy Conference St. Louis, MO October 17, 2008 Views expressed are

More information

Macroeconomics Theory II

Macroeconomics Theory II Macroeconomics Theory II Francesco Franco FEUNL February 2016 Francesco Franco (FEUNL) Macroeconomics Theory II February 2016 1 / 18 Road Map Research question: we want to understand businesses cycles.

More information

0 β t u(c t ), 0 <β<1,

0 β t u(c t ), 0 <β<1, Part 2 1. Certainty-Equivalence Solution Methods Consider the model we dealt with previously, but now the production function is y t = f(k t,z t ), where z t is a stochastic exogenous variable. For example,

More information

ESTIMATION of a DSGE MODEL

ESTIMATION of a DSGE MODEL ESTIMATION of a DSGE MODEL Paris, October 17 2005 STÉPHANE ADJEMIAN stephane.adjemian@ens.fr UNIVERSITÉ DU MAINE & CEPREMAP Slides.tex ESTIMATION of a DSGE MODEL STÉPHANE ADJEMIAN 16/10/2005 21:37 p. 1/3

More information

The full RBC model. Empirical evaluation

The full RBC model. Empirical evaluation The full RBC model. Empirical evaluation Lecture 13 (updated version), ECON 4310 Tord Krogh October 24, 2012 Tord Krogh () ECON 4310 October 24, 2012 1 / 49 Today s lecture Add labor to the stochastic

More information

The Zero Lower Bound

The Zero Lower Bound The Zero Lower Bound Eric Sims University of Notre Dame Spring 7 Introduction In the standard New Keynesian model, monetary policy is often described by an interest rate rule (e.g. a Taylor rule) that

More information

High-dimensional Problems in Finance and Economics. Thomas M. Mertens

High-dimensional Problems in Finance and Economics. Thomas M. Mertens High-dimensional Problems in Finance and Economics Thomas M. Mertens NYU Stern Risk Economics Lab April 17, 2012 1 / 78 Motivation Many problems in finance and economics are high dimensional. Dynamic Optimization:

More information

A First Course on Kinetics and Reaction Engineering Example S3.1

A First Course on Kinetics and Reaction Engineering Example S3.1 Example S3.1 Problem Purpose This example shows how to use the MATLAB script file, FitLinSR.m, to fit a linear model to experimental data. Problem Statement Assume that in the course of solving a kinetics

More information

Economics 701 Advanced Macroeconomics I Project 1 Professor Sanjay Chugh Fall 2011

Economics 701 Advanced Macroeconomics I Project 1 Professor Sanjay Chugh Fall 2011 Department of Economics University of Maryland Economics 701 Advanced Macroeconomics I Project 1 Professor Sanjay Chugh Fall 2011 Objective As a stepping stone to learning how to work with and computationally

More information

The Dark Corners of the Labor Market

The Dark Corners of the Labor Market The Dark Corners of the Labor Market Vincent Sterk Conference on Persistent Output Gaps: Causes and Policy Remedies EABCN / University of Cambridge / INET University College London September 2015 Sterk

More information

DSGE Methods. Estimation of DSGE models: GMM and Indirect Inference. Willi Mutschler, M.Sc.

DSGE Methods. Estimation of DSGE models: GMM and Indirect Inference. Willi Mutschler, M.Sc. DSGE Methods Estimation of DSGE models: GMM and Indirect Inference Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics University of Münster willi.mutschler@wiwi.uni-muenster.de Summer

More information

News-Shock Subroutine for Prof. Uhlig s Toolkit

News-Shock Subroutine for Prof. Uhlig s Toolkit News-Shock Subroutine for Prof. Uhlig s Toolkit KENGO NUTAHARA Graduate School of Economics, University of Tokyo, and the JSPS Research Fellow ee67003@mail.ecc.u-tokyo.ac.jp Revised: October 23, 2007 (Fisrt

More information

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

1. Constant-elasticity-of-substitution (CES) or Dixit-Stiglitz aggregators. Consider the following function J: J(x) = a(j)x(j) ρ dj Macro II (UC3M, MA/PhD Econ) Professor: Matthias Kredler Problem Set 1 Due: 29 April 216 You are encouraged to work in groups; however, every student has to hand in his/her own version of the solution.

More information

DSGE-Models. Limited Information Estimation General Method of Moments and Indirect Inference

DSGE-Models. Limited Information Estimation General Method of Moments and Indirect Inference DSGE-Models General Method of Moments and Indirect Inference Dr. Andrea Beccarini Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics University of Münster willi.mutschler@uni-muenster.de

More information

Online Appendix for Slow Information Diffusion and the Inertial Behavior of Durable Consumption

Online Appendix for Slow Information Diffusion and the Inertial Behavior of Durable Consumption Online Appendix for Slow Information Diffusion and the Inertial Behavior of Durable Consumption Yulei Luo The University of Hong Kong Jun Nie Federal Reserve Bank of Kansas City Eric R. Young University

More information

Stochastic Problems. 1 Examples. 1.1 Neoclassical Growth Model with Stochastic Technology. 1.2 A Model of Job Search

Stochastic Problems. 1 Examples. 1.1 Neoclassical Growth Model with Stochastic Technology. 1.2 A Model of Job Search Stochastic Problems References: SLP chapters 9, 10, 11; L&S chapters 2 and 6 1 Examples 1.1 Neoclassical Growth Model with Stochastic Technology Production function y = Af k where A is random Let A s t

More information

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

Modelling Czech and Slovak labour markets: A DSGE model with labour frictions Modelling Czech and Slovak labour markets: A DSGE model with labour frictions Daniel Němec Faculty of Economics and Administrations Masaryk University Brno, Czech Republic nemecd@econ.muni.cz ESF MU (Brno)

More information

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

Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework Dongpeng Liu Nanjing University Sept 2016 D. Liu (NJU) Solving D(S)GE 09/16 1 / 63 Introduction Targets of the

More information

Y t = log (employment t )

Y t = log (employment t ) Advanced Macroeconomics, Christiano Econ 416 Homework #7 Due: November 21 1. Consider the linearized equilibrium conditions of the New Keynesian model, on the slide, The Equilibrium Conditions in the handout,

More information

MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations

MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations Karl Whelan School of Economics, UCD Spring 2016 Karl Whelan (UCD) Models with Rational Expectations Spring 2016 1 / 36 Moving Beyond

More information

Lecture VI. Linearization Methods

Lecture VI. Linearization Methods Lecture VI Linearization Methods Gianluca Violante New York University Quantitative Macroeconomics G. Violante, Perturbation Methods p. 1 /40 Local Approximations DSGE models are characterized by a set

More information

Robustifying the Permanent Income Model with Rational. Inattention

Robustifying the Permanent Income Model with Rational. Inattention Robustifying the Permanent Income Model with Rational Inattention Yulei Luo University of Hong Kong Eric R. Young University of Virginia February 13, 01 Abstract In this paper we examine implications of

More information

SOLVING LINEAR RATIONAL EXPECTATIONS MODELS. Three ways to solve a linear model

SOLVING LINEAR RATIONAL EXPECTATIONS MODELS. Three ways to solve a linear model SOLVING LINEAR RATIONAL EXPECTATIONS MODELS KRISTOFFER P. NIMARK Three ways to solve a linear model Solving a model using full information rational expectations as the equilibrium concept involves integrating

More information

Assessing Structural VAR s

Assessing Structural VAR s ... Assessing Structural VAR s by Lawrence J. Christiano, Martin Eichenbaum and Robert Vigfusson Zurich, September 2005 1 Background Structural Vector Autoregressions Address the Following Type of Question:

More information

DYNARE COURSE Amsterdam University. Motivation. Design of the macro-language. Dynare macro language and dynare++ k-order approximation

DYNARE COURSE Amsterdam University. Motivation. Design of the macro-language. Dynare macro language and dynare++ k-order approximation DYNARE COURSE Amsterdam University Dynare macro language and dynare++ k-order approximation Dynare macro language Michel Juillard October 23, 2008 Motivation Design of the macro-language The Dynare language

More information

Financial Factors in Economic Fluctuations. Lawrence Christiano Roberto Motto Massimo Rostagno

Financial Factors in Economic Fluctuations. Lawrence Christiano Roberto Motto Massimo Rostagno Financial Factors in Economic Fluctuations Lawrence Christiano Roberto Motto Massimo Rostagno Background Much progress made on constructing and estimating models that fit quarterly data well (Smets-Wouters,

More information

1.1 The Language of Mathematics Expressions versus Sentences

1.1 The Language of Mathematics Expressions versus Sentences The Language of Mathematics Expressions versus Sentences a hypothetical situation the importance of language Study Strategies for Students of Mathematics characteristics of the language of mathematics

More information

Monetary Policy and Unemployment: A New Keynesian Perspective

Monetary Policy and Unemployment: A New Keynesian Perspective Monetary Policy and Unemployment: A New Keynesian Perspective Jordi Galí CREI, UPF and Barcelona GSE April 215 Jordi Galí (CREI, UPF and Barcelona GSE) Monetary Policy and Unemployment April 215 1 / 16

More information

1 Integration of Rational Functions Using Partial Fractions

1 Integration of Rational Functions Using Partial Fractions MTH Fall 008 Essex County College Division of Mathematics Handout Version 4 September 8, 008 Integration of Rational Functions Using Partial Fractions In the past it was far more usual to simplify or combine

More information

Estimating Deep Parameters: GMM and SMM

Estimating Deep Parameters: GMM and SMM Estimating Deep Parameters: GMM and SMM 1 Parameterizing a Model Calibration Choose parameters from micro or other related macro studies (e.g. coeffi cient of relative risk aversion is 2). SMM with weighting

More information

Lecture 7: Linear-Quadratic Dynamic Programming Real Business Cycle Models

Lecture 7: Linear-Quadratic Dynamic Programming Real Business Cycle Models Lecture 7: Linear-Quadratic Dynamic Programming Real Business Cycle Models Shinichi Nishiyama Graduate School of Economics Kyoto University January 10, 2019 Abstract In this lecture, we solve and simulate

More information

BEAR 4.2. Introducing Stochastic Volatility, Time Varying Parameters and Time Varying Trends. A. Dieppe R. Legrand B. van Roye ECB.

BEAR 4.2. Introducing Stochastic Volatility, Time Varying Parameters and Time Varying Trends. A. Dieppe R. Legrand B. van Roye ECB. BEAR 4.2 Introducing Stochastic Volatility, Time Varying Parameters and Time Varying Trends A. Dieppe R. Legrand B. van Roye ECB 25 June 2018 The views expressed in this presentation are the authors and

More information

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

Solution Methods. Jesús Fernández-Villaverde. University of Pennsylvania. March 16, 2016 Solution Methods Jesús Fernández-Villaverde University of Pennsylvania March 16, 2016 Jesús Fernández-Villaverde (PENN) Solution Methods March 16, 2016 1 / 36 Functional equations A large class of problems

More information

DSGE (3): BASIC NEOCLASSICAL MODELS (2): APPROACHES OF SOLUTIONS

DSGE (3): BASIC NEOCLASSICAL MODELS (2): APPROACHES OF SOLUTIONS DSGE (3): Stochastic neoclassical growth models (2): how to solve? 27 DSGE (3): BASIC NEOCLASSICAL MODELS (2): APPROACHES OF SOLUTIONS. Recap of basic neoclassical growth models and log-linearisation 2.

More information

Stochastic process for macro

Stochastic process for macro Stochastic process for macro Tianxiao Zheng SAIF 1. Stochastic process The state of a system {X t } evolves probabilistically in time. The joint probability distribution is given by Pr(X t1, t 1 ; X t2,

More information

Higher-Order Dynamics in Asset-Pricing Models with Recursive Preferences

Higher-Order Dynamics in Asset-Pricing Models with Recursive Preferences Higher-Order Dynamics in Asset-Pricing Models with Recursive Preferences Walt Pohl Karl Schmedders Ole Wilms Dept. of Business Administration, University of Zurich Becker Friedman Institute Computational

More information

Learning and Global Dynamics

Learning and Global Dynamics Learning and Global Dynamics James Bullard 10 February 2007 Learning and global dynamics The paper for this lecture is Liquidity Traps, Learning and Stagnation, by George Evans, Eran Guse, and Seppo Honkapohja.

More information

Package AMA. October 27, 2010

Package AMA. October 27, 2010 Package AMA October 27, 2010 Type Package Title Anderson-Moore Algorithm Version 1.0.8 Depends rjava Date 2010-10-13 Author Gary Anderson, Aneesh Raghunandan Maintainer Gary Anderson

More information

Comprehensive Exam. Macro Spring 2014 Retake. August 22, 2014

Comprehensive Exam. Macro Spring 2014 Retake. August 22, 2014 Comprehensive Exam Macro Spring 2014 Retake August 22, 2014 You have a total of 180 minutes to complete the exam. If a question seems ambiguous, state why, sharpen it up and answer the sharpened-up question.

More information

A Modern Equilibrium Model. Jesús Fernández-Villaverde University of Pennsylvania

A Modern Equilibrium Model. Jesús Fernández-Villaverde University of Pennsylvania A Modern Equilibrium Model Jesús Fernández-Villaverde University of Pennsylvania 1 Household Problem Preferences: max E X β t t=0 c 1 σ t 1 σ ψ l1+γ t 1+γ Budget constraint: c t + k t+1 = w t l t + r t

More information

A robust Hansen Sargent prediction formula

A robust Hansen Sargent prediction formula Economics Letters 71 (001) 43 48 www.elsevier.com/ locate/ econbase A robust Hansen Sargent prediction formula Kenneth Kasa* Research Department, Federal Reserve Bank of San Francisco, P.O. Box 770, San

More information

TAKEHOME FINAL EXAM e iω e 2iω e iω e 2iω

TAKEHOME FINAL EXAM e iω e 2iω e iω e 2iω ECO 513 Spring 2015 TAKEHOME FINAL EXAM (1) Suppose the univariate stochastic process y is ARMA(2,2) of the following form: y t = 1.6974y t 1.9604y t 2 + ε t 1.6628ε t 1 +.9216ε t 2, (1) where ε is i.i.d.

More information

An Introduction to Perturbation Methods in Macroeconomics. Jesús Fernández-Villaverde University of Pennsylvania

An Introduction to Perturbation Methods in Macroeconomics. Jesús Fernández-Villaverde University of Pennsylvania An Introduction to Perturbation Methods in Macroeconomics Jesús Fernández-Villaverde University of Pennsylvania 1 Introduction Numerous problems in macroeconomics involve functional equations of the form:

More information

How to Create Matlab Script and Simulink Model for Designing a Pole Placement Controller

How to Create Matlab Script and Simulink Model for Designing a Pole Placement Controller How to Create Matlab Script and Simulink Model for Designing a Pole Placement Controller 1(37) Pole Placement Controller Design H tot Y ( z) Kr B ( z) R( z) A( z) C( z) B( z) D( z) P( z) A( z) C( z) B(

More information

Chapter 1. Introduction. 1.1 Background

Chapter 1. Introduction. 1.1 Background Chapter 1 Introduction Science is facts; just as houses are made of stones, so is science made of facts; but a pile of stones is not a house and a collection of facts is not necessarily science. Henri

More information

Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents

Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents Navtech Part #s Volume 1 #1277 Volume 2 #1278 Volume 3 #1279 3 Volume Set #1280 Stochastic Models, Estimation and Control Peter S. Maybeck Volumes 1, 2 & 3 Tables of Contents Volume 1 Preface Contents

More information

Uncertainty and Disagreement in Equilibrium Models

Uncertainty and Disagreement in Equilibrium Models Uncertainty and Disagreement in Equilibrium Models Nabil I. Al-Najjar & Northwestern University Eran Shmaya Tel Aviv University RUD, Warwick, June 2014 Forthcoming: Journal of Political Economy Motivation

More information

Linearization. (Lectures on Solution Methods for Economists V: Appendix) Jesús Fernández-Villaverde 1 and Pablo Guerrón 2 February 21, 2018

Linearization. (Lectures on Solution Methods for Economists V: Appendix) Jesús Fernández-Villaverde 1 and Pablo Guerrón 2 February 21, 2018 Linearization (Lectures on Solution Methods for Economists V: Appendix) Jesús Fernández-Villaverde 1 and Pablo Guerrón 2 February 21, 2018 1 University of Pennsylvania 2 Boston College Basic RBC Benchmark

More information

MATH 333: Partial Differential Equations

MATH 333: Partial Differential Equations MATH 333: Partial Differential Equations Problem Set 9, Final version Due Date: Tues., Nov. 29, 2011 Relevant sources: Farlow s book: Lessons 9, 37 39 MacCluer s book: Chapter 3 44 Show that the Poisson

More information

Assessing Structural VAR s

Assessing Structural VAR s ... Assessing Structural VAR s by Lawrence J. Christiano, Martin Eichenbaum and Robert Vigfusson Yale, October 2005 1 Background Structural Vector Autoregressions Can be Used to Address the Following Type

More information

Linear-Quadratic Optimal Control: Full-State Feedback

Linear-Quadratic Optimal Control: Full-State Feedback Chapter 4 Linear-Quadratic Optimal Control: Full-State Feedback 1 Linear quadratic optimization is a basic method for designing controllers for linear (and often nonlinear) dynamical systems and is actually

More information

Asset Pricing under Asymmetric Information Strategic Market Order Models

Asset Pricing under Asymmetric Information Strategic Market Order Models Kyle Asset Pricing under Asymmetric Strategic Market Order Models Markus K. Brunnermeier Princeton University August 17, 2007 Kyle A of Market Microstructure Models simultaneous submission of demand schedules

More information

ECO 513 Fall 2009 C. Sims HIDDEN MARKOV CHAIN MODELS

ECO 513 Fall 2009 C. Sims HIDDEN MARKOV CHAIN MODELS ECO 513 Fall 2009 C. Sims HIDDEN MARKOV CHAIN MODELS 1. THE CLASS OF MODELS y t {y s, s < t} p(y t θ t, {y s, s < t}) θ t = θ(s t ) P[S t = i S t 1 = j] = h ij. 2. WHAT S HANDY ABOUT IT Evaluating the

More information

The welfare cost of energy insecurity

The welfare cost of energy insecurity The welfare cost of energy insecurity Baltasar Manzano (Universidade de Vigo) Luis Rey (bc3) IEW 2013 1 INTRODUCTION The 1973-1974 oil crisis revealed the vulnerability of developed economies to oil price

More information

Perturbation Methods I: Basic Results

Perturbation Methods I: Basic Results Perturbation Methods I: Basic Results (Lectures on Solution Methods for Economists V) Jesús Fernández-Villaverde 1 and Pablo Guerrón 2 March 19, 2018 1 University of Pennsylvania 2 Boston College Introduction

More information

Graduate Macro Theory II: Business Cycle Accounting and Wedges

Graduate Macro Theory II: Business Cycle Accounting and Wedges Graduate Macro Theory II: Business Cycle Accounting and Wedges Eric Sims University of Notre Dame Spring 2017 1 Introduction Most modern dynamic macro models have at their core a prototypical real business

More information

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

A simple macro dynamic model with endogenous saving rate: the representative agent model A simple macro dynamic model with endogenous saving rate: the representative agent model Virginia Sánchez-Marcos Macroeconomics, MIE-UNICAN Macroeconomics (MIE-UNICAN) A simple macro dynamic model with

More information

A User Guide for Matlab Code for an RBC Model Solution and Simulation

A User Guide for Matlab Code for an RBC Model Solution and Simulation A User Guide for Matlab Code for an RBC Model Solution and Simulation Ryo Kato Department of Economics, The Ohio State University and Bank of Japan Decemnber 10, 2002 Abstract This note provides an easy

More information

Assessing others rationality in real time

Assessing others rationality in real time Assessing others rationality in real time Gaetano GABALLO Ph.D.candidate University of Siena, Italy June 4, 2009 Gaetano GABALLO Ph.D.candidate University of Siena, Italy Assessing () others rationality

More information

Matthew Zyskowski 1 Quanyan Zhu 2

Matthew Zyskowski 1 Quanyan Zhu 2 Matthew Zyskowski 1 Quanyan Zhu 2 1 Decision Science, Credit Risk Office Barclaycard US 2 Department of Electrical Engineering Princeton University Outline Outline I Modern control theory with game-theoretic

More information

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

Monetary Economics. Lecture 15: unemployment in the new Keynesian model, part one. Chris Edmond. 2nd Semester 2014 Monetary Economics Lecture 15: unemployment in the new Keynesian model, part one Chris Edmond 2nd Semester 214 1 This class Unemployment fluctuations in the new Keynesian model, part one Main reading:

More information

Expectations, Learning and Macroeconomic Policy

Expectations, Learning and Macroeconomic Policy Expectations, Learning and Macroeconomic Policy George W. Evans (Univ. of Oregon and Univ. of St. Andrews) Lecture 4 Liquidity traps, learning and stagnation Evans, Guse & Honkapohja (EER, 2008), Evans

More information

A comparison of numerical methods for the. Solution of continuous-time DSGE models. Juan Carlos Parra Alvarez

A comparison of numerical methods for the. Solution of continuous-time DSGE models. Juan Carlos Parra Alvarez A comparison of numerical methods for the solution of continuous-time DSGE models Juan Carlos Parra Alvarez Department of Economics and Business, and CREATES Aarhus University, Denmark November 14, 2012

More information

Inference. Jesús Fernández-Villaverde University of Pennsylvania

Inference. Jesús Fernández-Villaverde University of Pennsylvania Inference Jesús Fernández-Villaverde University of Pennsylvania 1 A Model with Sticky Price and Sticky Wage Household j [0, 1] maximizes utility function: X E 0 β t t=0 G t ³ C j t 1 1 σ 1 1 σ ³ N j t

More information

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

Volume 30, Issue 3. A note on Kalman filter approach to solution of rational expectations models Volume 30, Issue 3 A note on Kalman filter approach to solution of rational expectations models Marco Maria Sorge BGSE, University of Bonn Abstract In this note, a class of nonlinear dynamic models under

More information

DSGE Methods. Estimation of DSGE models: Maximum Likelihood & Bayesian. Willi Mutschler, M.Sc.

DSGE Methods. Estimation of DSGE models: Maximum Likelihood & Bayesian. Willi Mutschler, M.Sc. DSGE Methods Estimation of DSGE models: Maximum Likelihood & Bayesian Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics University of Münster willi.mutschler@uni-muenster.de Summer

More information

Discrete State Space Methods for Dynamic Economies

Discrete State Space Methods for Dynamic Economies Discrete State Space Methods for Dynamic Economies A Brief Introduction Craig Burnside Duke University September 2006 Craig Burnside (Duke University) Discrete State Space Methods September 2006 1 / 42

More information

ECON607 Fall 2010 University of Hawaii Professor Hui He TA: Xiaodong Sun Assignment 2

ECON607 Fall 2010 University of Hawaii Professor Hui He TA: Xiaodong Sun Assignment 2 ECON607 Fall 200 University of Hawaii Professor Hui He TA: Xiaodong Sun Assignment 2 The due date for this assignment is Tuesday, October 2. ( Total points = 50). (Two-sector growth model) Consider the

More information

Dynamic stochastic game and macroeconomic equilibrium

Dynamic stochastic game and macroeconomic equilibrium Dynamic stochastic game and macroeconomic equilibrium Tianxiao Zheng SAIF 1. Introduction We have studied single agent problems. However, macro-economy consists of a large number of agents including individuals/households,

More information

Money in the utility model

Money in the utility model Money in the utility model Monetary Economics Michaª Brzoza-Brzezina Warsaw School of Economics 1 / 59 Plan of the Presentation 1 Motivation 2 Model 3 Steady state 4 Short run dynamics 5 Simulations 6

More information

Certainty Equivalence and Model Uncertainty

Certainty Equivalence and Model Uncertainty Certainty Equivalence and Model Uncertainty Lars Peter Hansen University of Chicago and Thomas J. Sargent New York University and Hoover Institution Stanford University ABSTRACT Simon s and Theil s certainty

More information