Tutorials › Econometrics (Graduate) › Lag Selection and Parsimonious VARs

VAR, Volatility, and Forecasts · Tutorial 414 of 952

Lag Selection and Parsimonious VARs

Compare lag-order criteria for VARs, calculate their penalties from the effective sample size and free-parameter count, and evaluate restrictions when data are limited.

Advanced 12 min read

What You'll Learn

  • Write AIC, BIC, and HQ for a VAR using a common sample and residual covariance convention.
  • Count free VAR coefficients, including deterministic terms and restrictions.
  • Calculate and compare information-criterion scores, interpreting lower values correctly.
  • Explain how sample size and system dimension affect a VAR's parameter burden.
  • Assess when a restricted lag structure can be useful and what it assumes.

Why Lag Selection Is a Model-Size Decision

A VAR with more lags can represent richer dynamics, but every additional lag adds coefficients to every equation. In a multivariate system, this cost grows quickly: adding one lag to a VAR with \(m\) variables adds \(m^2\) slope coefficients before deterministic terms are counted. If the available sample is short, an unrestricted high-order VAR can use a large share of the data estimating parameters.

Information criteria provide a systematic way to compare candidate lag orders. They reward improved fit while penalizing model size. Their scores are relative: among the candidates being compared, the criterion with the lowest value is preferred. A criterion is not a test that establishes the true lag order, and its chosen order depends on the candidate set, sample, and specification.

Definition: For a VAR with \(m\) variables and \(p\) lags, the lag order \(p\) is the number of lagged vectors included as regressors. A candidate VAR(\(p\)) is compared with other candidate models using the same observations, deterministic specification, and residual covariance convention.

Model and Parameter Count

Write a VAR(\(p\)) with deterministic regressors as

$$ y_t=d_t+\sum_{j=1}^{p}A_jy_{t-j}+u_t,\qquad t=1,\ldots,n, $$

where \(y_t\) is an \(m\times1\) vector, each \(A_j\) is an \(m\times m\) coefficient matrix, \(d_t\) collects deterministic terms, and \(u_t\) is the innovation vector. The sample size \(n\) here is the number of usable observations after forming lags. All candidate models must use the same \(n\) for a direct information-criterion comparison.

If every equation has \(q\) common deterministic regressors, there are \(mq\) deterministic coefficients and \(pm^2\) lag coefficients. Thus the number of free regression coefficients in an unrestricted VAR(\(p\)) is

$$ k_p=mq+pm^2. $$

For an intercept-only specification, \(q=1\), so \(k_p=m+pm^2\). The innovation covariance matrix is also estimated, but its number of distinct entries is \(m(m+1)/2\), the same for every candidate lag order in this comparison. We omit that common count from \(k_p\); including it in every model's penalty adds the same amount to all scores and does not change their ranking. Under restrictions, count the actual free regression coefficients rather than using the unrestricted formula.

Worked Example: Counting Coefficients in an Unrestricted VAR

Suppose a hypothetical two-variable system has an intercept in each equation and \(n=80\) usable observations. Compare VAR(1), VAR(2), and VAR(3). There are \(m=2\) variables and \(q=1\) deterministic regressor.

For VAR(1), the count is \(k_1=mq+1(m^2)=2+4=6\). For VAR(2), \(k_2=2+2(4)=10\). For VAR(3), \(k_3=2+3(4)=14\). Each added lag therefore introduces four new slope coefficients across the system.

These counts concern regression coefficients; the same three distinct innovation-covariance parameters are estimated in each model. The example illustrates why counting only lags, rather than coefficients, understates the complexity of a multivariate model.

AIC, BIC, and HQ

Let \(\widehat{\Sigma}_p\) be the estimated innovation covariance matrix for a candidate VAR(\(p\)). With Gaussian innovations, the concentrated log likelihood, after dropping constants common to all candidates, is proportional to \(-n\log|\widehat{\Sigma}_p|/2\). The following per-observation criteria use that fit term and penalize the number of free regression coefficients:

