STARResult.simulate#
- STARResult.simulate(n=200, *, seed=None, burn=_SIMULATION_BURN)[source]#
A fresh sample path at the fitted parameters.
The transition variable is the series’ own
delay-th lag, so the regime weight at each step is read from the simulated past through the fitted transition – a hard switch or the smooth function – and the two autoregressions are blended by it.burninitial periods from a zero start are discarded.- Parameters:
- Return type:
- Returns:
An array of shape
(n,).- Raises:
SpecificationError – If the counts are not usable, or the transition variable is an external series whose future the result cannot know.