statsmodels.tsa.statespace.kalman_filter.FilterResults¶
- class statsmodels.tsa.statespace.kalman_filter.FilterResults(model)[source]¶
Results from applying the Kalman filter to a state space model.
- Parameters:¶
- model : Representation¶
A Statespace representation
- k_posdef¶
The dimension of a guaranteed positive definite covariance matrix describing the shocks in the measurement equation.
- shapes¶
A dictionary recording the shapes of each of the representation matrices as tuples.
- missing¶
An array of the same size as endog, filled with boolean values that are True if the corresponding entry in endog is NaN and False otherwise.
- nmissing¶
An array of size nobs, where the ith entry is the number (between 0 and k_endog) of NaNs in the ith row of the endog array.
- initial_state_cov¶
The state covariance matrix used to initialize the Kalamn filter.
- Type:¶
array_like
- initial_diffuse_state_cov¶
Diffuse state covariance matrix used to initialize the Kalamn filter.
- Type:¶
array_like
- inversion_method¶
Bitmask representing the method used to invert the forecast error covariance matrix.
- stability_method¶
Bitmask representing the methods used to promote numerical stability in the Kalman filter recursions.
- tolerance¶
The tolerance at which the Kalman filter determines convergence to steady-state.
- loglikelihood_burn¶
The number of initial periods during which the loglikelihood is not recorded.
- forecast_error_diffuse_cov¶
Diffuse forecast error covariance matrix at each time period.
- Type:¶
ndarray
- predicted_diffuse_state_cov¶
The predicted diffuse state covariance matrix at each time period.
- Type:¶
ndarray
Methods
predict([start, end, dynamic])In-sample and out-of-sample prediction for state space models generally
update_filter(kalman_filter)Update the filter results
update_representation(model[, only_options])Update the results to match a given model
Properties
Kalman gain matrices
Standardized forecast errors