$$ \begin{aligned} \operatorname{AIC}(p)&=\log|\widehat{\Sigma}_p|+\frac{2k_p}{n},\\ \operatorname{BIC}(p)&=\log|\widehat{\Sigma}_p|+\frac{k_p\log n}{n},\\ \operatorname{HQ}(p)&=\log|\widehat{\Sigma}_p|+\frac{2k_p\log(\log n)}{n}. \end{aligned} $$

The logarithmic determinant measures residual covariance jointly across the system; smaller values indicate a better-fitting covariance estimate under this criterion. The penalty per free coefficient is \(2/n\) for AIC, \(\log(n)/n\) for BIC, and \(2\log(\log n)/n\) for HQ. In the usual settings where these criteria are compared, HQ's penalty lies between AIC's and BIC's. The penalty changes with \(n\), so a penalty calculated for one sample size must not be reused for another.

These expressions use the maximum-likelihood covariance estimate, conventionally formed with divisor \(n\), and the same convention for every candidate. Software may use alternative covariance corrections or report scores on a different scale. Rankings are meaningful only when models are evaluated on a common sample and with compatible definitions.

Interpretation: A lower information-criterion value indicates a preferred fit-complexity trade-off among the models actually compared. It is not a p-value, a probability that the model is true, or evidence that all omitted lags have zero effects.

Why the Criteria Penalize Complexity

The fit term cannot be used by itself: adding regressors generally cannot worsen the in-sample least-squares fit, so selecting solely by fit tends to favor unnecessarily large models. The penalty makes additional parameters worthwhile only when the reduction in the fit term is sufficiently large.

One justification for the BIC penalty comes from approximating a model's marginal likelihood. Under regularity conditions, with a well-behaved likelihood near an interior maximum and a prior that is positive there, a quadratic expansion of the log likelihood around its maximum gives a Gaussian integral over \(K\) parameters. Each parameter contributes a factor of order \(n^{-1/2}\), so the log marginal likelihood is approximately

$$ \log \int L(\theta)\pi(\theta)\,d\theta \approx \log L(\widehat{\theta})-\frac{K}{2}\log n+O(1). $$

Multiplying by \(-2\) yields \(-2\log L(\widehat{\theta})+K\log n\), the BIC form up to terms that do not vary across candidates. AIC instead uses a penalty motivated by estimating expected predictive information loss. The criteria therefore embody different goals and asymptotic reasoning; they need not select the same order.

Worked Example: Comparing AIC, BIC, and HQ

Continue with the hypothetical two-variable system and \(n=80\). Suppose the log determinants from the three candidate fits, at full precision, are \(-0.0341250\), \(-0.2213373\), and \(-0.2819607\) for VAR(1), VAR(2), and VAR(3). Their coefficient counts are \(6\), \(10\), and \(14\). Calculate the three criteria and identify each preferred candidate.

For AIC the penalty per coefficient is \(2/80=0.02500\). The scores are

$$ \begin{aligned} \operatorname{AIC}(1)&=-0.0341250+0.02500(6)=0.115875,\\ \operatorname{AIC}(2)&=-0.2213373+0.02500(10)=0.0286627,\\ \operatorname{AIC}(3)&=-0.2819607+0.02500(14)=0.0680393. \end{aligned} $$

AIC selects VAR(2), the candidate with the lowest score. For BIC, \(\log(80)/80=0.0547753\). Using this penalty and the same log determinants gives

$$ \begin{aligned} \operatorname{BIC}(1)&=-0.0341250+0.0547753(6)\approx0.2945,\\ \operatorname{BIC}(2)&=-0.2213373+0.0547753(10)\approx0.3264,\\ \operatorname{BIC}(3)&=-0.2819607+0.0547753(14)\approx0.4849. \end{aligned} $$

BIC selects VAR(1). For HQ, the per-coefficient penalty is \(2\log(\log80)/80\approx0.0369378\). The scores are approximately \(0.1875\), \(0.1480\), and \(0.2352\), respectively, so HQ selects VAR(2). The three criteria disagree here: each balances the observed improvement in fit against complexity differently. These scores do not imply that one lag order has a particular probability of being correct.

Short Samples and Restricted Lag Structures

