(5/5)

Problem set 4

Linear algebra

1. Real business cycles:

Consider the following macroeconomic model for real business cycles taken from Dejong and Dave (2011) Chapter 3:

Suppose that we have a representative household whose goal is to maximize their utility from consumption and leisure over time:

∞

U = E0 β u(ct, lt)

t=0

where E0 is the expected value at time 0, β is a parameter reflecting the household’s discount rate (time preferences), ct is the household’s consumption at time t, and lt is the household’s leisure time at time t.

For this problem to work, we have to introduce four constraints. The first constraint is that the household produces goods using a Cobb-Douglas production function. That is,

yt = ztkαn1−α

t t

where yt represents the GDP at time t, zt represents and exogenous (i.e., cannot be optimized or changed) technology stock at time t, kt represents the gross capital stock at time t, and nt represents the amount of labor supplied at time t. The second constraint is that total time spent working and at leisure should add to some fixed constant. Without loss of generality we can define the total to be one (1):

1 = nt + lt

The third constraint is that GDP can be spent in two ways: consuming and investing in future capital:

yt = ct + it

where it is the amount of investment at time t.

kt = it + (1 − δ)kt

The last thing we need to define to make the problem solvable is the utility function. For this we are going to use a constant elasticity of substitution (CES) form. That is,

u(c, l) =1 − ρ

where rho and phi are parameters representing the trade off between happiness from consuming versus leisure in the model.

Your job is solve this consumer’s problem using calculus by maximizing the total utility subject to the constraints defined above. In the end, you should obtain two equations. The first equation will reveal the consumer’s inner-temporal choice between consumption and leisure. The second equation will reveal the consumer’s intertemporal choice between consuming today and consuming tomorrow. If you are struggling, the answer is in Dejong and Dave (2011) Chapter 3.

Programming

2. Ridge regression:

Write some code which performs L2 regularization. That is, solve OLS with a constraint that the L2 norm of the betas is less than some threshold value.

(5/5)

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Get Free Quote!

376 Experts Online