statsmodels.tsa.statespace.simulation_smoother.SimulationSmoothResults¶
- class statsmodels.tsa.statespace.simulation_smoother.SimulationSmoothResults(model, simulation_smoother, random_state=None)[source]¶
Results from applying the Kalman smoother and/or filter to a state space model.
- Parameters:¶
- model
Representation A Statespace representation
- simulation_smoother{{prefix}}SimulationSmoother object
The Cython simulation smoother object with which to simulation smooth.
- random_state{
None,int,Generator,RandomState},optional If seed is None (or np.random), the numpy.random.RandomState singleton is used. If seed is an int, a new
numpy.random.RandomStateinstance is used, seeded with seed. If seed is already anumpy.random.Generatorornumpy.random.RandomStateinstance then that instance is used.
- model
- Attributes:¶
- model
Representation A Statespace representation
- dtype
dtype Datatype of representation matrices
- prefix
str BLAS prefix of representation matrices
- simulation_output
int Bitmask controlling simulation output.
- simulate_statebool
Flag for if the state is included in simulation output.
- simulate_disturbancebool
Flag for if the state and observation disturbances are included in simulation output.
- simulate_allbool
Flag for if simulation output should include everything.
generated_measurement_disturbancendarrayRandomly drawn measurement disturbance variates
generated_state_disturbancendarrayRandomly drawn state disturbance variates, used to construct generated_state and generated_obs.
generated_obsndarrayGenerated vector of observations by iterating on the observation and transition equations, given a random initial state draw and random disturbance draws.
generated_statendarrayGenerated vector of states by iterating on the transition equation, given a random initial state draw and random disturbance draws.
simulated_statendarrayRandom draw of the state vector from its conditional distribution.
simulated_measurement_disturbancendarrayRandom draw of the measurement disturbance vector from its conditional distribution.
simulated_state_disturbancendarrayRandom draw of the state disturbanc e vector from its conditional distribution.
- model
Methods
simulate([simulation_output, ...])Perform simulation smoothing
Properties
Randomly drawn measurement disturbance variates
Generated vector of observations by iterating on the observation and transition equations, given a random initial state draw and random disturbance draws.
Generated vector of states by iterating on the transition equation, given a random initial state draw and random disturbance draws.
Randomly drawn state disturbance variates, used to construct generated_state and generated_obs.
Random draw of the measurement disturbance vector from its conditional distribution.
Random draw of the state vector from its conditional distribution.
Random draw of the state disturbanc e vector from its conditional distribution.