statsmodels.tsa.statespace.simulation_smoother.SimulationSmoother.simulator#

SimulationSmoother.simulator(nsimulations, rng=None)[source]#

Retrieve a simulator for the statespace model

Parameters:
nsimulationsint

The number of observations to simulate.

rng{None, int, numpy.random.Generator, numpy.random.RandomState}, optional

If rng is None or an int, a new Generator is created (seeded with rng if an int is given). If rng is already a Generator or RandomState instance, that instance is used.

Returns:
SimulationSmoothResults

Object holding the output of the simulation smoother.