How this calculation works
Fit a fixed-order vector autoregression to several matched time series and forecast them jointly. Each component can depend on lagged values of every series, making this a different task from fitting separate univariate ARIMA models. The page returns coefficient rows, residual covariance and conditional point forecasts with explicit lag and intercept conventions.
y_t=c+A1 y_(t−1)+…+Ap y_(t−p)+epsilon_t.A worked example
For stated coefficient rows (0,0.5,0.2) and (0,0,0.4), a last vector (2,1) forecasts (1.2,0.4), followed by (0.68,0.16). These illustrate lagged cross-series dependence; the calculator estimates coefficient rows from data.
Good to know
2–4 matched series, lag 1–3, 12–200 observations and horizon≤30, enough residual degrees of freedom. QR intercept fit; no cointegration, automatic order choice, stability certificate or forecast intervals.
Reference: Method reference: Vector autoregression calculator for multiple time series (opens in a new tab) ↗
Align the multivariate observations first
Each input row is one time point, and its columns are different series observed at that same point. All rows must follow a common equally spaced calendar. Matching row counts is not enough when one column has missing dates or a different sampling interval; align those observations outside the calculator before constructing the matrix.
The model does not fill missing observations, average frequencies or infer timestamps. A row shift between columns can create spurious leading relationships. Preserve a clear record of column names and order, since the output identifies components numerically and assumes that those coordinate meanings remain unchanged throughout the data.
The Holt Winters seasonal forecast calculator from monthly data uses explicit level, trend and seasonal updates for one series. VAR instead fits cross-series lag coefficients and needs aligned observation rows.
Build the lagged design in its displayed order
For lag order p, each equation contains an intercept followed by all variables at lag one, then all variables at lag two, and so on. A coefficient row belongs to one response series. Its entries therefore need to be read with both response identity and lagged predictor identity, not as an unordered list of cross-correlations.
All equations use the same lagged design, while QR least squares estimates a different coefficient vector for each response. Because the regressors are shared, ordinary equation-by-equation estimation gives the usual unrestricted VAR coefficient fit. This does not automatically justify restrictions, causal interpretation or a structural-shock decomposition.
Trace a two-series forecast recursion
For stated coefficient rows (0,0.5,0.2) and (0,0,0.4), the first response depends on both previous series while the second depends only on its own previous value. Starting from last vector (2,1), the one-step forecast is (1.2,0.4): 0.5×2+0.2×1 and 0.4×1.
The next forecast substitutes that predicted vector into the same equations, giving (0.68,0.16). No new random innovation is inserted into a point forecast. The example demonstrates recursion for already specified parameters; the live form estimates its coefficient rows from the entered matrix rather than accepting those illustrative rows as an input model.
Read innovation covariance as a joint quantity
Residual covariance records whether unexplained innovations move together after the lagged predictors have been fitted. It is not the covariance of the original series, which also includes their mean levels and predictable dynamics. The page uses a residual degrees-of-freedom divisor based on the usable lagged rows and coefficient count.
A nonzero off-diagonal residual covariance does not itself identify a causal channel. Contemporaneous shocks may have common unobserved causes. Structural VAR interpretation requires additional identifying assumptions that are not present here, so do not rename the residual covariance as an identified causal-shock covariance matrix.
Choose order without exhausting the sample
A k-series VAR with p lags has one plus kp coefficients per equation and loses p initial observations. Adding series and lags can therefore consume information quickly, even before forecast evaluation. The form requires enough rows for the numerical fit but does not claim that the minimum accepted sample is substantively adequate.
The lag selector is fixed, not selected by AIC or BIC. Compare a small scientifically plausible set using a time-ordered validation design and residual diagnostics. Choosing the order only because it reproduces the training history best tends to reward unnecessary complexity and does not measure future forecasting ability.
Treat trend and stability as separate checks
A fitted VAR in levels can generate growing forecasts when its dynamics are unstable or when trending series are used without a suitable specification. The page does not difference columns automatically, test cointegration or certify companion-matrix stability. A finite forecast table is not evidence that every future forecast will remain bounded.
If differencing is appropriate, perform it consistently and record that the response has changed from levels to changes. Reconstructing future levels then requires accumulation from the last observed level. A vector error-correction model would answer another question and is not an undocumented fallback for a rank-deficient or persistent VAR fit.
Keep the forecasts within their actual scope
The returned values condition on fitted coefficients and set future innovations to zero. Prediction intervals, impulse responses, forecast-error variance decompositions and automatic order selection are not computed. The primary method reference documents a broader VAR toolkit, but the page advertises only its bounded coefficient and forecast calculation.
For practical evaluation, reserve the latest observations and compare joint forecasts at horizons that matter to the application. Report errors separately for differently scaled variables rather than pooling them blindly. A large-scale column can dominate an aggregate error score even when another series has worse relative performance.
A few questions, answered
Are the columns fitted independently?
Each equation is estimated separately against the same design, but that design contains lagged values of every series, so the resulting forecasts are coupled.
Does the form add an intercept?
Yes. Coefficient rows begin with the intercept and then contain complete variable blocks for each lag.
Are the forecasts guaranteed stable?
No. This version does not certify companion-matrix stability. Growing point forecasts are possible and should be investigated.
Can I enter columns sampled on different dates?
Not without aligning them first. Every row must represent the same observation time across all columns.