statsmodels.tsa.arima.model.ARIMAResults.impulse_responses¶

ARIMAResults.
impulse_responses
(steps=1, impulse=0, orthogonalized=False, cumulative=False, **kwargs)¶ Impulse response function
 Parameters
 steps
int
,optional
The number of steps for which impulse responses are calculated. Default is 1. Note that for timeinvariant models, the initial impulse is not counted as a step, so if steps=1, the output will have 2 entries.
 impulse
int
or array_like If an integer, the state innovation to pulse; must be between 0 and k_posdef1. Alternatively, a custom impulse vector may be provided; must be shaped k_posdef x 1.
 orthogonalizedbool,
optional
Whether or not to perform impulse using orthogonalized innovations. Note that this will also affect custum impulse vectors. Default is False.
 cumulativebool,
optional
Whether or not to return cumulative impulse responses. Default is False.
 anchor
int
,str
,or
datetime
,optional
Time point within the sample for the state innovation impulse. Type depends on the index of the given endog in the model. Two special cases are the strings ‘start’ and ‘end’, which refer to setting the impulse at the first and last points of the sample, respectively. Integer values can run from 0 to nobs  1, or can be negative to apply negative indexing. Finally, if a date/time index was provided to the model, then this argument can be a date string to parse or a datetime type. Default is ‘start’.
 exogarray_like,
optional
New observations of exogenous regressors, if applicable.
 **kwargs
If the model has timevarying design or transition matrices and the combination of anchor and steps implies creating impulse responses for the outofsample period, then these matrices must have updated values provided for the outofsample steps. For example, if design is a timevarying component, nobs is 10, anchor=1, and steps is 15, a (k_endog x k_states x 7) matrix must be provided with the new design matrix values.
 steps
 Returns
 impulse_responses
ndarray
Responses for each endogenous variable due to the impulse given by the impulse argument. For a timeinvariant model, the impulse responses are given for steps + 1 elements (this gives the “initial impulse” followed by steps responses for the important cases of VAR and SARIMAX models), while for timevarying models the impulse responses are only given for steps elements (to avoid having to unexpectedly provide updated timevarying matrices).
 impulse_responses
Notes
Intercepts in the measurement and state equation are ignored when calculating impulse responses.