statsmodels.tsa.vector_ar.var_model.FEVD#
- class statsmodels.tsa.vector_ar.var_model.FEVD(model, P=None, periods=None)[source]#
Compute and plot Forecast error variance decomposition and asymptotic standard errors
- Parameters:
- model
VARResults The VAR results used to compute the FEVD.
- P
ndarray,optional Matrix such that Sigma_u = PP’, used to orthogonalize the impulse responses. Defaults to the Cholesky decomposition of Sigma_u.
- periods
int,optional Number of periods to compute the FEVD for.
- model
- Attributes:
- decomp
ndarray The forecast error variance decomposition, with shape (neqs, periods, neqs).
decomp[j, h - 1, k]is the share of the h-step ahead forecast error variance of variable j that is due to the orthogonalized shock to variable k, so the first step ahead is stored at position 0. The shares sum to one over the last axis.- neqs
int Number of endogenous variables.
- names
listofstr Names of the endogenous variables.
- decomp
Methods