Compute one-step-ahead predictive distributions for all timesteps
Given samples from the posterior over parameters, return the predictive
distribution over observations at each time T
, given observations up
through time T-1
.
sts_one_step_predictive(observed_time_series, model, parameter_samples)
observed_time_series |
|
model |
An instance of |
parameter_samples |
|
forecast_dist a tfd_mixture_same_family
instance with event shape
list(num_timesteps)
and batch shape tf$concat(list(sample_shape, model$batch_shape))
, with
num_posterior_draws
mixture components. The t
th step represents the
forecast distribution p(observed_time_series[t] | observed_time_series[0:t-1], parameter_samples)
.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.