Documentation

Advanced usage

Configure seasonal periods, changepoints and inference methods for a Murphet time series.

Choose a time unit

Provide a numeric time index in consistent units. On monthly data, periods=12 captures a yearly cycle. To combine cycles, pass paired lists such as periods=[12, 3] and num_harmonics=[3, 1].

Allow trend changes

n_changepoints controls candidate changes in trend. The delta_scale and gamma_scale priors influence their size and transition steepness. Compare settings on later observations held out from fitting.

Select an inference method

Use inference="map" to estimate the posterior mode, "advi" for a variational approximation, or "nuts" for posterior sampling. Sampling requires more compute and lets you inspect posterior uncertainty.

Package guide on GitHub · All documentation