Parameterized expectations algorithm

Size: px
Start display at page:

Download "Parameterized expectations algorithm"

Transcription

1 Lecture Notes 8 Parameterized expectations algorithm The Parameterized Expectations Algorithm (PEA hereafter) was introduced by Marcet [988]. As it will become clear in a moment, this may be viewed as a generalized method of undetermined coefficients, in which economic agents learn the decision rule at each step of the algorithm. It will therefore have a natural interpretation in terms of learning behavior. The basic idea of this method is to approximate the expectation function of the individuals rather than attempting to recover directly the decision rules by a smooth function, in general a polynomial function. Implicit in this approach is the fact that the space spanned by polynomials is dense in the space spanned by all functions in the sense lim inf k θ R k x X sup F θ (x) F (x) = 0 where F is the function to be approximated and F θ is an k th order interpolating function that is parameterized by θ. 8. Basics The basic idea that underlies this approach is to replace expectations by an a priori given function of the state variables of the problem in hand, and then

2 reveal the set of parameters that insure that the residuals from the Euler equations are a martingale difference sequence (E t ε t+ = 0). Note that the main difficulty when solving the model is to deal with the integral involved by the expectation. The approach of the basic PEA algorithm is to approximate it by Monte Carlo simulations. PEA algorithm may be implemented to solve a large set of models that admit the following general representation F (E t (E (y t+, x t+, y t, x t )), y t, x t, ε t ) = 0 (8.) where F : R m R ny R nx R ne R nx+ny describes the model and E : R ny R nx R ny R nx R m defines the transformed variables on which we take expectations. E t is the standard conditional expectations operator. ε t is the set of innovations of the structural shocks that affect the economy. In order to fix notations, let us take the optimal growth model as an example λ t βe t [ λt+ ( αzt+ k α t+ + δ)] = 0 c σ t λ t = 0 k t+ z t k α t + c t ( δ)k t = 0 z t+ ρz t ε t+ = 0 In this example, we have y = {c, λ}, x = {k, z} and ε = ε, the function E takes the form E ({c, λ} t+, {k, z} t+, {c, λ} t, {k, z} t ) = λ t+ ( αzt+ k α t+ + δ) while F (.) is given by λ t βe t [E ({c, λ} t+, {k, z} t+, {c, λ} t, {k, z} t )] c F (.) = t σ λ t k t+ z t kt α + c t ( δ)k t z t+ ρz t ε t+ The idea of the PEA algorithm is then to replace the expectation function E t (E (y t+, x t+, y t, x t )) by an parametric approximation function, Φ(x t ; θ), of 2

3 the current state variables x t and a vector of parameters θ, such that the approximated model may be restated as F (Φ(x t, θ), y t, x t, ε t ) = 0 (8.2) The problem of the PEA algorithm is then to find a vector θ such that θ Argmin Φ(x t, θ) E t (E (y t+, x t+, y t, x t )) 2 θ Θ that is the solution satisfies the rational expectations hypothesis. At this point, note that we selected a quadratic norm, but one also may consider other metrics of the form θ Argmin R(x t, θ) ΩR(x t, θ) θ Θ with R(x t, θ) Φ(x t, θ) E t (E (y t+, x t+, y t, x t )) and Ω is a weighting matrix. This would then correspond to a GMM type of estimation. consider θ Argmin max{ Φ(x t, θ) E t (E (y t+, x t+, y t, x t )) } θ Θ One may also which would call for LAD estimation methods. However, the usual practice is use the standard quadratic norm. Once, θ and therefore the approximation function has been found, Φ(x t, θ) and equation (8.2) may be used to generate time series for the variables of the model. The algorithm may then be described as follows. Step. Specify a guess for the function Φ(x t, θ), an initial θ. Choose a stopping criterion η > 0, a sample size T that should be large enough and draw a sequence {ε t } T t=0 that will be used during all the algorithm. Step 2. At iteration i, and for the given θ i, simulate, recursively, a sequence for {y t (θ i )} T t=0 and {x t(θ i )} T t=0 3

4 Step 3. Find G(θ i ) that satisfies θ Argmin θ Θ T T E (y t+ (θ), x t+ (θ), y t (θ), x t (θ)) Φ(x t (θ), θ) 2 t=0 which just amounts to perform a non linear least square regression taking E (y t+ (θ), x t+ (θ), y t (θ), x t (θ)) as the dependent variable, Φ(.) as the explanatory function and θ as the parameter to be estimated. Step 4. Set θ i+ to θ i+ = γ θ i + ( γ)θ i (8.3) where γ (0, ) is a smoothing parameter. On the one hand, setting low γ helps convergence, but at the cost of increasing the computational time. As long as good initial conditions can be found and the model is not too non linear, setting γ close to is sufficient, however, when dealing with strongly non linear models with binding constraints for example decreasing γ will generally helps a lot. Step 5. If θ i+ θ i < η then stop, otherwise go back to step 2. Reading this algorithm, it appears that it may easily be given a learning interpretation. Indeed, each iteration mays be interpreted as a learning step, in which the individual uses a rule of thumb as a decision rule and reveal information on the kind of errors he/she does using this rule of thumb. He/she then corrects the rule that is find another θ that will be used during the next step. But it should be noted that nothing in the algorithm guarantees that the algorithm always converges and if it does delivers a decision rule that is compatible with the rational expectation hypothesis. At this point, several comments stemming from the implementation of the method are in order. First of all, we need to come with an interpolating For a convergence proof in the case of the optimal growth model, see Marcet and Marshall [994]. 4

5 function, Φ(.). How should it be specified? In fact, we are free to choose any functional form we may think of, nevertheless economic theory may guide us as well as some constraints imposed by the method more particularly in step 3. A widely used interpolating function combines non linear aspects of the exponential function with some polynomials, such that Φ j (x, θ) may take the form (where j {,..., m} refers to a particular expectation) Φ j (x, θ) = exp ( θ P (x) ) where P (x) is a multivariate polynomial. 2 One advantage of this interpolating function is obviously that it guarantees positive values for the expectations, which turns out to be mostly the case in economics. One potential problem with such a functional form is precisely related to the fact that it uses simple polynomials which then may generate multicolinearity problems during step 3. As an example, let us take the simple case in which the state variable is totally exogenous and is an AR() process with log normal innovations: log(a t ) = ρ log(a t ) + ε t with ρ < and ε N (0, σ). The state variable is then a t. If we simulate the sequence {a t } T t=0 with T = 0000, and compute the correlation matrix of {a t, a 2 t, a 3 t, a 4 t } we get, for ρ = 0.95 and σ = revealing some potential multicolinearity problems to occur. As an illustrative example, assume that we want to approximate the expectation function in this model, it will be a function of the capital stock which is a particularly smooth sequence, therefore if there will be significant differences between the sequence itself and the sequence taken at the power 2, the difference may then be small 2 For instante, let us consider the case n x = 2, P (x t) may then consists of a constant term, x t, x 2t, x 2 t, x 2 2t, x tx 2t. 5

