State-Space Representation

state-spacedsgekalman-filtervarinnovations-representationdynamic-factor-modelscoring-algorithmtime-varying-parameterprobitnonlinear-filter

Definition

A state-space representation (A,B,C,D)(A,B,C,D) expresses the equilibrium of a linear (or linearized) dynamic stochastic economic model as a system in which unobserved states xtx_t evolve via a first-order recursion driven by economic shocks wtw_t, and observables yty_t are a linear combination of states and shocks. It is the canonical form connecting dynamic stochastic general equilibrium (DSGE) theory to empirical time-series objects including vector autoregressions (VARs).

Key Ideas

How It Works

Economic Model State-Space (A,B,C,D)(A,B,C,D)

xt+1=Axt+Bwt(1)x_{t+1} = A x_t + B w_t \tag{1} yt=Cxt+Dwt(2)y_t = C x_t + D w_t \tag{2}

where wtN(0,Im)w_t \sim \mathcal{N}(0, I_m) is a vector of mm orthogonal economic shocks, xtRnx_t \in \mathbb{R}^n is the (possibly unobserved) state, and ytRky_t \in \mathbb{R}^k is the vector of observables. Matrix dimensions: AA is n×nn\times n, BB is n×mn\times m, CC is k×nk\times n, DD is k×mk\times m.

The impulse response of the economic model is directly readable from (A,B,C,D)(A,B,C,D):

yt=μy+[C(IAL)1BL+D]wt,d0=D,dj=CAj1B,  j1(5)y_t = \mu_y + [C(I - AL)^{-1}BL + D]\,w_t, \qquad d_0 = D,\quad d_j = CA^{j-1}B,\; j \geq 1 \tag{5}

Innovations Representation (A,K,C,Σ)(A,K,C,\Sigma)

The Kalman filter applied to (A,B,C,D)(A,B,C,D) produces a second state-space system — the innovations representation — that has the same AA and CC but replaces (B,D,wt)(B,D,w_t) with (KG,G,εt)(KG, G, \varepsilon_t):

x^t+1=Ax^t+KGεt(10)\hat{x}_{t+1} = A\hat{x}_t + KG\varepsilon_t \tag{10} yt=Cx^t+Gεt(11)y_t = C\hat{x}_t + G\varepsilon_t \tag{11}

where x^t=E[xtyt1]\hat{x}_t = \mathbb{E}[x_t \mid y_{t-1}], and Gεt=at=ytE[ytyt1]G\varepsilon_t = a_t = y_t - \mathbb{E}[y_t \mid y_{t-1}] are the one-step innovations.

The steady-state Kalman gain KK and state estimation error covariance Σ=E(xtx^t)(xtx^t)\Sigma = \mathbb{E}(x_t - \hat{x}_t)(x_t - \hat{x}_t)' satisfy:

Σ=AΣA+BB(AΣC+BD)(CΣC+DD)1(AΣC+BD)(12)\Sigma = A\Sigma A' + BB' - (A\Sigma C' + BD')(C\Sigma C' + DD')^{-1}(A\Sigma C' + BD')' \tag{12}

K=(AΣC+BD)(CΣC+DD)1(13)K = (A\Sigma C' + BD')(C\Sigma C' + DD')^{-1} \tag{13}

The innovation covariance is:

GG=CΣC+DD(14)GG' = C\Sigma C' + DD' \tag{14}

The k×kk \times k matrix GG is determined only up to postmultiplication by an orthogonal matrix; a specific choice of GG corresponds to a structural identification scheme (see Structural Identification).

Wold MA Representation

From the innovations representation, the Wold moving average is:

yt=[G+C(IAL)1KGL]εt,c0=G,cj=CAj1KG,  j1(15)y_t = [G + C(I - AL)^{-1}KGL]\,\varepsilon_t, \qquad c_0 = G,\quad c_j = CA^{j-1}KG,\; j \geq 1 \tag{15}

VAR Representation

Applying a partitioned inverse to (15), when the eigenvalues of AKCA - KC are strictly less than 1 in modulus:

yt=C[I(AKC)L]1Kyt1+Gεt,AjVAR=C(AKC)j1K(16-17)y_t = C[I - (A-KC)L]^{-1}K\,y_{t-1} + G\varepsilon_t, \qquad A_j^{\text{VAR}} = C(A-KC)^{j-1}K \tag{16-17}

This is an infinite-order VAR. The dominant eigenvalue of AKCA - KC controls the rate of decay of the VAR coefficients. If any eigenvalue of AKCA - KC equals 1 in modulus, the infinite-order VAR representation does not exist (though finite-order approximations still converge in mean square).

Vector Autoregressive Moving Average (VARMA) Representation (Square Case)

When k=nk = n and CC is invertible, premultiplying (16) by [I(AKC)L]C1[I - (A-KC)L]C^{-1} yields a first-order VARMA:

yt=C[(AKC)C1+K]yt1+GεtC(AKC)C1Gεt1(19)y_t = C[(A-KC)C^{-1} + K]\,y_{t-1} + G\varepsilon_t - C(A-KC)C^{-1}G\varepsilon_{t-1} \tag{19}

This shows that the pure AR representation is generically of infinite order; the finite-order approximation requires sufficiently many lags.

Dynamic Factor Model (Engle-Watson 1981)

The single-factor state-space model for kk observable series yty_t and one latent factor xtx_t is:

xt=ϕ1xt1+ϕ2xt2+vt,vtN(0,Q)x_t = \phi_1 x_{t-1} + \phi_2 x_{t-2} + v_t, \quad v_t \sim \mathcal{N}(0, Q) yt=αxt+βzt+et,etN(0,R)y_t = \alpha x_t + \beta z_t + e_t, \quad e_t \sim \mathcal{N}(0, R)

