statsmodels.tsa.statespace.kalman_filter.PredictionResults¶
-
class statsmodels.tsa.statespace.kalman_filter.PredictionResults(results, start, end, nstatic, ndynamic, nforecast, oos_results=
None)[source]¶ Results of in-sample and out-of-sample prediction for state space models generally
- Parameters:¶
- results : FilterResults¶
Output from filtering, corresponding to the prediction desired
- start : int¶
Zero-indexed observation number at which to start forecasting, i.e., the first forecast will be at start.
- end : int¶
Zero-indexed observation number at which to end forecasting, i.e., the last forecast will be at end.
- nstatic : int¶
Number of in-sample static predictions (these are always the first elements of the prediction output).
- ndynamic : int¶
Number of in-sample dynamic predictions (these always follow the static predictions directly, and are directly followed by the forecasts).
- nforecast : int¶
Number of in-sample forecasts (these always follow the dynamic predictions directly).
- npredictions¶
Number of observations in the predicted series; this is not necessarily the same as the number of observations in the original model from which prediction was performed.
- start¶
Zero-indexed observation number at which to start prediction, i.e., the first predict will be at start; this is relative to the original model from which prediction was performed.
- end¶
Zero-indexed observation number at which to end prediction, i.e., the last predict will be at end; this is relative to the original model from which prediction was performed.
Notes
The provided ranges must be conformable, meaning that it must be that end - start == nstatic + ndynamic + nforecast.
This class is essentially a view to the FilterResults object, but returning the appropriate ranges for everything.
Methods
clear()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