Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ECON 6 3 0 5 : Coding Assignment # 1 Aaron Betz George Washington University 1 Write your own IRF code Suppose you have the

ECON 6305: Coding Assignment #1
Aaron Betz
George Washington University
1 Write your own IRF code
Suppose you have the following solution to a model from Dolo (Problem 1 is just a Python exercise, you will not actually be using Dolo). You will generate impulse response functions with these formulas.
zt=zt-1+1-bar(z)+lont
kt=kt-1(1-)+2.16(zt-1-1)+0.017(kt-1-9.354)+9.354
1.1 Capital and Z impulses
Where =0.9,bar(z)=1, and =0.025. You can solve forward to time t=1 from time t=0(steady state) when z0?b=ar(z)=1 and k0?b=ar(k)=9.354 given some initial shock lon0. To continue to solve forward assume lon1=0 and that every following lont is zero. Write a Python function to generate an impulse of length n, given an initial shock, lon0. Show your code and graph impulses (for both capital and z) of length 40, with an initial shock lon0=0.01.
1.2 Labor and output impulse
Now that you have a 40 period series of all the necessary state variables, kt and zt solve for nt and then yt given the following formulas from Dolo.
nt=0.33+0.809(zt-1-1)+0.025(kt-1-9.354)
yt=ztnt0.67kt-10.33
Keep in mind you will need to solve for labor, nt, before you solve for output, yt. Once you have solved all 40 periods graph both labor and output over time (use separate graphs).
1
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions