← Tutti i manuali di Economics

Economics · Business Cycles Theory and Policy

Business Cycles Theory and Policy

From empirical business-cycle facts to the Real Business Cycle model: households, firms, equilibrium, calibration, solution methods and economic shocks.

8capitoli
63sezioni
Come studiareCerca un argomento oppure apri un capitolo dall’indice. I titoli ti portano direttamente alla spiegazione corretta.

7. Solving the linear rational-expectations model

Introduction

Solving a forward-looking linear model means finding expectations and decision rules consistent with every equilibrium condition. Unlike a static linear system, arbitrary algebraic solutions are not equally admissible: the selected process must be stable and respect the predetermined state variables.

The method of undetermined coefficients conjectures policy functions linear in the beginning-of-period capital stock and observed technology. Substitution into the log-linearized Euler, labor, production and resource equations identifies coefficient restrictions. The stable root is selected to obtain the economically relevant recursive equilibrium.

The same linear rational-expectations system can be expressed in Harald Uhlig's matrix-based toolkit and implemented numerically in Matlab or Dynare. These computational environments solve for response coefficients, assess dynamic stability and generate model-implied statistical moments.

Integrated theoretical explanation

Log-linear equilibrium equations are not yet a complete economic solution because they include expectations about variables at future dates. A recursive equilibrium expresses current decisions as functions of states known when those decisions are made. In the RBC benchmark, the key states are installed capital from the previous period and the current technology state. Installed capital is predetermined by earlier investment; technology is exogenous but observed within the period. Consumption, hours and the choice of new capital adjust to these states according to decision rules that must satisfy both current and expected future equilibrium conditions.

The method of undetermined coefficients starts by proposing linear policy functions. For example, write k̂ₜ = λkk k̂ₜ₋₁ + λkz ẑₜ, with analogous expressions for consumption, output and labor. The coefficients are initially unknown, but linearity suggests that any stable first-order solution can be represented in this form. These equations have an immediate economic interpretation: one coefficient describes the effect of inheriting an additional unit of capital relative to the steady state; the other describes the effect of a higher productivity state when inherited capital is held fixed.

Substitute the proposed rules into production, the labor condition, the resource constraint and the forward-looking Euler condition. Because the technology state itself obeys ẑₜ₊₁ = ρẑₜ + uₜ₊₁, rational expectations can be computed using the conditional mean of future shocks. Collect all terms involving k̂ₜ₋₁ and all terms involving ẑₜ. For the identities to hold for every possible state combination, each corresponding coefficient must satisfy a separate algebraic restriction. The resulting nonlinear equations in the λ coefficients are solved together, and the economically admissible stable branch is selected.

Stability matters because the model contains a predetermined asset and forward-looking choices. An algebraic root that causes the state vector to explode under small disturbances may violate the transversality conditions of the household problem and fail to describe a reasonable equilibrium around steady state. A stable solution lets the economy converge after temporary shocks when the underlying exogenous process is stationary. This is not merely a preference for smooth-looking graphs: it is the dynamic consistency requirement connecting optimal saving, expected returns and the time path of accumulated capital.

The calibrated decision coefficients make the economic responses concrete. In the reported numerical example, k̂ₜ ≈ 0.95k̂ₜ₋₁ + 0.15ẑₜ, while ĉₜ ≈ 0.53k̂ₜ₋₁ + 0.45ẑₜ and ŷₜ ≈ 0.05k̂ₜ₋₁ + 1.97ẑₜ. Labor responds approximately as n̂ₜ ≈ −0.48k̂ₜ₋₁ + 1.52ẑₜ, and investment has a much stronger technology loading. These are local responses based on the particular calibration, not general coefficients that should be transplanted into any economy.

Uhlig's toolkit provides a matrix representation of the same system. Endogenous state variables, non-state controls and exogenous shocks are separated into vectors. Static equations link contemporaneous and lagged states to controls, while expectational equations include future values. Solving the matrix system produces coefficient matrices P and Q for the endogenous state transition and R and S for the remaining control variables. This approach scales to models with more variables than can comfortably be solved by hand and gives numerical diagnostics, including candidate roots, stability information and model moments.

The practical computer workflow follows the same conceptual sequence as the hand derivation: choose parameter values, calculate the deterministic steady state, declare the ordering of variables, construct equation matrices, verify their dimensions and call the solver. Output matrices must be interpreted against the declared variable order; swapping consumption and investment in a software vector can make otherwise correct numbers economically meaningless. The examples also show how a calibration can be used to obtain autocorrelations and standard deviations after filtering simulated data.

Dynare is an alternative environment for specifying and solving dynamic stochastic general-equilibrium systems. Rather than treating a software package as a source of economic assumptions, the researcher supplies the equations, calibrated or estimated parameters, shock process and requested analyses. The quality of the outcome still depends on whether the equations are correctly timed and whether the steady state and equilibrium structure are coherent. Numerical software is an implementation of a mathematical model, not a substitute for specifying the model or interpreting its results.

Formal framework and essential relationships

k̂t=λkkk̂t−1+λkzẑt

The endogenous state evolves according to inherited capital and the current productivity state. Its response coefficients emerge by substituting the conjectured laws into the equilibrium system.

ĉt=λckk̂t−1+λczẑt,ŷt=λykk̂t−1+λyzẑt

Consumption and output are controls that move immediately in response to the states. Similar equations characterize labor and investment.

Endogenous variableLoading on k̂ₜ₋₁Loading on ẑₜ
Capital, k̂ₜ0.950.15
Consumption, ĉₜ0.530.45
Output, ŷₜ0.051.97
Hours, n̂ₜ−0.481.52
Investment, îₜ−1.406.52

The policy-function coefficients are displayed in rounded form for readability. A numerical matrix implementation can report additional decimal places, so minor rounding differences do not indicate a different model.

𝐱t=P𝐱t−1+Q𝐳t,𝐲t=R𝐱t−1+S𝐳t

Uhlig’s solution uses a matrix law for states x and controls y, with exogenous technology z. The transition eigenvalues and estimated matrices show whether the selected equilibrium is stable.

Explanations, derivations and empirical applications

Linear System Of Equations

0=Et[βαy‾k‾(ŷt+1−k̂t)+ĉt−ĉt+1]0=−ĉt+ŷt−n̂t0=−y‾ŷt+c‾ĉt+k‾k̂t−(1−δ)k‾k̂t−10=−ŷt+ẑt+(1−α)n̂t+αk̂t−1ẑt=ρẑt−1+ut

Method Of Undetermined Coefficients

Installed capital and current productivity are the state variables. Conjecture linear decision rules:

ŷt=λykk̂t−1+λyzẑtk̂t=λkkk̂t−1+λkzẑtĉt=λckk̂t−1+λczẑtn̂t=λnkk̂t−1+λnzẑt

Eliminate output and labor to reduce the model to capital, consumption and technology:

0=−k̂t+a1k̂t−1−a2ĉt+a3ẑt0=Et[ĉt+a4k̂t−a5ĉt+1+a6ẑt+1]ẑt=ρẑt−1+uta1=y‾k‾+1−δ,a3=y‾αk‾,a2=c‾k‾+(1−α)a3a4=0,a6=βy‾k‾,a5=1+(1−α)a6

Substitute the conjectured capital and consumption rules and use the conditional expectation of productivity:

Etẑt+1=ρẑt0=(−λkk+a1−a2λck)k̂t−1+(−λkz−a2λcz+a3)ẑt0=(λck+a4λkk−a5λckλkk)k̂t−1+(λcz+a4λkz−a5λckλkz−a5λczρ+a6ρ)ẑt

Next Steps

The forward-looking consumption rule must be evaluated using next period’s endogenous capital state:

Etĉt+1=λckk̂t+λczρẑt0=ĉt+(a4−a5λck)k̂t+(−a5λcz+a6)ρẑt

Substitute the capital and consumption rules again, then collect the coefficients on inherited capital and current technology separately.

Comparing Coefficients

0=−λkk+a1−a2λck,0=λck+a4λkk−a5λckλkk0=λkk2−(a1−a2a4a5+1a5)λkk+a1a5λkk=12[B±B2−4a1/a5],B=a1−a2a4a5+1a5λck=a1−λkka2

Choose the economically admissible stable root. If the absolute product of the two roots exceeds one, at most one can lie strictly inside the unit circle.