In a short sample, a restricted structure can reduce the number of coefficients and may make estimation more stable. A restriction might exclude selected cross-variable lags, impose a common lag order only on certain variables, or omit all coefficients at a higher lag. Such restrictions should have a substantive or design-based rationale. They change the model being fitted, so the resulting estimate is conditional on those restrictions being correct enough for the intended use.

Restrictions must be reflected in the penalty. For a restricted model, \(k\) is the number of regression coefficients left free after imposing the restrictions. Do not penalize it as if every coefficient in the unrestricted VAR were estimated. Conversely, do not count each equation's regressors as though they were the entire system: the total coefficient count is across all \(m\) equations.

Worked Example: A Parsimonious Lag Structure

Consider a hypothetical three-variable system with an intercept in each equation, \(n=36\) usable observations, and at most two lags. Compare an unrestricted VAR(2) with a restricted specification that retains each variable's own lags 1 and 2, and retains the other two variables' lag 1 in each equation, but excludes cross-variable lag 2 coefficients.

The unrestricted VAR(2) has \(k=3+2(3^2)=21\) regression coefficients. For the restricted model, there are six own-lag coefficients (two per equation), six cross-variable lag-1 coefficients (two per equation), and three intercepts. Thus \(k=6+6+3=15\). This is a reduction of six free coefficients, not a reduction of six observations.

Suppose the unrestricted model has \(\log|\widehat{\Sigma}|=-0.4000\) and the restricted model has \(\log|\widehat{\Sigma}|=-0.3400\). The restriction worsens the fit term by \(0.0600\). Since \(\log(36)/36\approx0.0995310\), the BIC scores are

$$ \begin{aligned} \operatorname{BIC}_{\text{unrestricted}} &=-0.4000+0.0995310(21)\approx1.690,\\ \operatorname{BIC}_{\text{restricted}} &=-0.3400+0.0995310(15)\approx1.153. \end{aligned} $$

BIC prefers the restricted specification among these two candidates because its reduction in the complexity penalty more than offsets the stated loss of fit. This calculation is not a general reason to impose these restrictions: if excluded lag effects matter, the restricted model may be misspecified.

Practical Choice and Common Pitfalls

A useful comparison begins by stating the candidate set and checking that all models use the same observations and deterministic terms. Compute the free-parameter count for each model, apply the criterion with the actual effective sample size, and compare the resulting scores. If restrictions are considered, describe precisely which coefficients are fixed or excluded and count only those left free.

For a system with many variables, the \(pm^2\) term can become large even at modest \(p\). A high-order unrestricted VAR may therefore be difficult to estimate precisely in a short sample. AIC often favors richer models than BIC because its penalty per parameter does not grow with \(\log n\); this is a tendency, not a guarantee for any particular data set. HQ provides a different balance. The preferred order should be understood alongside the specification and the purpose of the analysis, not as a universal property of the data.

  • Wrong: “VAR(3) fits best in sample, so it must be preferred.” Correction: In-sample fit alone rewards added regressors; compare fit and complexity using a stated criterion.
  • Wrong: “A VAR(2) has two parameters.” Correction: Lag order is not the parameter count. With \(m\) variables, each lag adds \(m^2\) unrestricted slope coefficients.
  • Wrong: “The lowest BIC means the model is true.” Correction: It is the lowest score among the candidates under this definition, not a truth probability or a guarantee against misspecification.
  • Wrong: “A restricted model has the same penalty as the unrestricted model with the same maximum lag.” Correction: Count its actual free coefficients; restrictions change the parameter count.
Key takeaway: Lag selection is a comparison of fit and complexity. Use a common sample and covariance convention, count all free system coefficients, calculate each criterion's penalty using the actual \(n\), and interpret the winner only relative to the candidates considered.

Check Your Understanding

Answer each question using the definitions and calculations above.

  1. For an intercept-only unrestricted VAR with \(m=4\) variables and \(p=2\), how many regression coefficients are estimated?
  2. Why should candidate VARs use the same observations when their information-criterion scores are compared?
  3. For \(n=100\), what is the BIC penalty per free coefficient, to four significant figures?
  4. A restriction lowers a VAR's free regression coefficient count from 30 to 22. Which count belongs in the restricted model's penalty?
  5. Explain why the BIC score is not the probability that a candidate VAR is true.
Clinical Biostats