6 for the sequence at the power 4. Hence multicolinearity may occur. One way to circumvent this problem is to rely on orthogonal polynomials instead of standard polynomials in the interpolating function. A second problem that arises in this approach is to select initial conditions for θ. Indeed, this step is crucial for at least 3 reasons: (i) the problem is fundamentally non linear, (ii) convergence is not always guarantee, (iii) economic theory imposes a set of restrictions to insure positivity of some variables for example. Therefore, much attention should be paid when imposing an initial value to θ. A third important problem is related to the choice of γ, the smoothing parameter. A too large value may put too much weight on new values for θ and therefore reinforce the potential forces that lead to divergence of the algorithm. On the contrary, setting γ too close to 0 may be costly in terms of computational CPU time. It must however be noted that no general rule may be given for these implementation issues and that in most of the case, one has to guess and try. Therefore, I shall now report 3 examples of implementation. The first one is the standard optimal growth model, the other one corresponds to the optimal growth model with investment irreversibility, the last one will be the problem of a household facing borrowing constraints. But before going to the examples, we shall consider a linear example that will highlight the similarity between this approach and the undetermined coefficient approach. 8.2 A linear example Let us consider the simple model y t = ae t y t+ + bx t x t+ = ( ρ)x + ρx t + ε t+ 6

7 where ε N (0, σ 2 ). Finding an expectation function in this model amounts to find a function Φ(x t, θ) for E t (ay t+ +bx t ). Let us make the following guess for the solution: Φ(x t, θ) = θ 0 + θ x t In this case, solving the PEA problem amount to solve min {θ 0,θ } N (Φ(x t, θ) ay t+ bx t ) 2 The first order conditions for this problem are N N (θ 0 + θ x t ay t+ bx t ) = 0 (8.4) x t (θ 0 + θ x t ay t+ bx t ) = 0 (8.5) Equation (8.4) can be rewritten as θ 0 + θ N x t = a N y t+ + b N But, since Φ(x t, θ) is an approximate solution for the expectation function, the model implies that such that the former equation rewrites y t = E t (ay t+ + bx t ) = Φ(x t, θ) x t θ 0 + θ N Asymptotically, we have x t = a N (θ 0 + θ x t+ ) + b N x t lim N N x t = lim N N such that this first order condition converges to x t+ = x θ 0 + θ x = aθ 0 + aθ x + bx 7

8 therefore, rearranging terms, we have θ 0 ( a) + θ ( a)x = bx (8.6) Now, let us consider equation (8.5), which can be rewritten as θ 0 N x t + θ N x 2 t = a N y t+ x t + b N x 2 t Like for the first condition, we acknowledge that such that the condition rewrites y t = E t (ay t+ + bx t ) = Φ(x t, θ) θ 0 N x t + θ N Asymptotically, we have x 2 t = a N (θ 0 + θ x t+ )x t + b N x 2 t (8.7) lim N finally, we have lim N N N x t = x and lim N x t x t+ = lim N N N x 2 t = E(x 2 ) = σx 2 + x 2 x t (( ρ)x + ρx t + ε t+ ) Since ε is the innovation of the process, we have lim N N N x tε t+ = 0, such that lim N N x t x t+ = ( ρ)x 2 + ρe(x 2 ) = x 2 + ρσx 2 Hence, (8.7) asymptotically rewrites as x( a)θ 0 + ( aρ)(x 2 + σ 2 x)θ = b(x 2 + σ 2 x) 8