0=−λkz−a2λcz+a30=λcz+a4λkz−a5λckλkz−a5λczρ+a6ρλcz=(a4−a5λck)a3+a6ρa4a2−a5λcka2+a5ρ−1λkz=a3−a2λcz

These restrictions follow from matching the coefficient on current productivity, independently of the coefficient on lagged capital.

Calibrated policy functions

VariableLoading on inherited capitalLoading on productivity
Capital0.950.15
Consumption0.530.45
Output0.051.97
Hours−0.481.52
Investment−1.406.52

Rounded illustrative coefficients describe local responses in log deviations.

Uhlig’s Toolkit

The matrix representation distinguishes equations that hold within a period from equations that contain expectations of future decisions. This separation allows a general numerical solution with state and control vectors.

0=Axt+Bxt−1+Cyt+Dzt0=Et[Fxt+1+Gxt+Hxt−1+Jyt+1+Kyt+Lzt+1+Mzt]zt+1=Nzt+ut+1

The vectors distinguish endogenous states x, other endogenous variables y and exogenous states z. Matrix dimensions and rank conditions must be compatible with the equation and variable counts; the selected solution must respect the predetermined states and stability requirements.

Solution

A stable recursive representation maps predetermined capital and current productivity into optimal control decisions. Its coefficients and matrix roots must satisfy the dynamic equilibrium equations and the timing of endogenous states.

The matrix solution has the recursive form xₜ = Pxₜ₋₁ + Qzₜ for endogenous states and yₜ = Rxₜ₋₁ + Szₜ for other endogenous variables. The matrices summarize how predetermined states and exogenous disturbances determine current allocations. Once they are known, impulse responses and stochastic simulations follow from repeated application of these transition laws.

Log-linearized System Of Equations

0=Et[βαy‾k‾(ŷt+1−k̂t)+ĉt−ĉt+1]0=−ĉt+ŷt−n̂t0=−y‾ŷt+c‾ĉt+k‾k̂t−(1−δ)k‾k̂t−10=−ŷt+ẑt+(1−α)n̂t+αk̂t−1ẑt=ρẑt−1+ut0=k‾k̂t−i‾ît−(1−δ)k‾k̂t−1

Uhlig’s Toolkit

0=Axt+Bxt−1+Cyt+Dzt0=Et[Fxt+1+Gxt+Hxt−1+Jyt+1+Kyt+Lzt+1+Mzt]zt+1=Nzt+ut+1xt=k̂t,zt=ẑt,yt=[ĉtŷtn̂tît]⊤

The first block contains labor, resource, production and accumulation equations; the second contains the Euler equation; the final block is the exogenous transition.

Applying The Toolkit

For the four-control representation, the expectational matrices in the Euler block are:

G=−βαy‾k‾,J=[−1βαy‾/k‾00],K=[1000]F=H=L=M=0 A=[0k‾0k‾],B=[0−(1−δ)k‾α−(1−δ)k‾]C=[−11−10c‾−y‾000−11−α0000−i‾],D=[0010]

Rows correspond respectively to labor equilibrium, resources, production and capital accumulation; controls are ordered as consumption, output, labor and investment.

Numerical implementation

This implementation adds the gross capital return to the control vector, so its matrices differ in dimension from the four-control representation above. Keep this ordering consistent when interpreting numerical output. The variable named “interest” is the gross return r + 1 − δ.

% Quarterly RBC calibration
alpha = 0.36;
delta = 0.0225;
betta = 0.99;
rho_z = 0.95;
sigma_eps = 0.007;
N_bar = 1/3;
Z_bar = 1;

% Deterministic steady state
R_bar = 1/betta;  % Gross return, rental return plus 1-delta
YK_bar = (R_bar + delta - 1)/alpha;
K_bar = (YK_bar/Z_bar)^(1/(alpha-1))*N_bar;
I_bar = delta*K_bar;
Y_bar = YK_bar*K_bar;
C_bar = Y_bar-I_bar;
phi = (1-alpha)*Y_bar/(N_bar*C_bar);

% State: capital. Controls: consumption, output, labor,
% gross return, investment. Exogenous state: technology.
VARNAMES = char('capital','consumption','output','labor', ...
                'interest','investment','technology');
