Skip to content
Time-Series
Econometrics
Ian Helfrich PhD ↗

Lecture 9 of 15

Multivariate dynamics and regional networks

Does another region's history add information about this region's future?

Prerequisites: Lectures 2–4 and 7, matrix multiplication, eigenvalues, and multivariate regression.

Unzip the bundle, open its code folder, and run ch09 in Python, R, or Julia; the entry point loads the course file and data beside it.

Let several outcomes evolve together

A vector autoregression allows each series to depend on the histories of all included series. For a two-region VAR(1),

(Y1tY2t)=(c1c2)+(a11a12a21a22)(Y1,t−1Y2,t−1)+(u1tu2t).\begin{pmatrix}Y_{1t}\\Y_{2t}\end{pmatrix} =\begin{pmatrix}c_1\\c_2\end{pmatrix} +\begin{pmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\end{pmatrix} \begin{pmatrix}Y_{1,t-1}\\Y_{2,t-1}\end{pmatrix} +\begin{pmatrix}u_{1t}\\u_{2t}\end{pmatrix}.

The off-diagonal entries describe predictive cross-lags conditional on the system’s included history. The disturbances can be correlated contemporaneously, with covariance matrix Σ\Sigma. That correlation allows shared surprises; it does not identify their economic sources.

A vector can combine regional outcomes, economic indicators, or related financial prices. Every component must have a consistent time convention, transformation, and availability rule. Combining a monthly flow with a daily return by row position produces no meaningful multivariate system. Choose a common frequency and describe the aggregation or sampling rule.

Dimensional consistency is more demanding than in a univariate autoregression. If one component is in MWh and another is in dollars, a12a_{12} has MWh per dollar and a21a_{21} has dollars per MWh. Rescaling a series changes these coefficients while retaining the equivalent economic prediction when the entire system is transformed consistently.

Solve the matrix recursion

Write Yt=c+AYt−1+utY_t=c+AY_{t-1}+u_t. A stationary mean, when it exists, solves

μ=(I−A)−1c.\mu=(I-A)^{-1}c.

The centered process is Xt=AXt−1+utX_t=AX_{t-1}+u_t. Iterating gives

Xt+h=AhXt+∑j=0h−1Ajut+h−j.X_{t+h}=A^hX_t+\sum_{j=0}^{h-1}A^ju_{t+h-j}.

The forecast is μ+Ah(Yt−μ)\mu+A^h(Y_t-\mu) under the conditional-mean restrictions. Its known-parameter covariance is

Vh=∑j=0h−1AjΣ(Aj)′.V_h=\sum_{j=0}^{h-1}A^j\Sigma(A^j)'.

For h=1h=1, this equals Σ\Sigma. Each term is positive semidefinite when Σ\Sigma is, so the covariance accumulates valid nonnegative uncertainty. Covariance between forecast errors matters when the decision concerns a regional total or a portfolio. Summing individual variances without cross-covariances can understate or overstate that aggregate risk.

For an aggregate G=w′YG=w'Y, forecast-error variance is w′Vhww'V_hw. Its weights define the aggregate’s economic unit. A regional population-weighted average and a sum of regional sales are different objects even when they use the same underlying vector.

Stability depends on the system’s eigenvalues

The VAR(1) is stable when every eigenvalue of AA lies inside the unit circle, equivalently its spectral radius is less than one. Small diagonal entries alone are insufficient. Cross-lag feedback can create persistence or instability.

For example, A=(0.60.50.50.6)A=\begin{pmatrix}0.6&0.5\\0.5&0.6\end{pmatrix} has eigenvalues 1.1 and 0.1. Each own-lag coefficient is 0.6, but the common mode is explosive. In contrast, A=(0.60.150.050.5)A=\begin{pmatrix}0.6&0.15\\0.05&0.5\end{pmatrix} has eigenvalues inside the circle. A disturbance can move through cross-lags while the system remains stable.

For a VAR(p)(p), stack the current vector and its p−1p-1 lags into a companion state. Stability is a condition on that companion matrix. Checking only the separate lag matrices misses their joint dynamics. Some software reports inverse roots; verify its convention before deciding which side of the unit circle indicates stability.

An estimated system can be unstable in a finite sample even when the generating process is stable. If that occurs, diagnose the transformation, sample length, lag order, and possible integrated components. Do not silently clip eigenvalues and present the resulting forecasts as estimates from the original model.

Estimate the reduced-form system

For each date, the regressor row is [1,Yt−1′][1,Y_{t-1}']. Stack those rows into XX and subsequent vectors into YY. With identical regressors across equations, ordinary least squares estimates every equation:

B^=arg⁡min⁡B∥Y−XB∥F2.\widehat B=\arg\min_B\|Y-XB\|_F^2.

In our storage convention, the first row of BB is the intercept and the remaining block is A′A'. Transposing the block recovers the column-vector recursion. A transpose mistake can reverse directional interpretations while leaving dimensions deceptively plausible.

Estimate disturbance covariance as Σ^=U′U/(n−k)\widehat\Sigma=U'U/(n-k), where nn is the number of usable rows and kk the number of regressors per equation. An ML convention uses denominator nn; both are legitimate if their names and comparisons are consistent. The parallel code uses the residual-degrees-of-freedom convention. Consistency of these estimates rests on the stability condition above together with the ergodicity and innovation conditions discussed in Lecture 2.

Adding variables or lags quickly increases parameter count. A VAR with mm variables and pp lags has m(1+mp)m(1+mp) mean parameters. A short monthly sample cannot support an arbitrarily large network of unrestricted regressions. Keep the core system small and compare it with univariate benchmarks on matched origins. Choose pp inside the training window with an information criterion from Lecture 3, replacing log⁡σ^2\log\widehat\sigma^2 by log⁡det⁡Σ^\log\det\widehat\Sigma and counting every mean parameter.

Does another region’s history predict this one?

The lecture’s question has a standard name. Series 2 does not Granger-cause series 1, relative to the variables in the system, when the past of series 2 does not reduce the mean squared error of the optimal linear forecast of series 1 given the past of series 1 (Granger 1969). In the VAR(1) that is the restriction a12=0a_{12}=0; in a VAR(p)(p) it sets the coefficients on every lag of series 2 in the first equation to zero. When the system is stable, a Wald or FF test of those restrictions has its usual large-sample distribution under the conditions of the previous section. With integrated or cointegrated levels its limiting distribution can be nonstandard.

The name invites misreading. Granger causality is incremental predictability within the chosen information set. An omitted common factor, as in Lecture 10, can create it without any direct channel, and a genuine channel can fail to appear at the sampling frequency. The laboratory reports one Wald statistic for each excluded cross-lag. The estimates are a^12=0.089\widehat a_{12}=0.089 and a^21=0.103\widehat a_{21}=0.103, against generating values of 0.15 and 0.05, and the statistics are 3.98 and 4.99 against a 5% χ2(1)\chi^2(1) critical value of 3.84. Both tests reject, correctly, because both cross-lags are nonzero in the generating system; the larger estimate belongs to the smaller generating coefficient, a reminder of how noisy cross-lag estimates are at 600 observations.

A known network imposes structure

Suppose a network matrix WW is specified from an external economic definition: spatial neighbors, supply-chain links, or another documented connection. A simple network autoregression can impose

A=ρI+λW.A=\rho I+\lambda W.

This restriction uses two dynamic coefficients in place of an unrestricted m×mm\times m matrix. Its value depends on whether the network is meaningful for the economic mechanism. An arbitrary graph can impose a misleading restriction efficiently.

State whether rows or columns carry source weights, whether weights are normalized, whether self-links exist, and what a missing link means. With the column-vector convention here, (WY)i=∑jWijYj(WY)_i=\sum_jW_{ij}Y_j is the input arriving at region ii from source jj. Direction belongs in the definition, not merely the graphic.

Stability depends on the eigenvalues of ρI+λW\rho I+\lambda W. For a row-stochastic WW, one eigenvalue is one, so ∣ρ+λ∣<1|\rho+\lambda|<1 is a necessary restriction for that common mode. Other modes still require checking. If WW changes, the system’s stability and interpretation can change even with constant ρ\rho and λ\lambda.

The core network exercise uses a synthetic two-node connection with zero diagonal and unit cross-links. It is a teaching graph, not an estimated map of actual electricity transmission or regional economic causality. An observed regional VAR supplies predictive associations; a separately documented network supplies a hypothesized structure. Keep those roles distinct.

Execute, break, and repair

Run ch09. It simulates a stable two-series system with correlated innovations and estimates a reduced-form VAR(1). The realized cross-lag estimates differ from their generating coefficients, while the estimated spectral radius remains below one. Compute the fitted one-step prediction by multiplying the matrix manually and compare it with the code.

Then reorder the two columns and fit again. Permute the coefficient matrix back to the original ordering. The reduced-form predictions should represent the same system up to numerical tolerance. If they do not, check column indexing and the transpose convention before making an economic claim.

Break the model by replacing the coefficient matrix with the unstable example above. Iterate a deterministic initial disturbance with future innovations set to zero. Show the exploding common mode. Repair the interpretation by stating that this parameter set does not define the stable process assumed in the moment formulas. A stable replacement requires an economically justified constraint or a different model, not a cosmetic graph range.

Worked problem and audit verdict

Let A=(0.60.20.10.5)A=\begin{pmatrix}0.6&0.2\\0.1&0.5\end{pmatrix}, c=0c=0, and Yt=(10,20)′Y_t=(10,20)'. The one-step forecast is (10,11)′(10,11)'. The two-step forecast is A(10,11)′=(8.2,6.5)′A(10,11)'=(8.2,6.5)'. The first region’s own past contributes 6 to its one-step forecast and the second region’s past contributes 4. Those predictive contributions are not separately identified causal effects.

If Σ=(4119)\Sigma=\begin{pmatrix}4&1\\1&9\end{pmatrix}, the one-step error variance of the regional sum is 4+9+2(1)=154+9+2(1)=15. Ignoring the covariance would report 13. A covariance of −1-1 would instead give 11. The sign of shared surprises matters for an aggregate decision.

For the project audit, identify whether a regional comparison concerns prediction, network propagation under a maintained structure, or an identified intervention. The reduced-form VAR answers the first question. Lecture 10 adds assumptions needed for the latter two and shows why those assumptions cannot be read directly from an attractive impulse-response plot.

Sources

Sims (1980), Macroeconomics and Reality is a foundational VAR reference. Granger (1969) defines predictive causality. Statsmodels’ VAR documentation describes estimation and analysis conventions.

Practice and laboratory for Lecture 9