9 We therefore have to solve the system θ 0 ( a) + θ ( a)x = bx x( a)θ 0 + ( a)(x 2 + ρσ 2 x)θ = b(x 2 + σ 2 x) premultiplying the first equation by x, and plugging the result in the second equation leads to such that ( aρ)θ σ 2 x = bσ 2 x θ = b aρ Plugging this result into the first equation, we get θ 0 = ab( ρ)x ( a)( aρ) Therefore, Asymptotically, the solution is given by y t = ab( ρ)x ( a)( aρ) + b aρ x t which corresponds exactly to the solution of the model (see Lecture notes #).Therefore, asymptotically, the PEA algorithm is nothing else but an undetermined coefficient method. 8.3 Standard PEA solution: the Optimal Growth Model Let us first recall the type of problem we have in hand. We are about to solve the set of equations λ t βe t [ λt+ ( αzt+ k α t+ + δ)] = 0 c σ t λ t = 0 k t+ z t k α t + c t ( δ)k t = 0 log(z t+ ) ρ log(z t ) ε t+ = 0 9

10 Our problem will therefore be to get an approximation for the expectation function: βe t [ λt+ ( αzt+ k α t+ + δ)] In this problem, we have 2 state variables: k t and z t, such that Φ(.) should be a function of both k t and z t. We will make the guess Φ(k t, z t ; θ) = exp ( θ 0 + θ log(k t ) + θ 2 log(z t ) + θ 3 log(k t ) 2 + θ 4 log(z t ) 2 + θ 5 log(k t ) log(z t ) ) From the first equation of the above system, we have that for a given vector θ = {θ 0, θ, θ 2, θ 3, θ 4, θ 5 } λ t (θ) = Φ(k t (θ), z t (θ); θ), which enables us to recover and therefore get c t (θ) = λ t (θ) σ k t+ (θ) = z t k t (θ) α c t (θ) + ( δ)k t (θ) We then recover a whole sequence for {k t (θ)} T t=0, {z t} T t=0, {λ t(θ)} T t=0, and {c t (θ)} T t=0, which makes it simple to compute a sequence for ϕ t+ (θ) λ t+ (θ) ( αz t+ k t+ (θ) α + δ ) Since Φ(k t, z t ; θ) is an exponential function of a polynomial, we may run the regression log(ϕ t+ (θ)) = θ 0 + θ log(k t (θ)) + θ 2 log(z t ) + θ 3 log(k t (θ)) 2 +θ 4 log(z t ) 2 + θ 5 log(k t (θ)) log(z t ) (8.8) to get θ. We then set a new value for θ according to the updating scheme (8.3) and restart the process until convergence. The parameterization we used in the matlab code are given in table 8. and is totally standard. γ, the smoothing parameter was set to, implying that in each iteration the new θ vector is totally passed as a new guess in the 0

11 Table 8.: Optimal growth: Parameterization β σ α δ ρ σ e progression of the algorithm. The stopping criterion was set at η=e-6 and T =20000 data points were used to compute the OLS regression. Initial conditions were set as follows. We first solve the model relying on a log linear approximation. We then generate a random draw of size T for ε and generate series using the log linear approximate solution. We then built the needed series to recover a draw for {ϕ t+ (θ)} t=0, {k t(θ)} t=0 and {z t(θ)} t=0 and ran the regression (8.8) to get an initial condition for θ, reported in table 8.2. The algorithm converges after 22 iterations and delivers the final decision Table 8.2: Decision rule θ 0 θ θ 2 θ 3 θ 4 θ 5 Initial Final rule reported in table 8.2. When γ is set at 0.75, 3 iterations are needed, 46 for γ = 0.5 and 90 for γ = It is worth noting that the final decision rule does differ from the initial conditions, but not by an as large amount as one would have expected, meaning that in this setup and provided the approximation is good enough 3 certainty equivalence and non linearities do not play such a great role. In fact, as illustrated in figure 8., the capital decision rule does not display that much non linearities. Although particularly simple to implement (see the following matlab code), this method should be handle with care as it may be difficult to obtain convergence for some models. Nevertheless it has another attractive feature: it can handle problems with 3 Note that for the moment we have not made any evaluation of the accuracy of the decision rule. We will undertake such an evaluation in the sequel.

12 3 Figure 8.: Capital decision rule k t k t possibly binding contraints. We now provide two examples of such models. clear all Matlab Code: PEA Algorithm (OGM) long = 20000; init = 500; slong = init+long; T = init+:slong-; T = init+2:slong; tol = e-6; crit = ; gam = ; sigma = ; delta = 0.; beta = 0.95; alpha = 0.3; ab = 0; rho = 0.9; se = 0.0; param = [ab alpha beta delta rho se sigma long init]; ksy =(alpha*beta)/(-beta*(-delta)); yss = ksy^(alpha/(-alpha)); kss = yss^(/alpha); 2

13 iss css csy lss = delta*kss; = yss-iss; = css/yss; = css^(-sigma); randn( state,); e = se*randn(slong,); a = zeros(slong,); a() = ab+e(); for i = 2:slong; a(i) = rho*a(i-)+(-rho)*ab+e(i); end b0 = peaoginit(e,param); % Compute initial conditions % % Main Loop % iter = ; while crit>tol; % % Simulated path % k = zeros(slong+,); lb = zeros(slong,); X = zeros(slong,length(b0)); k() = kss; for i = :slong; X(i,:)= [ log(k(i)) a(i) log(k(i))*log(k(i)) a(i)*a(i) log(k(i))*a(i)]; lb(i) = exp(x(i,:)*b0); k(i+)=exp(a(i))*k(i)^alpha+(-delta)*k(i)-lb(i)^(-/sigma); end y = beta*lb(t).*(alpha*exp(a(t)).*k(t).^(alpha-)+-delta); bt = X(T,:)\log(y); b = gam*bt+(-gam)*b0; crit = max(abs(b-b0)); b0 = b; disp(sprintf( Iteration: %d\tconv. crit.: %g,iter,crit)) iter=iter+; end; 3

14 8.4 PEA and binding constraints: Optimal growth with irreversible investment We now consider a variation to the previous model, in the sense that we restrict gross investment to be positive in each and every period: i t 0 k t+ ( δ)k t (8.9) This assumption amounts to assume that there does not exist a second hand market for capital. In such a case the problem of the central planner is to determined consumption and capital accumulation, such that utility is maximum: s.t. and max {c t,k t+ } t=0 E 0 t=0 β t c σ t σ k t+ = z t k α t c t + ( δ)k t k t+ ( δ)k t Forming the Lagrangean associated to the previous problem, we have L t = E t τ=0 β τ [ c σ t+τ σ + λ t+τ ( zt+τ k α t+τ c t+τ + ( δ)k t+τ k t+τ+ ) + µ t+τ (k t+ ( δ)k t ) ] which leads to the following set of first order conditions c σ t = λ t (8.0) λ t µ t = βe t [ λt+ ( αzt+ k α t+ + δ) µ t+ ( δ) ] (8.) k t+ = z t k α t c t + ( δ)k t (8.2) µ t (k t+ ( δ)k t ) (8.3) The main difference with the previous example is that now the central planner faces a constraint that may be binding in each and every period. Therefore, 4

15 this complicates a little bit the algorithm, and we have to find a rule for both the expectation function E t [ϕ t+ ] where ϕ t+ β ( λ t+ ( αzt+ k α t+ + δ) µ t+ ( δ) ) and µ t. We then proceed as suggested in Marcet and Lorenzoni [999]:. Compute two sequences for {λ t (θ)} t=0 and {k t(θ)} t=0 from (8.) and (8.2) under the assumption that the constraint is not binding that is µ t (θ) = 0. In such a case, we just compute the sequences as in the standard optimal growth model. 2. Test whether, under this assumption, i t (β) 0. If it is the case, then set µ t (θ) = 0, otherwise set k t+ (θ) = ( δ)k t (θ), c t (θ) is computed from the resource constraint and µ t (θ) is found from (8.). Note that, using this procedure, µ t is just treated as an additional variable which is just used to compute a sequence to solve the model. We therefore do not need to compute explicitly its interpolating function, as far as ϕ t+ is concerned we use the same interpolating function as in the previous example and therefore run a regression of the type log(ϕ t+ (θ)) = θ 0 + θ log(k t (θ)) + θ 2 log(z t ) + θ 3 log(k t (θ)) 2 +θ 4 log(z t ) 2 + θ 5 log(k t (θ)) log(z t ) (8.4) to get θ. Up to the shock, the parameterization, reported in table 8.3, we used in the matlab code is essentially the same as the one we used in the optimal growth model. The shock was artificially assigned a lower persistence and a greater volatility in order to increase the probability of binding the constraint, and therefore illustrate the potential of this approach. γ, the smoothing parameter was set to. The stopping criterion was set at η=e-6 and T =20000 data points were used to compute the OLS regression. 5

16 Table 8.3: Optimal growth: Parameterization β σ α δ ρ σ e Initial conditions were set as in the standard optimal growth model: We first solve the model relying on a log linear approximation. We then generate a random draw of size T for ε and generate series using the log linear approximate solution. We then built the needed series to recover a draw for {ϕ t+ (θ)} t=0, {k t(θ)} t=0 and {z t(θ)} t=0 and ran the regression (8.4) to get an initial condition for θ, reported in table 8.4. The algorithm converges after 5 iterations and delivers the final decision rule reported in table 8.4. Contrary Table 8.4: Decision rule θ 0 θ θ 2 θ 3 θ 4 θ 5 Initial Final to the standard optimal growth model, the initial and final rule totally differ in the sense the coefficient in front of the capital stock in the final rule is half that on the initial rule, that in front of the shock is double, and the sign in front of all the quadratic terms are reversed. This should not be surprising as the initial rule is computed under (i) the certainty equivalence hypothesis and (ii) the assumption that the constraint never binds, whereas the size of the shocks we introduce in the model implies that the constraint binds in 2.8% of the cases. The latter quantity may seem rather small, but this is sufficient to dramatically alter the decision of the central planner when it acts under rational expectations. This is illustrated by figures 8.2 and 8.3 which respectively report the decision rules for investment, capital and the lagrange multiplier and a typical path for investment and lagrange multiplier. As reflected in 6

17 .5 investment Figure 8.2: Decision rules 800 Distribution of investment k t Capital stock Lagrange multiplier k t k t Figure 8.3: Typical investment path investment Lagrange multiplier Time Time 7

18 the upper right panel of figure 8.2 which reports the simulated distribution of investment the distribution is highly skewed and exhibits a mode at i t = 0, revealing the fact that the constraint occasionally binds. This is also illustrated in the lower left panel that reports the decision rule for the capital stock. As can be seen from this graph, the decision rule is bounded from below by the line ( δ)k t (the grey line on the graph), such situation then correspond to situations where the Lagrange multiplier is positive as reported in the lower right panel of the figure. Matlab Code: PEA Algorithm (Irreversible Investment) clear all long = 20000; init = 500; slong = init+long; T = init+:slong-; T = init+2:slong; tol = e-6; crit = ; gam = ; sigma = ; delta = 0.; beta = 0.95; alpha = 0.3; ab = 0; rho = 0.8; se = 0.25; kss = ((-beta*(-delta))/(alpha*beta))^(/(alpha-)); css = kss^alpha-delta*kss; lss = css^(-sigma); ysk = (-beta*(-delta))/(alpha*beta); csy = -delta/ysk; % % Simulation of the shock % randn( state,); e = se*randn(slong,); a = zeros(slong,); a() = ab+e(); for i = 2:slong; a(i) = rho*a(i-)+(-rho)*ab+e(i); end % % Initial guess 8

19 % param = [ab alpha beta delta rho se sigma long init]; b0 = peaoginit(e,param); % % Main Loop % iter = ; while crit>tol; % % Simulated path % k = zeros(slong+,); lb = zeros(slong,); mu = zeros(slong,); X = zeros(slong,length(b0)); k() = kss; for i = :slong; X(i,:)= [ log(k(i)) a(i) log(k(i))*log(k(i)) a(i)*a(i) log(k(i))*a(i)]; lb(i) = exp(x(i,:)*b0); iv = exp(a(i))*k(i)^alpha-lb(i)^(-/sigma); if iv>0; k(i+) = (-delta)*k(i)+iv; mu(i) = 0; else k(i+) = (-delta)*k(i); c = exp(a(i))*k(i)^alpha; mu(i) = c^(-sigma)-lb(i); end end y = beta*(lb(t).*(alpha*exp(a(t)).*k(t).^(alpha-)+-delta)... -mu(t)*(-delta)); bt = X(T,:)\log(y); b = gam*bt+(-gam)*b0; crit = max(abs(b-b0)); b0 = b; disp(sprintf( Iteration: %d\tconv. crit.: %g,iter,crit)) iter = iter+; end; 9

20 8.5 The Households Problem With Borrowing Constraints As a final example, we now report the example of a consumer that faces borrowing constraints, such that she solves the program s.t. max E t {c t} τ=0 β τ u(c t+τ ) a t+ = ( + r)a t + ω t c t a t+ 0 log(ω t+ ) = ρ log(ω t ) + ( ρ) log(ω) + ε t+ Let us first recall the first order conditions that are associated with this problem: c σ t = λ t (8.5) λ t = µ t + β( + r)e t λ t+ (8.6) a t+ = ( + r)a t + ω t c t (8.7) log(ω t+ ) = ρ log(ω t ) + ( ρ) log(ω) + ε t+ (8.8) µ t (a t+ a) = 0 (8.9) µ t 0 (8.20) In order to solve this model, we have to find a rule for both the expectation function where E t [ϕ t+ ] ϕ t+ βrλ t+ and µ t. We propose to follow the same procedure as the previous one: 20

21 . Compute two sequences for {λ t (θ)} t=0 and {a t(θ)} t=0 from (8.6) and (8.7) under the assumption that the constraint is not binding that is µ t (θ) = Test whether, under this assumption, a t+ (β) a. If it is the case, then set µ t (θ) = 0, otherwise set a t+ (θ) = a, c t (θ) is computed from the resource constraint and µ t (θ) is found from (8.6). Note that, using this procedure, µ t is just treated as an additional variable which is just used to compute a sequence to solve the model. We therefore do not need to compute explicitly its interpolating function, as far as ϕ t+ is concerned we use the same interpolating function as in the previous example and therefore run a regression of the type log(ϕ t+ (θ)) = θ 0 + θ a t (θ) + θ 2 ω t + θ 3 a t (θ) 2 + θ 4 ω 2 t + θ 5 a t (θ)ω t (8.2) to get θ. The parameterization is reported in table 8.5. γ, the smoothing parameter Table 8.5: Borrowing constraint: Parameterization a β σ ρ σ ω R ω was set to. The stopping criterion was set at η=e-6 and T =20000 data points were used to compute the OLS regression. One key issue in this particular problem is related to the initial conditions. Indeed, it is extremely difficult to find a good initial guess as the only model for which we might get an analytical solution while being related to the present model is the standard permanent income model. Unfortunately, this model exhibits a non stationary behavior, in the sense it generates an I() process for the level of individual wealth and consumption, and therefore the marginal utility of wealth. We therefore have to take another route. We propose the 2

22 following procedure. For a given a 0 and a sequence {ω t } T t=0, we generate c 0 = ra 0 + ω 0 + η 0 where r > r and ε 0 N (0, σ η ). In practice, we took r = 0. and σ η = 0.. We then compute a from the law of motion of wealth. If a < a then a is set to a and c 0 = Ra 0 +y 0 a, otherwise c 0 is not modified. We then proceed exactly the same way for all t > 0. We then have in hand a sequence for both a t and c t, and therefore for λ t. We can then recover easily ϕ t+ and an initial θ from the regression (8.2) (see table 8.6). Table 8.6: Decision rule θ 0 θ θ 2 θ 3 θ 4 θ 5 Initial Final The algorithm converges after 79 iterations and delivers the final decision rule reported in table 8.6. Note that if the final decision rule effectively differs from the initial one, the difference is not huge, meaning that our initialization procedure is relevant. Figure 8.4 reports the decision rule of consumption in terms of cash on hand that is the effective amount a household may use to purchase goods (Ra t + ω t a). Figure 8.5 reports the decision rule for wealth accumulation as well as the implied distribution, which admits a mode in a, revealing that the constraints effectively binds (in 3.7% of the cases). clear Matlab Code: PEA Algorithm (Borrowing Constraints) crit = ; tol = e-6; gam = ; long = 20000; init = 500; slong = long+init; T = init+:slong-; T = init+2:slong; rw = 0.7; sw = 0.; 22

23 .3 Figure 8.4: Consumption decision rule Consumption Cash on hand (R a +ω a) t t 4 Wealth Figure 8.5: Wealth accumulation 4000 Distribution of wealth a t

24 wb = 0; beta = 0.95; R = /(beta+0.0); sigma =.5; ab = 0; randn( state,); e = sw*randn(slong,); w = zeros(slong,); w() = wb+e(); for i = 2:slong; w(i)= rw*w(i-)+(-rw)*wb+e(i); end w=exp(w); a = zeros(slong,); c = zeros(slong,); lb = zeros(slong,); X = zeros(slong,6); a() = ass; rt = 0.2; sc = 0.; randn( state, ); ec = sc*randn(slong,); for i=:slong; X(i,:) = [ a(i) w(i) a(i)*a(i) w(i)*w(i) a(i)*w(i)]; c(i) = rt*a(i)+w(i)+ec(i); a = R*a(i)+w(i)-c(i); if a>ab; a(i+)=a; else a(i+)= ab; c(i) = R*a(i)+w(i)-ab; end end lb = c.^(-sigma); y = log(beta*r*lb(t)); b0 = X(T,:)\y iter=; while crit>tol; a = zeros(slong,); c = zeros(slong,); lb = zeros(slong,); X = zeros(slong,length(b0)); a() = 0; for i=:slong; X(i,:)= [ a(i) w(i) a(i)*a(i) w(i)*w(i) a(i)*w(i)]; 24

25 lb(i) = exp(x(i,:)*b0); a = R*a(i)+w(i)-lb(i)^(-/sigma); if a>ab; a(i+) = a; c(i) = lb(i).^(-./sigma); else a(i+) = ab; c(i) = R*a(i)+w(i)-ab; lb(i) = c(i)^(-sigma); end end y = log(beta*r*lb(t)); b = X(T,:)\y; b = gam*b+(-gam)*b0; crit = max(abs(b-b0)); b0 = b; disp(sprintf( Iteration: %d\tconv. crit.: %g,iter,crit)) iter=iter+; end; 25

26 26

27 Bibliography Marcet, A., Solving Nonlinear Stochastic Models by Parametrizing Expectations, mimeo, Carnegie Mellon University 988. and D.A. Marshall, Solving Nonlinear Rational Expectations Models by Parametrized Expectations : Convergence to Stationary Solutions, Manuscript, Universitat Pompeu Fabra, Barcelone 994. and G. Lorenzoni, The Parameterized Expectations Approach: Some Practical Issues, in M. Marimon and A. Scott, editors, Computational Methods for the Study of Dynamic Economies, Oxford: Oxford University Press,

28 Index Expectation function, 2 Interpolating function, Orthogonal polynomial, 6 28

29 Contents 8 Parameterized expectations algorithm 8. Basics A linear example Standard PEA solution: the Optimal Growth Model PEA and binding constraints: Optimal growth with irreversible investment The Households Problem With Borrowing Constraints

30 30

31 List of Figures 8. Capital decision rule Decision rules Typical investment path Consumption decision rule Wealth accumulation

32 32

33 List of Tables 8. Optimal growth: Parameterization Decision rule Optimal growth: Parameterization Decision rule Borrowing constraint: Parameterization Decision rule

Minimum Weighted Residual Methods

Minimum Weighted Residual Methods Lecture Notes 9 Minimum Weighted Residual Methods The minimum weighted residual method has been introduced in economics by Judd [1992]. As for the PEA algorithm, it may receive an interpretation in terms

More information

Technical appendices: Business cycle accounting for the Japanese economy using the parameterized expectations algorithm

Technical appendices: Business cycle accounting for the Japanese economy using the parameterized expectations algorithm Technical appendices: Business cycle accounting for the Japanese economy using the parameterized expectations algorithm Masaru Inaba November 26, 2007 Introduction. Inaba (2007a) apply the parameterized

More information

Parameterized Expectations Algorithm and the Moving Bounds

Parameterized Expectations Algorithm and the Moving Bounds Parameterized Expectations Algorithm and the Moving Bounds Lilia Maliar and Serguei Maliar Departamento de Fundamentos del Análisis Económico, Universidad de Alicante, Campus San Vicente del Raspeig, Ap.

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

Lecture XI. Approximating the Invariant Distribution

Lecture XI. Approximating the Invariant Distribution Lecture XI Approximating the Invariant Distribution Gianluca Violante New York University Quantitative Macroeconomics G. Violante, Invariant Distribution p. 1 /24 SS Equilibrium in the Aiyagari model G.

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

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

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

A Quick Introduction to Numerical Methods

A Quick Introduction to Numerical Methods Chapter 5 A Quick Introduction to Numerical Methods One of the main advantages of the recursive approach is that we can use the computer to solve numerically interesting models. There is a wide variety

More information

Projection Methods. Felix Kubler 1. October 10, DBF, University of Zurich and Swiss Finance Institute

Projection Methods. Felix Kubler 1. October 10, DBF, University of Zurich and Swiss Finance Institute Projection Methods Felix Kubler 1 1 DBF, University of Zurich and Swiss Finance Institute October 10, 2017 Felix Kubler Comp.Econ. Gerzensee, Ch5 October 10, 2017 1 / 55 Motivation In many dynamic economic

More information

Parameterized Expectations Algorithm: How to Solve for Labor Easily

Parameterized Expectations Algorithm: How to Solve for Labor Easily Computational Economics (2005) 25: 269 274 DOI: 10.1007/s10614-005-2224-9 C Springer 2005 Parameterized Expectations Algorithm: How to Solve for Labor Easily LILIA MALIAR and SERGUEI MALIAR Departmento

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

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

High-dimensional Problems in Finance and Economics. Thomas M. Mertens

High-dimensional Problems in Finance and Economics. Thomas M. Mertens High-dimensional Problems in Finance and Economics Thomas M. Mertens NYU Stern Risk Economics Lab April 17, 2012 1 / 78 Motivation Many problems in finance and economics are high dimensional. Dynamic Optimization:

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

Suggested Solutions to Homework #6 Econ 511b (Part I), Spring 2004

Suggested Solutions to Homework #6 Econ 511b (Part I), Spring 2004 Suggested Solutions to Homework #6 Econ 511b (Part I), Spring 2004 1. (a) Find the planner s optimal decision rule in the stochastic one-sector growth model without valued leisure by linearizing the Euler

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

Incomplete Markets, Heterogeneity and Macroeconomic Dynamics

Incomplete Markets, Heterogeneity and Macroeconomic Dynamics Incomplete Markets, Heterogeneity and Macroeconomic Dynamics Bruce Preston and Mauro Roca Presented by Yuki Ikeda February 2009 Preston and Roca (presenter: Yuki Ikeda) 02/03 1 / 20 Introduction Stochastic

More information

Lecture 6: Discrete-Time Dynamic Optimization

Lecture 6: Discrete-Time Dynamic Optimization Lecture 6: Discrete-Time Dynamic Optimization Yulei Luo Economics, HKU November 13, 2017 Luo, Y. (Economics, HKU) ECON0703: ME November 13, 2017 1 / 43 The Nature of Optimal Control In static optimization,

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

0 β t u(c t ), 0 <β<1,

0 β t u(c t ), 0 <β<1, Part 2 1. Certainty-Equivalence Solution Methods Consider the model we dealt with previously, but now the production function is y t = f(k t,z t ), where z t is a stochastic exogenous variable. For example,

More information

News-Shock Subroutine for Prof. Uhlig s Toolkit

News-Shock Subroutine for Prof. Uhlig s Toolkit News-Shock Subroutine for Prof. Uhlig s Toolkit KENGO NUTAHARA Graduate School of Economics, University of Tokyo, and the JSPS Research Fellow ee67003@mail.ecc.u-tokyo.ac.jp Revised: October 23, 2007 (Fisrt

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 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

TAKEHOME FINAL EXAM e iω e 2iω e iω e 2iω

TAKEHOME FINAL EXAM e iω e 2iω e iω e 2iω ECO 513 Spring 2015 TAKEHOME FINAL EXAM (1) Suppose the univariate stochastic process y is ARMA(2,2) of the following form: y t = 1.6974y t 1.9604y t 2 + ε t 1.6628ε t 1 +.9216ε t 2, (1) where ε is i.i.d.

More information

Parameterized Expectations Algorithm

Parameterized Expectations Algorithm Parameterized Expectations Algorithm Wouter J. Den Haan London School of Economics c by Wouter J. Den Haan Overview Two PEA algorithms Explaining stochastic simulations PEA Advantages and disadvantages

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

Solution Methods. Jesús Fernández-Villaverde. University of Pennsylvania. March 16, 2016

Solution Methods. Jesús Fernández-Villaverde. University of Pennsylvania. March 16, 2016 Solution Methods Jesús Fernández-Villaverde University of Pennsylvania March 16, 2016 Jesús Fernández-Villaverde (PENN) Solution Methods March 16, 2016 1 / 36 Functional equations A large class of problems

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

ECOM 009 Macroeconomics B. Lecture 3

ECOM 009 Macroeconomics B. Lecture 3 ECOM 009 Macroeconomics B Lecture 3 Giulio Fella c Giulio Fella, 2014 ECOM 009 Macroeconomics B - Lecture 3 84/197 Predictions of the PICH 1. Marginal propensity to consume out of wealth windfalls 0.03.

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

Lecture 4: Dynamic Programming

Lecture 4: Dynamic Programming Lecture 4: Dynamic Programming Fatih Guvenen January 10, 2016 Fatih Guvenen Lecture 4: Dynamic Programming January 10, 2016 1 / 30 Goal Solve V (k, z) =max c,k 0 u(c)+ E(V (k 0, z 0 ) z) c + k 0 =(1 +

More information

Estimating Deep Parameters: GMM and SMM

Estimating Deep Parameters: GMM and SMM Estimating Deep Parameters: GMM and SMM 1 Parameterizing a Model Calibration Choose parameters from micro or other related macro studies (e.g. coeffi cient of relative risk aversion is 2). SMM with weighting

More information

Lecture 3: Dynamics of small open economies

Lecture 3: Dynamics of small open economies Lecture 3: Dynamics of small open economies Open economy macroeconomics, Fall 2006 Ida Wolden Bache September 5, 2006 Dynamics of small open economies Required readings: OR chapter 2. 2.3 Supplementary

More information

Solving Deterministic Models

Solving Deterministic Models Solving Deterministic Models Shanghai Dynare Workshop Sébastien Villemot CEPREMAP October 27, 2013 Sébastien Villemot (CEPREMAP) Solving Deterministic Models October 27, 2013 1 / 42 Introduction Deterministic

More information

Dynare Class on Heathcote-Perri JME 2002

Dynare Class on Heathcote-Perri JME 2002 Dynare Class on Heathcote-Perri JME 2002 Tim Uy University of Cambridge March 10, 2015 Introduction Solving DSGE models used to be very time consuming due to log-linearization required Dynare is a collection

More information

DYNAMIC LECTURE 5: DISCRETE TIME INTERTEMPORAL OPTIMIZATION

DYNAMIC LECTURE 5: DISCRETE TIME INTERTEMPORAL OPTIMIZATION DYNAMIC LECTURE 5: DISCRETE TIME INTERTEMPORAL OPTIMIZATION UNIVERSITY OF MARYLAND: ECON 600. Alternative Methods of Discrete Time Intertemporal Optimization We will start by solving a discrete time intertemporal

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

Lecture 1: Dynamic Programming

Lecture 1: Dynamic Programming Lecture 1: Dynamic Programming Fatih Guvenen November 2, 2016 Fatih Guvenen Lecture 1: Dynamic Programming November 2, 2016 1 / 32 Goal Solve V (k, z) =max c,k 0 u(c)+ E(V (k 0, z 0 ) z) c + k 0 =(1 +

More information

Lecture 3: Huggett s 1993 model. 1 Solving the savings problem for an individual consumer

Lecture 3: Huggett s 1993 model. 1 Solving the savings problem for an individual consumer UNIVERSITY OF WESTERN ONTARIO LONDON ONTARIO Paul Klein Office: SSC 4044 Extension: 85484 Email: pklein2@uwo.ca URL: http://paulklein.ca/newsite/teaching/619.php Economics 9619 Computational methods in

More information

MA Advanced Macroeconomics: Solving Models with Rational Expectations

MA Advanced Macroeconomics: Solving Models with Rational Expectations MA Advanced Macroeconomics: Solving Models with Rational Expectations Karl Whelan School of Economics, UCD February 6, 2009 Karl Whelan (UCD) Models with Rational Expectations February 6, 2009 1 / 32 Moving

More information

Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models

Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models Eric Sims University of Notre Dame Spring 2011 This note describes very briefly how to conduct quantitative analysis on a linearized

More information

Macroeconomic Theory II Homework 2 - Solution

Macroeconomic Theory II Homework 2 - Solution Macroeconomic Theory II Homework 2 - Solution Professor Gianluca Violante, TA: Diego Daruich New York University Spring 204 Problem The household has preferences over the stochastic processes of a single

More information

Economics 2010c: Lectures 9-10 Bellman Equation in Continuous Time

Economics 2010c: Lectures 9-10 Bellman Equation in Continuous Time Economics 2010c: Lectures 9-10 Bellman Equation in Continuous Time David Laibson 9/30/2014 Outline Lectures 9-10: 9.1 Continuous-time Bellman Equation 9.2 Application: Merton s Problem 9.3 Application:

More information

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane. Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 3 Lecture 3 3.1 General remarks March 4, 2018 This

More information

Deterministic Models

Deterministic Models Deterministic Models Perfect foreight, nonlinearities and occasionally binding constraints Sébastien Villemot CEPREMAP June 10, 2014 Sébastien Villemot (CEPREMAP) Deterministic Models June 10, 2014 1 /

More information

Assessing Structural VAR s

Assessing Structural VAR s ... Assessing Structural VAR s by Lawrence J. Christiano, Martin Eichenbaum and Robert Vigfusson Zurich, September 2005 1 Background Structural Vector Autoregressions Address the Following Type of Question:

More information

1 Computing the Invariant Distribution

1 Computing the Invariant Distribution LECTURE NOTES ECO 613/614 FALL 2007 KAREN A. KOPECKY 1 Computing the Invariant Distribution Suppose an individual s state consists of his current assets holdings, a [a, ā] and his current productivity

More information

Econ 504, Lecture 1: Transversality and Stochastic Lagrange Multipliers

Econ 504, Lecture 1: Transversality and Stochastic Lagrange Multipliers ECO 504 Spring 2009 Chris Sims Econ 504, Lecture 1: Transversality and Stochastic Lagrange Multipliers Christopher A. Sims Princeton University sims@princeton.edu February 4, 2009 0 Example: LQPY The ordinary

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

Additional Material for Estimating the Technology of Cognitive and Noncognitive Skill Formation (Cuttings from the Web Appendix)

Additional Material for Estimating the Technology of Cognitive and Noncognitive Skill Formation (Cuttings from the Web Appendix) Additional Material for Estimating the Technology of Cognitive and Noncognitive Skill Formation (Cuttings from the Web Appendix Flavio Cunha The University of Pennsylvania James Heckman The University

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

The Metropolis-Hastings Algorithm. June 8, 2012

The Metropolis-Hastings Algorithm. June 8, 2012 The Metropolis-Hastings Algorithm June 8, 22 The Plan. Understand what a simulated distribution is 2. Understand why the Metropolis-Hastings algorithm works 3. Learn how to apply the Metropolis-Hastings

More information

Math Camp Notes: Everything Else

Math Camp Notes: Everything Else Math Camp Notes: Everything Else Systems of Dierential Equations Consider the general two-equation system of dierential equations: Steady States ẋ = f(x, y ẏ = g(x, y Just as before, we can nd the steady

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

Dynamic Problem Set 1 Solutions

Dynamic Problem Set 1 Solutions Dynamic Problem Set 1 Solutions Jonathan Kreamer July 15, 2011 Question 1 Consider the following multi-period optimal storage problem: An economic agent imizes: c t} T β t u(c t ) (1) subject to the period-by-period

More information

Lecture 7: Stochastic Dynamic Programing and Markov Processes

Lecture 7: Stochastic Dynamic Programing and Markov Processes Lecture 7: Stochastic Dynamic Programing and Markov Processes Florian Scheuer References: SLP chapters 9, 10, 11; LS chapters 2 and 6 1 Examples 1.1 Neoclassical Growth Model with Stochastic Technology

More information

Assumption 5. The technology is represented by a production function, F : R 3 + R +, F (K t, N t, A t )

Assumption 5. The technology is represented by a production function, F : R 3 + R +, F (K t, N t, A t ) 6. Economic growth Let us recall the main facts on growth examined in the first chapter and add some additional ones. (1) Real output (per-worker) roughly grows at a constant rate (i.e. labor productivity

More information

2. What is the fraction of aggregate savings due to the precautionary motive? (These two questions are analyzed in the paper by Ayiagari)

2. What is the fraction of aggregate savings due to the precautionary motive? (These two questions are analyzed in the paper by Ayiagari) University of Minnesota 8107 Macroeconomic Theory, Spring 2012, Mini 1 Fabrizio Perri Stationary equilibria in economies with Idiosyncratic Risk and Incomplete Markets We are now at the point in which

More information

GMM and SMM. 1. Hansen, L Large Sample Properties of Generalized Method of Moments Estimators, Econometrica, 50, p

GMM and SMM. 1. Hansen, L Large Sample Properties of Generalized Method of Moments Estimators, Econometrica, 50, p GMM and SMM Some useful references: 1. Hansen, L. 1982. Large Sample Properties of Generalized Method of Moments Estimators, Econometrica, 50, p. 1029-54. 2. Lee, B.S. and B. Ingram. 1991 Simulation estimation

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

Getting to page 31 in Galí (2008)

Getting to page 31 in Galí (2008) Getting to page 31 in Galí 2008) H J Department of Economics University of Copenhagen December 4 2012 Abstract This note shows in detail how to compute the solutions for output inflation and the nominal

More information

MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations

MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations MA Advanced Macroeconomics: 6. Solving Models with Rational Expectations Karl Whelan School of Economics, UCD Spring 2016 Karl Whelan (UCD) Models with Rational Expectations Spring 2016 1 / 36 Moving Beyond

More information

Introduction to Real Business Cycles: The Solow Model and Dynamic Optimization

Introduction to Real Business Cycles: The Solow Model and Dynamic Optimization Introduction to Real Business Cycles: The Solow Model and Dynamic Optimization Vivaldo Mendes a ISCTE IUL Department of Economics 24 September 2017 (Vivaldo M. Mendes ) Macroeconomics (M8674) 24 September

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

Simple Consumption / Savings Problems (based on Ljungqvist & Sargent, Ch 16, 17) Jonathan Heathcote. updated, March The household s problem X

Simple Consumption / Savings Problems (based on Ljungqvist & Sargent, Ch 16, 17) Jonathan Heathcote. updated, March The household s problem X Simple Consumption / Savings Problems (based on Ljungqvist & Sargent, Ch 16, 17) subject to for all t Jonathan Heathcote updated, March 2006 1. The household s problem max E β t u (c t ) t=0 c t + a t+1

More information

1 With state-contingent debt

1 With state-contingent debt STOCKHOLM DOCTORAL PROGRAM IN ECONOMICS Helshögskolan i Stockholm Stockholms universitet Paul Klein Email: paul.klein@iies.su.se URL: http://paulklein.se/makro2.html Macroeconomics II Spring 2010 Lecture

More information

Assessing Structural VAR s

Assessing Structural VAR s ... Assessing Structural VAR s by Lawrence J. Christiano, Martin Eichenbaum and Robert Vigfusson Columbia, October 2005 1 Background Structural Vector Autoregressions Can be Used to Address the Following

More information

Solving nonlinear dynamic stochastic models: An algorithm computing value function by simulations

Solving nonlinear dynamic stochastic models: An algorithm computing value function by simulations Economics Letters 87 (2005) 135 10 www.elsevier.com/locate/econbase Solving nonlinear dynamic stochastic models: An algorithm computing value function by simulations Lilia Maliar, Serguei Maliar* Departamento

More information

Discrete State Space Methods for Dynamic Economies

Discrete State Space Methods for Dynamic Economies Discrete State Space Methods for Dynamic Economies A Brief Introduction Craig Burnside Duke University September 2006 Craig Burnside (Duke University) Discrete State Space Methods September 2006 1 / 42

More information

Session 4: Money. Jean Imbs. November 2010

Session 4: Money. Jean Imbs. November 2010 Session 4: Jean November 2010 I So far, focused on real economy. Real quantities consumed, produced, invested. No money, no nominal in uences. I Now, introduce nominal dimension in the economy. First and

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

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

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

Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework

Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework Solving a Dynamic (Stochastic) General Equilibrium Model under the Discrete Time Framework Dongpeng Liu Nanjing University Sept 2016 D. Liu (NJU) Solving D(S)GE 09/16 1 / 63 Introduction Targets of the

More information

Lecture 2 The Centralized Economy: Basic features

Lecture 2 The Centralized Economy: Basic features Lecture 2 The Centralized Economy: Basic features Leopold von Thadden University of Mainz and ECB (on leave) Advanced Macroeconomics, Winter Term 2013 1 / 41 I Motivation This Lecture introduces the basic

More information

University of Warwick, EC9A0 Maths for Economists Lecture Notes 10: Dynamic Programming

University of Warwick, EC9A0 Maths for Economists Lecture Notes 10: Dynamic Programming University of Warwick, EC9A0 Maths for Economists 1 of 63 University of Warwick, EC9A0 Maths for Economists Lecture Notes 10: Dynamic Programming Peter J. Hammond Autumn 2013, revised 2014 University of

More information

Technological transfers, limited commitment and growth

Technological transfers, limited commitment and growth Technological transfers, limited commitment and growth Alexandre Dmitriev Universitat Autònoma de Barcelona January 30, 2006 Abstract This paper examines the effect on economic growth and welfare of the

More information

Learning in Macroeconomic Models

Learning in Macroeconomic Models Learning in Macroeconomic Models Wouter J. Den Haan London School of Economics c by Wouter J. Den Haan Overview A bit of history of economic thought How expectations are formed can matter in the long run

More information

Macroeconomics I. University of Tokyo. Lecture 13

Macroeconomics I. University of Tokyo. Lecture 13 Macroeconomics I University of Tokyo Lecture 13 The Neo-Classical Growth Model II: Distortionary Taxes LS Chapter 11. Julen Esteban-Pretel National Graduate Institute for Policy Studies Environment! Time

More information

Decentralised economies I

Decentralised economies I Decentralised economies I Martin Ellison 1 Motivation In the first two lectures on dynamic programming and the stochastic growth model, we solved the maximisation problem of the representative agent. More

More information

HOMEWORK #3 This homework assignment is due at NOON on Friday, November 17 in Marnix Amand s mailbox.

HOMEWORK #3 This homework assignment is due at NOON on Friday, November 17 in Marnix Amand s mailbox. Econ 50a second half) Yale University Fall 2006 Prof. Tony Smith HOMEWORK #3 This homework assignment is due at NOON on Friday, November 7 in Marnix Amand s mailbox.. This problem introduces wealth inequality

More information

Dynamic Optimization Using Lagrange Multipliers

Dynamic Optimization Using Lagrange Multipliers Dynamic Optimization Using Lagrange Multipliers Barbara Annicchiarico barbara.annicchiarico@uniroma2.it Università degli Studi di Roma "Tor Vergata" Presentation #2 Deterministic Infinite-Horizon Ramsey

More information

An Introduction to Perturbation Methods in Macroeconomics. Jesús Fernández-Villaverde University of Pennsylvania

An Introduction to Perturbation Methods in Macroeconomics. Jesús Fernández-Villaverde University of Pennsylvania An Introduction to Perturbation Methods in Macroeconomics Jesús Fernández-Villaverde University of Pennsylvania 1 Introduction Numerous problems in macroeconomics involve functional equations of the form:

More information

Economic Growth: Lecture 9, Neoclassical Endogenous Growth

Economic Growth: Lecture 9, Neoclassical Endogenous Growth 14.452 Economic Growth: Lecture 9, Neoclassical Endogenous Growth Daron Acemoglu MIT November 28, 2017. Daron Acemoglu (MIT) Economic Growth Lecture 9 November 28, 2017. 1 / 41 First-Generation Models

More information

Lecture XII. Solving for the Equilibrium in Models with Idiosyncratic and Aggregate Risk

Lecture XII. Solving for the Equilibrium in Models with Idiosyncratic and Aggregate Risk Lecture XII Solving for the Equilibrium in Models with Idiosyncratic and Aggregate Risk Gianluca Violante New York University Quantitative Macroeconomics G. Violante, Idiosyncratic and Aggregate Risk p.

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 Recursive Competitive Equilibrium

1 Recursive Competitive Equilibrium Feb 5th, 2007 Let s write the SPP problem in sequence representation: max {c t,k t+1 } t=0 β t u(f(k t ) k t+1 ) t=0 k 0 given Because of the INADA conditions we know that the solution is interior. So

More information

In the Ramsey model we maximized the utility U = u[c(t)]e nt e t dt. Now

In the Ramsey model we maximized the utility U = u[c(t)]e nt e t dt. Now PERMANENT INCOME AND OPTIMAL CONSUMPTION On the previous notes we saw how permanent income hypothesis can solve the Consumption Puzzle. Now we use this hypothesis, together with assumption of rational

More information

An approximate consumption function

An approximate consumption function An approximate consumption function Mario Padula Very Preliminary and Very Incomplete 8 December 2005 Abstract This notes proposes an approximation to the consumption function in the buffer-stock model.

More information

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING James Bullard* Federal Reserve Bank of St. Louis 33rd Annual Economic Policy Conference St. Louis, MO October 17, 2008 Views expressed are

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

Spring 2017 Econ 574 Roger Koenker. Lecture 14 GEE-GMM

Spring 2017 Econ 574 Roger Koenker. Lecture 14 GEE-GMM University of Illinois Department of Economics Spring 2017 Econ 574 Roger Koenker Lecture 14 GEE-GMM Throughout the course we have emphasized methods of estimation and inference based on the principle

More information

Lecture 2 The Centralized Economy

Lecture 2 The Centralized Economy Lecture 2 The Centralized Economy Economics 5118 Macroeconomic Theory Kam Yu Winter 2013 Outline 1 Introduction 2 The Basic DGE Closed Economy 3 Golden Rule Solution 4 Optimal Solution The Euler Equation

More information

Lecture 15 Real Business Cycle Model. Noah Williams

Lecture 15 Real Business Cycle Model. Noah Williams Lecture 15 Real Business Cycle Model Noah Williams University of Wisconsin - Madison Economics 702/312 Real Business Cycle Model We will have a shock: change in technology. Then we will have a propagation

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

Econometrics of Panel Data

Econometrics of Panel Data Econometrics of Panel Data Jakub Mućk Meeting # 6 Jakub Mućk Econometrics of Panel Data Meeting # 6 1 / 36 Outline 1 The First-Difference (FD) estimator 2 Dynamic panel data models 3 The Anderson and Hsiao

More information

Using Theory to Identify Transitory and Permanent Income Shocks: A Review of the Blundell-Preston Approach

Using Theory to Identify Transitory and Permanent Income Shocks: A Review of the Blundell-Preston Approach Using Theory to Identify Transitory and Permanent Income Shocks: A Review of the Blundell-Preston Approach October 12, 2004 1 Introduction Statements on changes in income inequality based on the cross-sectional

More information

Monetary Economics: Problem Set #4 Solutions

Monetary Economics: Problem Set #4 Solutions Monetary Economics Problem Set #4 Monetary Economics: Problem Set #4 Solutions This problem set is marked out of 100 points. The weight given to each part is indicated below. Please contact me asap if

More information