AA = [0; -K_bar; 0; 0; 0];
BB = [0; (1-delta)*K_bar; alpha; 0; -alpha*YK_bar];
CC = [-C_bar, Y_bar, 0, 0, -I_bar;
       0, 0, 0, 0, I_bar;
       0, -1, 1-alpha, 0, 0;
      -1, 1, -1, 0, 0;
       0, alpha*YK_bar, 0, -R_bar, 0];
DD = [0; 0; 1; 0; 0];
FF = 0; GG = 0; HH = 0;
JJ = [-1, 0, 0, 1, 0];
KK = [1, 0, 0, 0, 0];
LL = 0; MM = 0;
NN = rho_z;
Sigma = sigma_eps^2;
[l_equ,m_states] = size(AA);
[~,n_endog] = size(CC);
[~,k_exog] = size(DD);

% Analysis options for the toolkit
PERIOD = 4;
GNP_INDEX = 3;
IMP_SELECT = 1:7;
DO_SIMUL = 0;
DO_MOMENTS = 1;
HP_SELECT = 1:(m_states+n_endog+k_exog);
% With the toolkit on the MATLAB path, invoke its driver:
% do_it;

The coefficient matrices are reconstructed from the equilibrium equations. The rounded discount factor is set to 0.99, so ratios calculated from the code can differ slightly from calibration targets stated with fewer decimal places.

Calling The Toolkit

In a computational implementation, the researcher must make the model file and solver accessible to the numerical environment, supply the equilibrium matrices and run the routine. The economic content is in the model equations and parameter choices, not in the computer’s directory path. Output should be checked for consistency with the stated variable ordering and for stable roots.

Toolkit Output

The endogenous state is capital; the exogenous state is technology. Candidate transition roots and the selected stable root are:

RootAbsolute valueSelection
0.945740.94574Stable root
1.06811.0681Excluded unstable root
k̂t=0.94574k̂t−1+0.14719ẑt
ControlLoading on inherited capital (R)Loading on productivity (S)
Consumption0.534040.45562
Output0.0505941.9678
Labor−0.483451.5122
Gross return−0.0306420.063510
Investment−1.41176.5418

These coefficients correspond to the five-control numerical representation and the stated variable ordering.

Cross-correlations of HP-filtered model series with output. Column j reports corr(vₜ₊ⱼ, Yₜ). Negative j compares past v with current output; positive j compares future v with current output.

Variable-5-4-3-2-1012345
Capital-0.48-0.42-0.32-0.160.050.340.530.630.670.660.62
Consumption-0.26-0.140.020.240.520.870.770.660.540.420.31
Output-0.020.110.270.470.711.000.710.470.270.11-0.02
Labor0.070.190.340.520.740.980.650.380.16-0.01-0.14
Gross return0.110.230.370.540.740.970.610.330.10-0.07-0.19
Investment0.040.170.320.510.730.990.670.410.190.02-0.10
Technology-0.010.110.280.480.721.000.710.460.260.10-0.03
VariableStandard deviation of HP-filtered log deviations
Capital0.0046439
Consumption0.0049190
Output0.017925
Labor0.013857
Gross return0.00058974
Investment0.059646
Technology0.0091035

Values are in log-deviation units. Multiplication by 100 expresses their approximate percentage-point scale.

Dynare

Dynare is a computational framework for specifying, approximating and simulating dynamic stochastic general-equilibrium models. It automates parts of the numerical solution but still requires correctly timed equilibrium equations, a valid steady state, suitable parameter values and an explicit shock process. Its output should be interpreted as the solution of the economic model supplied by the researcher.

Synthesis

Stable rational-expectations solutions generate recursively usable decision rules, implementable via manual coefficient matching or computational toolkits.

Torna all’inizio ↑

Ripetizioni personalizzate · Da 15€/h

Un dubbio da chiarire?
Studiamolo insieme.

Offro lezioni personalizzate per studenti delle superiori e dell’università: spiegazioni chiare, esercizi guidati e un metodo costruito sulle tue esigenze. Scopri le materie e le tariffe, oppure prenota una lezione per lavorare sul tuo programma.