Dynare Class on Heathcote-Perri JME 2002

Size: px
Start display at page:

Download "Dynare Class on Heathcote-Perri JME 2002"

Transcription

1 Dynare Class on Heathcote-Perri JME 2002 Tim Uy University of Cambridge March 10, 2015

2 Introduction Solving DSGE models used to be very time consuming due to log-linearization required Dynare is a collection of Matlab codes that essentially allows you to solve models without having to do log-linearization It is also useful for estimating and simulating a wide variety of models and hence is becoming increasingly more popular It is limited by its inability to handle models that require global solution methods (e.g. discrete choice, etc)

3 Introduction To set up Dynare, simply download it from the Dynare website Choose a destination folder for storing the files, and set the Matlab path to include this folder To solve your model, create a filename.mod file that contains the model equations and parameterization Then simply type dynare filename and off you go!

4 This Class In this class, we will focus on the models in Heathcote Perri JME (2002) There are essentially three models discussed in that paper: a model with complete markets (CM), a bond economy (BE), and an environment with financial autarky (FA) I will go over the models and then talk about how I implement them in Dynare I will share my code with you but it is only meant to be for students in this class- please ask for my permission before sharing them with anyone else

5 Heathcote and Perri JME 2002 Two-country, two-good IRBC model with production There are two shocks in the economy: productivity shocks that are highly persistent and correlated across countries Capital and labor are not mobile across countries, and preferences are non-separable in consumption and leisure The three model setups only differ in asset trade that shows up in the budget constraint faced by households With CM, households have access to a full set of Arrow securities (state-contingent claims on output); With BE, households only have access to a non-contingent bond; under FA, households do not trade assets, only goods FA comes closest to matching data on RER volatility and cross-country correlations (positive for investment, labor, etc)

6 Intuition Three shortcomings of the standard IRBC model: cross-country consumption levels more correlated than output, negative cross-country correlation in investment and labor, and relatively non-volatile RER This is best understood from a CM perspective: CM provides insurance against output shocks so that consumption becomes strongly positively correlated across countries (risk sharing) With a positive shock in country A, CM implies moving resources from B to A to increase investment and labor in A, hence the negative cross-country correlation RER need not be volatile as adjustment in quantities mitigates adjustment to prices induced by productivity shock BE is close to CM because it still allows agents to borrow abroad, so shock need not imply big TOT adjustment and shocks are small (so gains from pooling risks are small)

7 Model Period utility Production function U(c i, 1 n i ) = 1 γ [cµ i (1 n i ) 1 µ ] γ F (z, k i, n i ) = exp(z i )k θ i n 1 θ i Law of motion for vector of shocks z = [z 1, z 2 ] z t = Az t 1 + ɛ t where A is a 2x2 matrix and ɛ is a 2x1 vector of iid random variables with covariance matrix Σ. History dependence is suppressed when possible to simplify notation.

8 Model Capital accumulation k it+1 = (1 δ)k it + x it Goods production Home: G 1 (a 1, b 1 ) = [ωa σ 1 σ 1 + (1 ω)b σ 1 σ Foreign: 1 ] G 2 (a 2, b 2 ) = [(1 ω)a σ 1 σ 2 + ωb σ 1 σ 2 ] Two key parameters: ω > 0.5 home bias, σ elasticity of substitution Firm problem max a i,b i G i (a i, b i ) q a i a i q b i b i

9 Budget constraints Complete markets c 1 (s t ) + x 1 (s t ) + q1(s a t ) Q(s t, s t+1 )B 1 (s t, s t+1 ) = s t+1 q1(s a t )[r 1 (s t )k 1 (s t ) + w 1 (s t )n 1 (s t )] + q1(s a t )B 1 (s t ) Bond economy c 1 (s t ) + x 1 (s t ) + q1(s a t )Q(s t )B 1 (s t ) = q1(s a t )[r 1 (s t )k 1 (s t ) + w 1 (s t )n 1 (s t )] + q1(s a t )B 1 (s t 1 ) Financial autarky c 1 (s t ) + x 1 (s t ) = q1(s a t )[r 1 (s t )k 1 (s t ) + w 1 (s t )n 1 (s t )]

10 Market Clearing Intermediate goods a and b a 1 + a 2 = F (z 1, k 1, n 1 ) b 1 + b 2 = F (z 2, k 2, n 2 ) Final goods c i + x i = G i (a i, b i ), i = 1, 2 Bond markets B 1 (s t, s t+1 ) + B 2 (s t, s t+1 ) = 0, [CM] B 1 (s t ) + B 2 (s t ) = 0, [BE]

11 Additional Variables of Interest GDP Net exports (for country 1) y i = q a 1F (z 1, k 1, n 1 ) nx = qa 1 a 2 q b 1 b 1 y 1 Import ratio: ratio of imports to non-traded domestic intermediate good production ir = qb 1 qa 1 Terms of trade: price of imports to exports p = qb 1 q a 1 = 1 ω ω 1 ir σ Real Exchange Rate: price of consumption in 2 relative to 1 rx = qa 1 q a 2 = qb 1 q b 2

12 Implementation in Dynare: CM Endogenous variables v a r G1, G2, F1, F2, y1, y2, c1, c2, n1, n2, k1, k2, x1, x2, a1, a2, b1, b2, z1, z2, qa1, qb1, qa2, qb2, nx, xp, im, p, rx, i r 1, i r 2 ; Exogenous variables v a r e x o e1, e2 ; Parameters p a r a m e t e r s omega, theta, p1, p2, p3, p4, sigma, gamma, beta, mu, d e l t a ;

