Skip to main content
A vector autoregression models several series that influence each other over time: every channel is a linear function of the recent past of all channels. It is the standard multivariate linear model for coupled economic and sensor series, capturing the lead-lag feedback that a set of independent univariate models cannot.
The model yt=c+A1yt1++Apytp+et,et(0,Σ)y_t = c + A_1 y_{t-1} + \dots + A_p y_{t-p} + e_t, \qquad e_t \sim (0, \Sigma) At each step every series is a linear combination of the last lag_order values of all series, plus correlated innovations. generate(n_series) returns the coupled channels of one system, so the cross-series dynamics are shared rather than independent.

1. VAR(1) with auto-generated stable coefficients

Generate a 3-variable VAR(1) model with automatically generated stable coefficient matrices.

Summary statistics and correlations

2. VAR(1) with custom coefficients (strong cross-effects)

Design a coefficient matrix where each variable depends strongly on the other’s lagged values.

3. Higher-order VAR(3) model

A VAR(3) model uses three lags of each variable, capturing longer-range dependencies.

4. VAR with correlated innovations

Specify a custom innovation covariance matrix to add contemporaneous correlation between variables.

5. Generating multiple VAR series

Generate multiple independent draws of bivariate VAR series.
Related generators
  • Copula — contemporaneous dependence without temporal dynamics.
  • Multivariatize — add coupling to any univariate generator.
Full parameters are in the generator reference.