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 X8 t=0 ß tu(ct, lt) 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 a t n 1-a 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):
Problem set 4 Problem set 4 Buan 6340 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 ∞∑ t=0 βtu(ct, lt) 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αt n1−α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) = ( cφl1−φ )1−ρ 1 − ρ 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 perform L2 regularization. That is, solve OLS with a constraint that the L2 norm of the betas is less than some threshold value. min β n∑ i=1 e2i subject to r∑ i=1 β2i ≤ T 2 Linear algebra Programming