Question: 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
 ECON 6305: Coding Assignment #1 Aaron Betz George Washington University 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!