13 Implementation in Dynare: CM Parameters values omega = ; t h e t a = ; p1 = ; p2 = ; p3 = ; p4 = ; sigma = ; gamma = 1; beta = ; mu = ; d e l t a = ;

14 Implementation in Dynare: CM Model: market clearing conditions model ; a1 + a2 = F1 ; b1 + b2 = F2 ; c1 + k1 (1 d e l t a ) k1 ( 1) = G1 ; c2 + k2 (1 d e l t a ) k2 ( 1) = G2 ; Production functions G1 = ( omega a1 ˆ ( ( sigma 1)/ sigma )+(1 omega ) b1 ˆ ( ( sigma 1)/ sigma ) ) ˆ ( sigma /( sigma 1)); G2 = ( omega b2 ˆ ( ( sigma 1)/ sigma )+(1 omega ) a2 ˆ ( ( sigma 1)/ sigma ) ) ˆ ( sigma /( sigma 1)); F1 = exp ( z1 ) k1 ( 1)ˆ t h e t a n1ˆ(1 t h e t a ) ; F2 = exp ( z2 ) k2 ( 1)ˆ t h e t a n2ˆ(1 t h e t a ) ;

15 Implementation in Dynare: CM Shock processes z1 = p1 z1 ( 1) + p2 z2 ( 1) + e1 ; z2 = p3 z1 ( 1) + p4 z2 ( 1) + e2 ; Intertemporal Euler equations for capital (2) Intratemporal Euler equations for consumption and leisure (2) International risk sharing conditions for a and b These 16 equations determine a1, a2, b1, b2, G1, G2, F 1, F 2, z1, z2, c1, c2, k1, k2, n1, n2

16 Implementation in Dynare: CM Equations to determines other endogenous variables: prices qa1 = G1ˆ(1/ sigma ) omega a1ˆ( 1/ sigma ) ; qb1 = G1ˆ(1/ sigma ) (1 omega ) b1ˆ( 1/ sigma ) ; qa2 = G2ˆ(1/ sigma ) (1 omega ) a2ˆ( 1/ sigma ) ; qb2 = G2ˆ(1/ sigma ) omega b2ˆ( 1/ sigma ) ; Relative prices p = qb1/qa1 ; r x = qa1 /qa2 ; GDP y1 = qa1 F1 ; y2 = qb2 F2 ;

17 Implementation in Dynare: CM Additional equations for other interesting variables xp = a2 ; im = b1 ; x1 = k1 (1 d e l t a ) k1 ( 1); x2 = k2 (1 d e l t a ) k2 ( 1); nx = ( a2 p b1 )/ y1 ; i r 1 = b1/a1 ; i r 2 = b2/a2 ; end ; We started out by declaring 31 endogenous variables; combining these 15 equations to the 16 mentioned earlier yields the system of 31 equations needed to solve the model

18 Implementation in Dynare: CM Provide initial values for endogenous variables i n i t v a l ; G1 = ; G2 = ; F1 = ; F2 = ; c1 = ; c2 = ; n1 = ; n2 = ;... end ;

19 Implementation in Dynare: CM Specify shock process s h o c k s ; v a r e1 ; s t d e r r ; v a r e2 ; s t d e r r ; v a r e1, e2 = ; end ; Ask Dynare to check to make sure the model can be solved s t e a d y ; check ; Specify what to do with the model s t o c h s i m u l ( o r d e r = 1, h p f i l t e r = 1600, i r f =0);

20 CM vs BE and FA Notice that in solving the CM economy we did not solve for the decentralized equilibrium The welfare theorems and functional forms assumed allow us to solve the planning problem instead This will no longer be the case in BE and FA When markets are not complete, we will have to solve for the decentralized equilibrium directly The main difference is that now we have to solve for prices explicitly as part of equilibrium

21 Implementation in Dynare: FA What are the differences relative to CM? The main difference is in the budget constraint, which we now specify explicitly c1 + x1 = qa1 ( r1 k1( 1)+w1 n1 ) ; c2 + x2 = qb2 ( r2 k2( 1)+w2 n2 ) ; What conditions did these equations replace? We still have the same number of endogenous variables p = qb1/qa1 ; r x = qa1 /qa2 ; The international risk sharing conditions! Why? (Hint: Walras Law.)

22 Implementation in Dynare: FA Are there other differences? For completeness, we also specify the prices, which are technically required to complete equilibrium r1 = t h e t a F1 /( k1 ( 1)); r2 = t h e t a F2 /( k2 ( 1)); w1 = (1 t h e t a ) F1/n1 ; w2 = (1 t h e t a ) F2/n2 ; Given that we ve added these conditions, what other parts of the code have to be modified? Hint: number of equations = number of? What else is required to solve the model?

23 Implementation in Dynare: FA The two places that have to be updated are: (1) the var list, and the (2) initval conditions We have introduced four new variables v a r G1, G2, F1, F2, y1, y2, c1, c2, n1, n2, k1, k2, x1, x2, a1, a2, b1, b2, z1, z2, qa1, qa2, qb1, qb2, i r 1, i r 2, p, rx, xp, im, nx, r1, r2, w1, w2 ; Four initial values to help Dynare find steady state r1 = ; r2 = ; w1 = ; w2 = ;

24 Implementation in Dynare: FA and BE Do we expect something similar for BE? No. Why not? Which conditions change? Hint 1: think about the conditions that are affected by the budget constraint Hint 2: a more subtle point - is FA really that different from CM (when you think from a planner s perspective)

25 Implementation in Dynare: BE Relative to FA, these conditions are different: B1 + B2 = 0 ; c1 + x1 + qa1 Q B1 + qa1 p h i B1ˆ2 = qa1 ( r1 k1( 1)+w1 n1 ) + qa1 B1( 1); c2 + x2 + qa1 Q B2 + qa1 p h i B2ˆ2 = qb2 ( r2 k2( 1)+w2 n2 ) + qa1 B2( 1); ( c1 ˆmu (1 n1 )ˆ(1 mu) ) ˆgamma/ c1 (Q qa1+2 qa1 p h i B1) = beta ( ( c1 (+1))ˆmu (1 n1 (+1))ˆ(1 mu) ) ˆgamma/ c1 (+1) qa1 (+1); ( c2 ˆmu (1 n2 )ˆ(1 mu) ) ˆgamma/ c2 (Q qa1+2 qa1 p h i B2) = beta ( ( c2 (+1))ˆmu (1 n2 (+1))ˆ(1 mu) ) ˆgamma/ c2 (+1) qa1 (+1); What are these conditions, and why are they different?

26 Implementation in Dynare: BE First, ask the following question: do we need to introduce new variables relative to FA? Yes. We need to have bonds in each country. Anything else? Yes. The bond needs to have a price in equilibrium. What does this mean? If we have three new variables, we only need three new equations. Why do we have five? (Hint: remember what changed in FA relative to CM)

27 Implementation in Dynare: BE The budget constraints also change, hence five equations between the two setups: three new equations and two modified budget constraints Where are the three new equations coming from? One is obvious: bond market clearing. What about the other two? What are ( c1 ˆmu (1 n1 )ˆ(1 mu) ) ˆgamma/ c1 (Q qa1+2 qa1 p h i B1) = beta ( ( c1 (+1))ˆmu (1 n1 (+1))ˆ(1 mu) ) ˆgamma/ c1 (+1) qa1 (+1); ( c2 ˆmu (1 n2 )ˆ(1 mu) ) ˆgamma/ c2 (Q qa1+2 qa1 p h i B2) = beta ( ( c2 (+1))ˆmu (1 n2 (+1))ˆ(1 mu) ) ˆgamma/ c2 (+1) qa1 (+1);

28 Implementation in Dynare: BE They are intertemporal Euler equations for bonds; hence we have EEs for bonds and capital Are we done? No. Why not? Remember what we had to do in switching from CM to FA. We also have to declare the new variables and assign initial values to them.

29 Implementation in Dynare: FA The command declaring variables now becomes v a r G1, G2, F1, F2, y1, y2, c1, c2, n1, n2, k1, k2, x1, x2, a1, a2, b1, b2, z1, z2, qa1, qa2, qb1, qb2, i r 1, i r 2, p, rx, xp, im, nx, r1, r2, w1, w2, B1, B2, Q; Initial values to help Dynare find steady state B1 = 0 ; B2 = 0 ; Q = 1 ;

30 Two Things Two things before we move away from Dynare and back to the model First, the code presented asks Dynare to compute linear approximations of the levels of the variables We do this for presentation purposes (to avoid notational clutter). To compute a long-linear version of the model, replace variables y with exp(y). Careful though: some variables are already in logs so you need not add exp(.)! Second, bond economies like BE above tend to exhibit unit root behavior; see Schmitt-Grohe and Uribe for ways on how to get around this issue

31 Conclusion In this lecture, we looked at Heathcote-Perri JME 2002 and in particular, how to implement the three economies therein using Dynare Aside from being an introduction to Dynare as it applies to international models, the paper addresses three counterfactual predictions under CM: (1) high cross-country correlations of consumption relative to output; (2) negative cross-country correlations of investment and labor; (3) low RER volatility The paper finds that the FA setup comes closest to the data The main reason is that in the absence of asset trade, quantities adjust less (hence lower consumption correlation, and also less investment and labor in country with positive shock) so prices pick up the slack (hence more volatile RER)

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

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

Macroeconomics Qualifying Examination

Macroeconomics Qualifying Examination Macroeconomics Qualifying Examination January 2016 Department of Economics UNC Chapel Hill Instructions: This examination consists of 3 questions. Answer all questions. If you believe a question is ambiguously

More information