where ztz_t is a vector of observed covariates, α\alpha is a k×1k\times 1 vector of factor loadings (one element normalized to 1 for identification), and RR is diagonal (sector errors uncorrelated conditional on the factor). This is the (A,B,C,D)(A,B,C,D) system with A=[ϕ1,ϕ2;1,0]A = [\phi_1, \phi_2; 1, 0], C=[α,0]C = [\alpha, 0] in companion form, and the innovations representation is the Kalman filter prediction-error decomposition.

Maximum likelihood (ML) via scoring algorithm (Eq. 3.3–3.12 of Engle-Watson). Let θ\theta denote all parameters. The scoring update is:

θk+1=θk+λkJk1Lθθk\theta^{k+1} = \theta^k + \lambda_k J_k^{-1} \frac{\partial L}{\partial \theta}\bigg|_{\theta^k}

where the gradient L/θ\partial L/\partial \theta and the information matrix JJ are both computed from first derivatives only, using KK additional Kalman filter passes. Second derivatives are never required. This makes ML feasible for moderate-dimensional factor models before automatic differentiation existed.

Lagrange multiplier (LM) / score diagnostics. Serial-correlation tests based on the score vector are computable under the null model (without estimating the alternative), a practical advantage over Wald or likelihood-ratio tests that require fitting an expanded model.

Application. Los Angeles metropolitan wages, five sectors (Construction, Retail Trade, Durable Mfg, Nondurable Mfg, Wholesale Trade), 1947–1975. Model B — autoregressive (AR)(2) metro factor (ϕ^1=1.606\hat\phi_1 = 1.606, ϕ^2=0.619\hat\phi_2 = -0.619, sum 0.987\approx 0.987, near unit root) plus AR(1) sector errors — passes the LM test (stat=9.1<χ62\text{stat} = 9.1 < \chi^2_6) and outperforms ordinary least squares (OLS) in out-of-sample sum of squared errors (SSE). Factor loadings decline from non-traded (Construction = 1.0) to traded sectors (Wholesale Trade = 0.302), confirming economic interpretability.

Finite-Order VAR Approximation

For practical use, the nnth-order VAR coefficients Aj(n)A_j^{(n)} can be computed directly from the autocovariances of yty_t via the Yule-Walker equations:

cy(j)=CAjcx(0)C+CAj1BD,j1\operatorname{cy}(j) = CA^j \operatorname{cx}(0)C' + CA^{j-1}BD', \quad j \geq 1

where cx(0)\operatorname{cx}(0) solves the discrete Sylvester equation cx(0)=Acx(0)A+BB\operatorname{cx}(0) = A\,\operatorname{cx}(0)A' + BB'.

Kalman Filter with Qualitative Dependent Variables (Tanizaki 1993)

Standard Kalman filter requires a continuous observation equation yt=xtβt+uty_t = x_t'\beta_t + u_t with Gaussian utu_t. When yty_t is binary, the error distribution is no longer normal and the standard algorithm breaks down. Tanizaki (1993) replaces the observation equation with a binary choice model:

yt=F(xtβt)+et,E[et]=0,Var(et)=Ft(1Ft)y_t = F(x_t'\beta_t) + e_t, \qquad \operatorname{E}[e_t]=0, \quad \operatorname{Var}(e_t) = F_t(1-F_t)

where F()F(\cdot) is a cumulative distribution function (CDF) (normal/probit, logistic/logit, or Cauchy). The CDF is linearized around the current filtered state βtt\beta_{t|t} via first-order Taylor expansion:

F(xtβt)F(xtβtt)+xtftt(βtβtt)F(x_t\beta_t) \approx F(x_t\beta_{t|t}) + x_t f_{t|t}(\beta_t - \beta_{t|t})

yielding the pseudo-linear observation equation y~t=xtfttβt+et\tilde{y}_t = x_t f_{t|t}\beta_t + e_t, where y~t=ytFtt+xtfttβtt\tilde{y}_t = y_t - F_{t|t} + x_t f_{t|t}\beta_{t|t}. This enables the standard Kalman gain/covariance/state update, but iteration at each tt is required because fttf_{t|t} and FttF_{t|t} themselves depend on βtt\beta_{t|t}.

Algorithm: Forward pass (iterated linearized Kalman filter) → backward pass (Shumway-Stoffer 1982 smoother, yielding βtn\beta_{t|n}, PtnP_{t|n}, cross-covariances Pt,t1nP_{t,t-1|n}) → update RR via expectation-maximization (EM)-like moment formula and Φ\Phi by minimizing weighted squared state residuals → repeat until log-likelihood converges.

Distribution-free estimation: Since yty_t is qualitative, βt\beta_t follows a discrete distribution whose exact form is intractable. RR and Φ\Phi are therefore estimated without assuming any parametric distribution for βt\beta_t.

Application. Money excess demand, Jan 1959–May 1989 (n=364n=364); yt=1y_t=1 iff the interest rate rises next period. Time-varying models: logL222\log L \approx -222234-234, ρ0.33\rho \approx 0.330.480.48 vs. fixed-parameter probit/logit: logL248\log L \approx -248, ρ0.11\rho \approx 0.11. Estimated β^t\hat\beta_t peaks around 1975 (oil shock) and 1984 (high U.S. rates), confirming time-varying responsiveness. See Tanizaki (1993).

Why It Matters

The (A,B,C,D)(A,B,C,D) formalism is the bridge between DSGE theory and empirical VAR analysis. It enables:

Open Questions

Related