statsmodels.tsa.vector_ar.var_model.VARProcess.simulate_var

VARProcess.simulate_var(steps=None, offset=None, seed=None) [source]

simulate the VAR(p) process for the desired number of steps

Parameters:
  • steps (None or int) – number of observations to simulate, this includes the initial observations to start the autoregressive process. If offset is not None, then exog of the model are used if they were provided in the model
  • offset (None or ndarray (steps, neqs)) – If not None, then offset is added as an observation specific intercept to the autoregression. If it is None and either trend (including intercept) or exog were used in the VAR model, then the linear predictor of those components will be used as offset. This should have the same number of rows as steps, and the same number of columns as endogenous variables (neqs).
  • seed (None or integer) – If seed is not None, then it will be used with for the random variables generated by numpy.random.
Returns:

endog_simulated – Endog of the simulated VAR process

Return type:

nd_array

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.tsa.vector_ar.var_model.VARProcess.simulate_var.html