Time Series Bayesian Inference
Bayesian Inference for Time Series Models · Also known as: Bayesian time series analysis, Bayesian state-space modeling, probabilistic time series inference, BSTS
Time series Bayesian inference applies Bayes' theorem sequentially to time-ordered observations, maintaining a full probability distribution over hidden states and model parameters at every time step. This framework unifies state-space models, dynamic linear models, and particle filters, producing calibrated uncertainty for both filtering (real-time) and retrospective smoothing tasks.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
+2 more
When to use it
Use time series Bayesian inference when you need coherent uncertainty quantification across all time steps — for example in online forecasting, anomaly detection, or policy evaluation under uncertainty. It is especially valuable when the dataset is short, the signal is noisy, structural changes (changepoints) are possible, or prior knowledge about dynamics is available. Avoid it when the time series is long and stationary and a classical ARIMA or exponential smoothing model suffices, or when real-time computational budget is very tight and an approximate frequentist filter is acceptable.
Strengths & limitations
- Provides full posterior distributions over states and parameters, not just point estimates, enabling honest uncertainty quantification at every time step.
- Naturally handles missing observations by marginalizing over unobserved values within the Bayesian framework.
- Prior knowledge about dynamics, seasonal patterns, or noise levels can be formally encoded and updated.
- Supports model comparison and selection through marginal likelihoods and Bayes factors.
- Changepoints and structural breaks can be modeled explicitly as discrete latent events.
- Computational cost scales with time series length and model complexity; non-linear non-Gaussian models require particle filters or MCMC, which can be slow.
- Model specification — choosing the state transition structure and prior distributions — requires domain expertise and can strongly influence results.
- Posterior inference can be sensitive to misspecified observation noise variance, leading to overconfident or underconfident intervals.
Frequently asked
What is the difference between filtering and smoothing in this framework?
Filtering estimates the hidden state at time t using only data up to and including time t — this is the real-time estimate. Smoothing revisits those estimates after the full time series is available, conditioning on all observations, which generally gives tighter posteriors. Both are valid outputs; the choice depends on whether the application is online or retrospective.
When should I use a particle filter instead of a Kalman filter?
The Kalman filter gives an exact Bayesian update for linear Gaussian state-space models. When either the transition or observation equation is non-linear, or when the noise is non-Gaussian, the Kalman filter is no longer exact. In those cases a particle filter (sequential Monte Carlo) approximates the posterior arbitrarily well by propagating a weighted set of sample states, at the cost of greater computation.
How do I choose the state-space structure?
Start from domain knowledge: identify the components that should be modeled (local level, trend, seasonality, regressors, changepoints). Dynamic linear models provide modular building blocks for each component that can be stacked. Model comparison via marginal likelihoods or WAIC can then guide selection among competing structures.
Can I use this method with irregularly spaced or missing observations?
Yes. Missing values are handled naturally by skipping the observation update step for those time points — the model simply propagates the prior forward through the transition equation. Irregular spacing is accommodated by parameterizing the transition covariance as a function of the elapsed time between observations.
What software implements Bayesian time series inference?
Stan and PyMC support custom state-space models via MCMC. The R packages dlm and KFAS implement dynamic linear models with the Kalman filter and smoother. The Python library bsts (via R bridge) and Tensorflow Probability's structural time series module implement Bayesian structural time series. StatWise provides a guided interface for common DLM and changepoint specifications.
Sources
- West, M. & Harrison, J. (1997). Bayesian Forecasting and Dynamic Models (2nd ed.). Springer. ISBN: 978-0387947259
- Prado, R. & West, M. (2010). Time Series: Modeling, Computation, and Inference. CRC Press. ISBN: 978-1420093360
How to cite this page
ScholarGate. (2026, June 3). Bayesian Inference for Time Series Models. ScholarGate. https://scholargate.app/en/bayesian/time-series-bayesian-inference
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Bayesian RegressionBayesian↔ compare
- Dynamic Bayesian NetworkBayesian↔ compare
- Hierarchical Bayesian InferenceBayesian↔ compare
- Kalman FilterBayesian↔ compare
- Particle FilterBayesian↔ compare
- Sequential Monte CarloBayesian↔ compare