Bayesian Methods
polars-ts includes a full suite of Bayesian time series models — from linear state-space models to fully nonlinear particle filters.
Kalman Filter & Smoother
Linear state-space model with exact inference. The RTS smoother provides optimally smoothed state estimates.
import polars_ts as pts
kf = pts.KalmanFilter()
kf.fit(df)
smoothed = kf.smooth(df)
forecast = kf.predict(df, h=12)
Bayesian Structural Time Series (BSTS)
Decomposes series into local level/trend, seasonality, and regression components with Bayesian priors.
Bayesian Exponential Smoothing
Exponential smoothing with priors over smoothing parameters and posterior predictive forecasting.
Bayesian VAR
Vector autoregression with Minnesota or Normal-Wishart priors for multivariate forecasting.
Gaussian Process Regression
Non-parametric Bayesian forecasting with temporal kernels.
Unscented & Ensemble Kalman Filters
Nonlinear state-space models via sigma-point and ensemble approximations.
Particle Filter / SMC
Fully nonlinear, non-Gaussian state-space models via Sequential Monte Carlo.
MCMC Wrapper
Thin adapter for NumPyro and PyMC backends for custom Bayesian models.
Bayesian Anomaly Scoring
Posterior predictive p-values and Bayes factors for principled anomaly detection.