dirconn.methods.statespace.var_to_state_space#

dirconn.methods.statespace.var_to_state_space(coefs: Any, noise_cov: Any) → InnovationsForm#

Write a VAR model in innovations form.

A is the companion matrix, C = [A_1 ... A_p] (the top block row of A), K = [I 0 ... 0]^T and Sigma = noise_cov.

Parameters:
  • coefs (array_like, shape (n_lags, n_channels, n_channels)) – VAR coefficients [lag - 1, target, source].

  • noise_cov (array_like, shape (n_channels, n_channels)) – Innovation covariance, symmetric positive definite.

Return type:

InnovationsForm

Raises:

ValueError – For an unstable model (spectral radius at least 1), whose reduced models do not exist, or a covariance that is not positive definite.