problem. max Both k (0) and h (0) are given at time 0. (a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming

problem. max Both k (0) and h (0) are given at time 0. (a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming 1. Endogenous Growth with Human Capital Consider the following endogenous growth model with both physical capital (k (t)) and human capital (h (t)) in continuous time. The representative household solves

More information

Notes on Alvarez and Jermann, "Efficiency, Equilibrium, and Asset Pricing with Risk of Default," Econometrica 2000

Notes on Alvarez and Jermann, Efficiency, Equilibrium, and Asset Pricing with Risk of Default, Econometrica 2000 Notes on Alvarez Jermann, "Efficiency, Equilibrium, Asset Pricing with Risk of Default," Econometrica 2000 Jonathan Heathcote November 1st 2005 1 Model Consider a pure exchange economy with I agents one

More information

The Small-Open-Economy Real Business Cycle Model

The Small-Open-Economy Real Business Cycle Model The Small-Open-Economy Real Business Cycle Model Comments Some Empirical Regularities Variable Canadian Data σ xt ρ xt,x t ρ xt,gdp t y 2.8.6 c 2.5.7.59 i 9.8.3.64 h 2.54.8 tb y.9.66 -.3 Source: Mendoza

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

Neoclassical Business Cycle Model

Neoclassical Business Cycle Model Neoclassical Business Cycle Model Prof. Eric Sims University of Notre Dame Fall 2015 1 / 36 Production Economy Last time: studied equilibrium in an endowment economy Now: study equilibrium in an economy

More information

Lecture 2. (1) Permanent Income Hypothesis (2) Precautionary Savings. Erick Sager. February 6, 2018

Lecture 2. (1) Permanent Income Hypothesis (2) Precautionary Savings. Erick Sager. February 6, 2018 Lecture 2 (1) Permanent Income Hypothesis (2) Precautionary Savings Erick Sager February 6, 2018 Econ 606: Adv. Topics in Macroeconomics Johns Hopkins University, Spring 2018 Erick Sager Lecture 2 (2/6/18)

More information

Notes on Winnie Choi s Paper (Draft: November 4, 2004; Revised: November 9, 2004)

Notes on Winnie Choi s Paper (Draft: November 4, 2004; Revised: November 9, 2004) Dave Backus / NYU Notes on Winnie Choi s Paper (Draft: November 4, 004; Revised: November 9, 004) The paper: Real exchange rates, international trade, and macroeconomic fundamentals, version dated October

More information

Equilibrium in a Production Economy

Equilibrium in a Production Economy Equilibrium in a Production Economy Prof. Eric Sims University of Notre Dame Fall 2012 Sims (ND) Equilibrium in a Production Economy Fall 2012 1 / 23 Production Economy Last time: studied equilibrium in

More information

Lecture 2. (1) Aggregation (2) Permanent Income Hypothesis. Erick Sager. September 14, 2015

Lecture 2. (1) Aggregation (2) Permanent Income Hypothesis. Erick Sager. September 14, 2015 Lecture 2 (1) Aggregation (2) Permanent Income Hypothesis Erick Sager September 14, 2015 Econ 605: Adv. Topics in Macroeconomics Johns Hopkins University, Fall 2015 Erick Sager Lecture 2 (9/14/15) 1 /

More information

Global Value Chain Participation and Current Account Imbalances

Global Value Chain Participation and Current Account Imbalances Global Value Chain Participation and Current Account Imbalances Johannes Brumm University of Zurich Georgios Georgiadis European Central Bank Johannes Gräb European Central Bank Fabian Trottner Princeton

More information

Small Open Economy RBC Model Uribe, Chapter 4

Small Open Economy RBC Model Uribe, Chapter 4 Small Open Economy RBC Model Uribe, Chapter 4 1 Basic Model 1.1 Uzawa Utility E 0 t=0 θ t U (c t, h t ) θ 0 = 1 θ t+1 = β (c t, h t ) θ t ; β c < 0; β h > 0. Time-varying discount factor With a constant

More information

1 The Basic RBC Model

1 The Basic RBC Model IHS 2016, Macroeconomics III Michael Reiter Ch. 1: Notes on RBC Model 1 1 The Basic RBC Model 1.1 Description of Model Variables y z k L c I w r output level of technology (exogenous) capital at end of

More information

Chapter 4. Applications/Variations

Chapter 4. Applications/Variations Chapter 4 Applications/Variations 149 4.1 Consumption Smoothing 4.1.1 The Intertemporal Budget Economic Growth: Lecture Notes For any given sequence of interest rates {R t } t=0, pick an arbitrary q 0

More information

Business Cycles and Exchange Rate Regimes

Business Cycles and Exchange Rate Regimes Business Cycles and Exchange Rate Regimes Christian Zimmermann Département des sciences économiques, Université du Québec à Montréal (UQAM) Center for Research on Economic Fluctuations and Employment (CREFE)

More information

New Notes on the Solow Growth Model

New Notes on the Solow Growth Model New Notes on the Solow Growth Model Roberto Chang September 2009 1 The Model The firstingredientofadynamicmodelisthedescriptionofthetimehorizon. In the original Solow model, time is continuous and the

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

Ramsey Cass Koopmans Model (1): Setup of the Model and Competitive Equilibrium Path

Ramsey Cass Koopmans Model (1): Setup of the Model and Competitive Equilibrium Path Ramsey Cass Koopmans Model (1): Setup of the Model and Competitive Equilibrium Path Ryoji Ohdoi Dept. of Industrial Engineering and Economics, Tokyo Tech This lecture note is mainly based on Ch. 8 of Acemoglu

More information

1 Two elementary results on aggregation of technologies and preferences

1 Two elementary results on aggregation of technologies and preferences 1 Two elementary results on aggregation of technologies and preferences In what follows we ll discuss aggregation. What do we mean with this term? We say that an economy admits aggregation if the behavior

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

1 Bewley Economies with Aggregate Uncertainty

1 Bewley Economies with Aggregate Uncertainty 1 Bewley Economies with Aggregate Uncertainty Sofarwehaveassumedawayaggregatefluctuations (i.e., business cycles) in our description of the incomplete-markets economies with uninsurable idiosyncratic risk

More information

RBC Model with Indivisible Labor. Advanced Macroeconomic Theory

RBC Model with Indivisible Labor. Advanced Macroeconomic Theory RBC Model with Indivisible Labor Advanced Macroeconomic Theory 1 Last Class What are business cycles? Using HP- lter to decompose data into trend and cyclical components Business cycle facts Standard RBC

More information

Macroeconomic Theory and Analysis V Suggested Solutions for the First Midterm. max

Macroeconomic Theory and Analysis V Suggested Solutions for the First Midterm. max Macroeconomic Theory and Analysis V31.0013 Suggested Solutions for the First Midterm Question 1. Welfare Theorems (a) There are two households that maximize max i,g 1 + g 2 ) {c i,l i} (1) st : c i w(1

More information

Pricing To Habits and the Law of One Price

Pricing To Habits and the Law of One Price Pricing To Habits and the Law of One Price Morten Ravn 1 Stephanie Schmitt-Grohé 2 Martin Uribe 2 1 European University Institute 2 Duke University Izmir, May 18, 27 Stylized facts we wish to address Pricing-to-Market:

More information

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

(a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming 1. Government Purchases and Endogenous Growth Consider the following endogenous growth model with government purchases (G) in continuous time. Government purchases enhance production, and the production

More information

Competitive Equilibrium and the Welfare Theorems

Competitive Equilibrium and the Welfare Theorems Competitive Equilibrium and the Welfare Theorems Craig Burnside Duke University September 2010 Craig Burnside (Duke University) Competitive Equilibrium September 2010 1 / 32 Competitive Equilibrium and

More information

Macroeconomic Theory and Analysis Suggested Solution for Midterm 1

Macroeconomic Theory and Analysis Suggested Solution for Midterm 1 Macroeconomic Theory and Analysis Suggested Solution for Midterm February 25, 2007 Problem : Pareto Optimality The planner solves the following problem: u(c ) + u(c 2 ) + v(l ) + v(l 2 ) () {c,c 2,l,l

More information

Dynamics of Firms and Trade in General Equilibrium. Robert Dekle, Hyeok Jeong and Nobuhiro Kiyotaki USC, Seoul National University and Princeton

Dynamics of Firms and Trade in General Equilibrium. Robert Dekle, Hyeok Jeong and Nobuhiro Kiyotaki USC, Seoul National University and Princeton Dynamics of Firms and Trade in General Equilibrium Robert Dekle, Hyeok Jeong and Nobuhiro Kiyotaki USC, Seoul National University and Princeton Figure a. Aggregate exchange rate disconnect (levels) 28.5

More information

Uncertainty Per Krusell & D. Krueger Lecture Notes Chapter 6

Uncertainty Per Krusell & D. Krueger Lecture Notes Chapter 6 1 Uncertainty Per Krusell & D. Krueger Lecture Notes Chapter 6 1 A Two-Period Example Suppose the economy lasts only two periods, t =0, 1. The uncertainty arises in the income (wage) of period 1. Not that

More information

Macroeconomic Topics Homework 1

Macroeconomic Topics Homework 1 March 25, 2004 Kjetil Storesletten. Macroeconomic Topics Homework 1 Due: April 23 1 Theory 1.1 Aggregation Consider an economy consisting of a continuum of agents of measure 1 who solve max P t=0 βt c

More information

The economy is populated by a unit mass of infinitely lived households with preferences given by. β t u(c Mt, c Ht ) t=0

The economy is populated by a unit mass of infinitely lived households with preferences given by. β t u(c Mt, c Ht ) t=0 Review Questions: Two Sector Models Econ720. Fall 207. Prof. Lutz Hendricks A Planning Problem The economy is populated by a unit mass of infinitely lived households with preferences given by β t uc Mt,

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

The TransPacific agreement A good thing for VietNam?

The TransPacific agreement A good thing for VietNam? The TransPacific agreement A good thing for VietNam? Jean Louis Brillet, France For presentation at the LINK 2014 Conference New York, 22nd 24th October, 2014 Advertisement!!! The model uses EViews The

More information

Monetary Economics: Solutions Problem Set 1

Monetary Economics: Solutions Problem Set 1 Monetary Economics: Solutions Problem Set 1 December 14, 2006 Exercise 1 A Households Households maximise their intertemporal utility function by optimally choosing consumption, savings, and the mix of

More information

The Real Business Cycle Model

The Real Business Cycle Model The Real Business Cycle Model Macroeconomics II 2 The real business cycle model. Introduction This model explains the comovements in the fluctuations of aggregate economic variables around their trend.

More information

Lecture 4 The Centralized Economy: Extensions

Lecture 4 The Centralized Economy: Extensions Lecture 4 The Centralized Economy: Extensions Leopold von Thadden University of Mainz and ECB (on leave) Advanced Macroeconomics, Winter Term 2013 1 / 36 I Motivation This Lecture considers some applications

More information

Closing Small Open Economy Models

Closing Small Open Economy Models Closing Small Open Economy Models Stephanie Schmitt-Grohé Rutgers University and CEPR Martín Uribe University of Pennsylvania First draft October 17, 2001 This draft November 12, 2001 Abstract The small

More information

Lecture notes on modern growth theory

Lecture notes on modern growth theory Lecture notes on modern growth theory Part 2 Mario Tirelli Very preliminary material Not to be circulated without the permission of the author October 25, 2017 Contents 1. Introduction 1 2. Optimal economic

More information

Advanced Macroeconomics II. Real Business Cycle Models. Jordi Galí. Universitat Pompeu Fabra Spring 2018

Advanced Macroeconomics II. Real Business Cycle Models. Jordi Galí. Universitat Pompeu Fabra Spring 2018 Advanced Macroeconomics II Real Business Cycle Models Jordi Galí Universitat Pompeu Fabra Spring 2018 Assumptions Optimization by consumers and rms Perfect competition General equilibrium Absence of a

More information

Macroeconomics Theory II

Macroeconomics Theory II Macroeconomics Theory II Francesco Franco Nova SBE March 9, 216 Francesco Franco Macroeconomics Theory II 1/29 The Open Economy Two main paradigms Small Open Economy: the economy trades with the ROW but

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

1. Using the model and notations covered in class, the expected returns are:

1. Using the model and notations covered in class, the expected returns are: Econ 510a second half Yale University Fall 2006 Prof. Tony Smith HOMEWORK #5 This homework assignment is due at 5PM on Friday, December 8 in Marnix Amand s mailbox. Solution 1. a In the Mehra-Prescott

More information

Problem 1 (30 points)

Problem 1 (30 points) Problem (30 points) Prof. Robert King Consider an economy in which there is one period and there are many, identical households. Each household derives utility from consumption (c), leisure (l) and a public

More information

Solutions Methods in DSGE (Open) models

Solutions Methods in DSGE (Open) models Solutions Methods in DSGE (Open) models 1. With few exceptions, there are not exact analytical solutions for DSGE models, either open or closed economy. This is due to a combination of nonlinearity and

More information

Graduate Macroeconomics - Econ 551

Graduate Macroeconomics - Econ 551 Graduate Macroeconomics - Econ 551 Tack Yun Indiana University Seoul National University Spring Semester January 2013 T. Yun (SNU) Macroeconomics 1/07/2013 1 / 32 Business Cycle Models for Emerging-Market

More information

Public Economics The Macroeconomic Perspective Chapter 2: The Ramsey Model. Burkhard Heer University of Augsburg, Germany

Public Economics The Macroeconomic Perspective Chapter 2: The Ramsey Model. Burkhard Heer University of Augsburg, Germany Public Economics The Macroeconomic Perspective Chapter 2: The Ramsey Model Burkhard Heer University of Augsburg, Germany October 3, 2018 Contents I 1 Central Planner 2 3 B. Heer c Public Economics: Chapter

More information

Advanced Macroeconomics

Advanced Macroeconomics Advanced Macroeconomics The Ramsey Model Marcin Kolasa Warsaw School of Economics Marcin Kolasa (WSE) Ad. Macro - Ramsey model 1 / 30 Introduction Authors: Frank Ramsey (1928), David Cass (1965) and Tjalling

More information

CEMMAP Masterclass: Empirical Models of Comparative Advantage and the Gains from Trade 1 Lecture 3: Gravity Models

CEMMAP Masterclass: Empirical Models of Comparative Advantage and the Gains from Trade 1 Lecture 3: Gravity Models CEMMAP Masterclass: Empirical Models of Comparative Advantage and the Gains from Trade 1 Lecture 3: Gravity Models Dave Donaldson (MIT) CEMMAP MC July 2018 1 All material based on earlier courses taught

More information

Graduate Macroeconomics 2 Problem set Solutions

Graduate Macroeconomics 2 Problem set Solutions Graduate Macroeconomics 2 Problem set 10. - Solutions Question 1 1. AUTARKY Autarky implies that the agents do not have access to credit or insurance markets. This implies that you cannot trade across

More information

Lecture 1: Introduction

Lecture 1: Introduction Lecture 1: Introduction Fatih Guvenen University of Minnesota November 1, 2013 Fatih Guvenen (2013) Lecture 1: Introduction November 1, 2013 1 / 16 What Kind of Paper to Write? Empirical analysis to: I

More information

Homework 3 - Partial Answers

Homework 3 - Partial Answers Homework 3 - Partial Answers Jonathan Heathcote Due in Class on Tuesday February 28th In class we outlined two versions of the stochastic growth model: a planner s problem, and an Arrow-Debreu competitive

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

CIRPÉE Centre interuniversitaire sur le risque, les politiques économiques et l emploi

CIRPÉE Centre interuniversitaire sur le risque, les politiques économiques et l emploi CIRPÉE Centre interuniversitaire sur le risque, les politiques économiques et l emploi Cahier de recherche/working Paper 05-06 Closing International Real Business Cycle Models with Restricted Financial

More information

Lecture 5: Competitive Equilibrium in the Growth Model

Lecture 5: Competitive Equilibrium in the Growth Model Lecture 5: Competitive Equilibrium in the Growth Model ECO 503: Macroeconomic Theory I Benjamin Moll Princeton University Fall 2014 1/17 Competitive Eqm in the Growth Model Recall two issues we are interested

More information

6. Open Economy Models

6. Open Economy Models 6. Open Economy Models Tutorial 45 1) Consider an open-economy model (with government purchases and income tax assumed to be exogenous) and fixed exchange rates; Y = C + I + G + (E M) C =α+β(1 t)y M =

More information

Economics 232c Spring 2003 International Macroeconomics. Problem Set 3. May 15, 2003

Economics 232c Spring 2003 International Macroeconomics. Problem Set 3. May 15, 2003 Economics 232c Spring 2003 International Macroeconomics Problem Set 3 May 15, 2003 Due: Thu, June 5, 2003 Instructor: Marc-Andreas Muendler E-mail: muendler@ucsd.edu 1 Trending Fundamentals in a Target

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

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

The Ramsey Model. (Lecture Note, Advanced Macroeconomics, Thomas Steger, SS 2013) The Ramsey Model (Lecture Note, Advanced Macroeconomics, Thomas Steger, SS 213) 1 Introduction The Ramsey model (or neoclassical growth model) is one of the prototype models in dynamic macroeconomics.

More information

Econ 204A: Section 3

Econ 204A: Section 3 Econ 204A: Section 3 Ryan Sherrard University of California, Santa Barbara 18 October 2016 Sherrard (UCSB) Section 3 18 October 2016 1 / 19 Notes on Problem Set 2 Total Derivative Review sf (k ) = (δ +

More information

Small Open Economy. Lawrence Christiano. Department of Economics, Northwestern University

Small Open Economy. Lawrence Christiano. Department of Economics, Northwestern University Small Open Economy Lawrence Christiano Department of Economics, Northwestern University Outline Simple Closed Economy Model Extend Model to Open Economy Equilibrium conditions Indicate complications to

More information

Economics 2010c: Lecture 3 The Classical Consumption Model

Economics 2010c: Lecture 3 The Classical Consumption Model Economics 2010c: Lecture 3 The Classical Consumption Model David Laibson 9/9/2014 Outline: 1. Consumption: Basic model and early theories 2. Linearization of the Euler Equation 3. Empirical tests without

More information

ECON FINANCIAL ECONOMICS

ECON FINANCIAL ECONOMICS ECON 337901 FINANCIAL ECONOMICS Peter Ireland Boston College Spring 2018 These lecture notes by Peter Ireland are licensed under a Creative Commons Attribution-NonCommerical-ShareAlike 4.0 International

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

Macroeconomics Qualifying Examination

Macroeconomics Qualifying Examination Macroeconomics Qualifying Examination August 2015 Department of Economics UNC Chapel Hill Instructions: This examination consists of 4 questions. Answer all questions. If you believe a question is ambiguously

More information

4- Current Method of Explaining Business Cycles: DSGE Models. Basic Economic Models

4- Current Method of Explaining Business Cycles: DSGE Models. Basic Economic Models 4- Current Method of Explaining Business Cycles: DSGE Models Basic Economic Models In Economics, we use theoretical models to explain the economic processes in the real world. These models de ne a relation

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

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

Permanent Income Hypothesis Intro to the Ramsey Model

Permanent Income Hypothesis Intro to the Ramsey Model Consumption and Savings Permanent Income Hypothesis Intro to the Ramsey Model Lecture 10 Topics in Macroeconomics November 6, 2007 Lecture 10 1/18 Topics in Macroeconomics Consumption and Savings Outline

More information

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

Government The government faces an exogenous sequence {g t } t=0 Part 6 1. Borrowing Constraints II 1.1. Borrowing Constraints and the Ricardian Equivalence Equivalence between current taxes and current deficits? Basic paper on the Ricardian Equivalence: Barro, JPE,

More information

Part A: Answer question A1 (required), plus either question A2 or A3.

Part A: Answer question A1 (required), plus either question A2 or A3. Ph.D. Core Exam -- Macroeconomics 5 January 2015 -- 8:00 am to 3:00 pm Part A: Answer question A1 (required), plus either question A2 or A3. A1 (required): Ending Quantitative Easing Now that the U.S.

More information

Advanced Macroeconomics

Advanced Macroeconomics Advanced Macroeconomics The Ramsey Model Micha l Brzoza-Brzezina/Marcin Kolasa Warsaw School of Economics Micha l Brzoza-Brzezina/Marcin Kolasa (WSE) Ad. Macro - Ramsey model 1 / 47 Introduction Authors:

More information

Deep Habits: Technical Notes

Deep Habits: Technical Notes Deep Habits: Technical Notes Morten Ravn Stephanie Schmitt-Grohé Martín Uribe October 18, 2004 This note derives in detail the model, its associated equilibrium conditions, the steadystate equilibrium,

More information

Topic 3. RBCs

Topic 3. RBCs 14.452. Topic 3. RBCs Olivier Blanchard April 8, 2007 Nr. 1 1. Motivation, and organization Looked at Ramsey model, with productivity shocks. Replicated fairly well co-movements in output, consumption,

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

Income Inequality, Trade and Financial Openness

Income Inequality, Trade and Financial Openness Income Inequality, Trade and Financial Openness G.C. Lim and Paul D. McNelis January 214 G.C. Lim and Paul D. McNelis () Income Inequality, Trade and Financial Openness January 214 1 / 34 Order of Presentation

More information

Topic 2. Consumption/Saving and Productivity shocks

Topic 2. Consumption/Saving and Productivity shocks 14.452. Topic 2. Consumption/Saving and Productivity shocks Olivier Blanchard April 2006 Nr. 1 1. What starting point? Want to start with a model with at least two ingredients: Shocks, so uncertainty.

More information

NBER WORKING PAPER SERIES CLOSING SMALL OPEN ECONOMY MODELS. Stephanie Schmitt-Grohé Martín Uribe. Working Paper 9270

NBER WORKING PAPER SERIES CLOSING SMALL OPEN ECONOMY MODELS. Stephanie Schmitt-Grohé Martín Uribe. Working Paper 9270 NBER WORKING PAPER SERIES CLOSING SMALL OPEN ECONOMY MODELS Stephanie Schmitt-Grohé Martín Uribe Working Paper 927 http://www.nber.org/papers/w927 NATIONAL BUREAU OF ECONOMIC RESEARCH 5 Massachusetts Avenue

More information

General Equilibrium and Welfare

General Equilibrium and Welfare and Welfare Lectures 2 and 3, ECON 4240 Spring 2017 University of Oslo 24.01.2017 and 31.01.2017 1/37 Outline General equilibrium: look at many markets at the same time. Here all prices determined in the

More information

Lecture 6: Competitive Equilibrium in the Growth Model (II)

Lecture 6: Competitive Equilibrium in the Growth Model (II) Lecture 6: Competitive Equilibrium in the Growth Model (II) ECO 503: Macroeconomic Theory I Benjamin Moll Princeton University Fall 204 /6 Plan of Lecture Sequence of markets CE 2 The growth model and

More information

Relationships between phases of business cycles in two large open economies

Relationships between phases of business cycles in two large open economies Journal of Regional Development Studies2010 131 Relationships between phases of business cycles in two large open economies Ken-ichi ISHIYAMA 1. Introduction We have observed large increases in trade and

More information

1. Money in the utility function (start)

1. Money in the utility function (start) Monetary Economics: Macro Aspects, 1/3 2012 Henrik Jensen Department of Economics University of Copenhagen 1. Money in the utility function (start) a. The basic money-in-the-utility function model b. Optimal

More information

General Examination in Macroeconomic Theory SPRING 2013

General Examination in Macroeconomic Theory SPRING 2013 HARVARD UNIVERSITY DEPARTMENT OF ECONOMICS General Examination in Macroeconomic Theory SPRING 203 You have FOUR hours. Answer all questions Part A (Prof. Laibson): 48 minutes Part B (Prof. Aghion): 48

More information

u(c t, x t+1 ) = c α t + x α t+1

u(c t, x t+1 ) = c α t + x α t+1 Review Questions: Overlapping Generations Econ720. Fall 2017. Prof. Lutz Hendricks 1 A Savings Function Consider the standard two-period household problem. The household receives a wage w t when young

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

14.452: Introduction to Economic Growth Problem Set 4

14.452: Introduction to Economic Growth Problem Set 4 14.452: Introduction to Economic Growth Problem Set 4 Daron Acemoglu Due date: December 5, 12pm noon Please only hand in Question 3, which will be graded. The rest will be reviewed in the recitation but

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

STATE UNIVERSITY OF NEW YORK AT ALBANY Department of Economics

STATE UNIVERSITY OF NEW YORK AT ALBANY Department of Economics STATE UNIVERSITY OF NEW YORK AT ALBANY Department of Economics Ph. D. Comprehensive Examination: Macroeconomics Fall, 202 Answer Key to Section 2 Questions Section. (Suggested Time: 45 Minutes) For 3 of

More information

Econ 5110 Solutions to the Practice Questions for the Midterm Exam

Econ 5110 Solutions to the Practice Questions for the Midterm Exam Econ 50 Solutions to the Practice Questions for the Midterm Exam Spring 202 Real Business Cycle Theory. Consider a simple neoclassical growth model (notation similar to class) where all agents are identical

More information

Explaining the Effects of Government Spending Shocks on Consumption and the Real Exchange Rate. M. Ravn S. Schmitt-Grohé M. Uribe.

Explaining the Effects of Government Spending Shocks on Consumption and the Real Exchange Rate. M. Ravn S. Schmitt-Grohé M. Uribe. Explaining the Effects of Government Spending Shocks on Consumption and the Real Exchange Rate M. Ravn S. Schmitt-Grohé M. Uribe November 2, 27 Effects of Government Spending Shocks: SVAR Evidence A rise

More information

Autarky Equilibrium for Home Country

Autarky Equilibrium for Home Country Autarky Equilibrium for ome Country Need to find prices p 1, p 2, wages, w and allocations c 1, c 2 ; l 1, l 2 ; y 1, y 2 such that Consumer Optimization holds c 1 = w L p 1 θ 1 θ 1 + θ 2 ; c 2 = w L p

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

TECHNICAL APPENDIX. 7. Agents Decisions in the Cobb-Douglas Case

TECHNICAL APPENDIX. 7. Agents Decisions in the Cobb-Douglas Case TECHNICAL APPENDIX 7 Agents Decisions in the Cobb-Douglas Case A closed form solution for production and trade obtains if we assume that utility is a Cobb-Douglas function of the consumption bundle: u

More information

Handout: Competitive Equilibrium

Handout: Competitive Equilibrium 1 Competitive equilibrium Handout: Competitive Equilibrium Definition 1. A competitive equilibrium is a set of endogenous variables (Ĉ, N s, N d, T, π, ŵ), such that given the exogenous variables (G, z,

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

Learning to Optimize: Theory and Applications

Learning to Optimize: Theory and Applications Learning to Optimize: Theory and Applications George W. Evans University of Oregon and University of St Andrews Bruce McGough University of Oregon WAMS, December 12, 2015 Outline Introduction Shadow-price

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

Redistributive Taxation in a Partial-Insurance Economy

Redistributive Taxation in a Partial-Insurance Economy Redistributive Taxation in a Partial-Insurance Economy Jonathan Heathcote Federal Reserve Bank of Minneapolis and CEPR Kjetil Storesletten Federal Reserve Bank of Minneapolis and CEPR Gianluca Violante

More information

ECON 5118 Macroeconomic Theory

ECON 5118 Macroeconomic Theory ECON 5118 Macroeconomic Theory Winter 013 Test 1 February 1, 013 Answer ALL Questions Time Allowed: 1 hour 0 min Attention: Please write your answers on the answer book provided Use the right-side pages

More information