UCSVPosterior.forecast#
- UCSVPosterior.forecast(steps, *, n_paths=2000, seed=None)[source]#
Predictive draws of the series,
(n_paths, steps).Each path picks a kept draw, then propagates both random-walk log variances and the trend forward and adds the irregular.
Within a step both log variances are advanced first, and the trend then moves with the advanced variance of its innovation. That is one period ahead of the timing the sampler and
state_spaceuse, where the step from \(t\) to \(t + 1\) is scaled by \(q_t\).Kept draws are picked with replacement.
n_pathsis not validated: zero returns an empty array, and a negative value raises NumPy’sValueError.