Dynamic Bayesian Inference

Statistics
Introduced by
West & Harrison (dynamic linear models); Dean & Kanazawa (dynamic Bayesian networks)
Year
1989–1997
Type
Bayesian sequential / online inference framework
Family
Bayesian / computational

What does it do?

Dynamic Bayesian inference applies Bayes' rule repeatedly as observations arrive in sequence.

Rather than fitting one static model to a fixed dataset, it tracks the posterior distribution over latent states or parameters over time, using a transition model to carry each posterior forward as the prior for the next step.

The intuition behind the method

Think of a weather forecaster who revises today's estimate of atmospheric pressure each hour as new sensor readings come in. Dynamic Bayesian inference formalises exactly this process: each observation shifts the current probability distribution over unknown states through Bayes' rule, and a transition model predicts how those states change between time steps. The result is a continuous, principled update cycle rather than a single batch analysis.

History

West and Harrison's dynamic linear model framework provides recursive Bayesian updates for Gaussian state-space models. Their book Bayesian Forecasting and Dynamic Models (2nd ed., Springer, 1997) gives a consolidated treatment of this approach. Dynamic Bayesian networks extend the same sequential idea to graphical models for temporal domains. Murphy's doctoral dissertation (University of California, Berkeley, 2002) covers the representation, inference and learning of dynamic Bayesian networks and is cited here as a reference for that setting.

When to use it

Dynamic Bayesian inference is the right choice when data arrive sequentially and inferences must be updated in real time, when the system evolves over time according to a known or learnable transition model, or when interest lies in filtering (current state) or smoothing (retrospective state estimates). It is less appropriate for purely cross-sectional data with no temporal structure, for problems where computational resources do not support sequential processing, or when the state-space dimension is very high and particle approximations become prohibitively expensive.

Limitations and considerations

  • The state-transition density p(θ_{t+1} | θ_t) must be specified. The recursion inherits any error in these assumed dynamics, and new observations may take many steps to reveal a misspecified transition model.
  • Outside the linear-Gaussian case the integrals in the update and transition steps have no closed form and must be approximated. Particle methods become harder as the state dimension grows.
  • Errors in the observation or transition model propagate forward, so a misspecified early step affects every subsequent posterior.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • A new observation updates the posterior directly, so the model does not have to be refitted on the full history each time data arrive.
  • The posterior is available at every time step, so uncertainty is carried through the sequence rather than reported only for a single batch fit.
  • Earlier observations and prior knowledge enter each update only through the predictive distribution produced by the transition model, which keeps the recursion compact.
  • In the linear-Gaussian case the recursion gives the exact Kalman filter update rather than an approximation.
  • The same recursion supports filtering and prediction; smoothing additionally requires a backward pass over the stored quantities.

Applications

  • Object tracking and navigation systems that must estimate position and velocity in real time from noisy sensor streams.
  • Speech recognition and natural language processing via hidden Markov models and their Bayesian extensions.
  • Autonomous robotics using simultaneous localisation and mapping under uncertainty.
  • Cognitive science models of human learning and belief updating over repeated trials.

How it works

How it works

1

At time t the prior is the distribution over the latent state or parameters before y_t is observed. At the first step it is the elicited initial prior; at later steps it is the predictive distribution carried forward from the previous time step through the transition model.

Formula
p(\theta_t \mid y_{1:t-1})
2

The observation model gives the probability of the observed value y_t for each possible value of the latent state θ_t. Its form depends on the data: Gaussian in the linear-Gaussian case underlying the Kalman filter, categorical for discrete outcomes, and so on.

Formula
p(y_t \mid \theta_t)
3

Bayes' rule multiplies the prior by the likelihood and renormalises to give the posterior at time t. For linear-Gaussian models this product has a closed form and yields the Kalman update. For non-linear or non-Gaussian models the posterior has no closed form and is approximated, for example by particle filters or variational methods.

Formula
p(\theta_t \mid y_{1:t}) \propto p(y_t \mid \theta_t)\, p(\theta_t \mid y_{1:t-1})
4

The posterior at time t is passed through the state-transition density, and the current state is integrated out. This gives the predictive distribution for θ_{t+1} given y_{1:t}, which becomes the prior at the next time step.

Formula
p(\theta_{t+1} \mid y_{1:t}) = \int p(\theta_{t+1} \mid \theta_t)\, p(\theta_t \mid y_{1:t})\, d\theta_t

Common pitfalls

  • Choosing a state-transition density so rigid that it cannot follow the true dynamics; the resulting posterior can look concentrated while being wrong.
  • Using too few particles in a particle filter, so that importance weights collapse onto a small number of particles over successive time steps.
  • Checking the observation model only on the data used to build it; predictive checks at held-out time points are needed to detect misfit.
  • Reporting the filtered posterior at time t as an estimate of the state at earlier times. Smoothing, which also conditions on later observations, is needed for retrospective estimates.
  • Fixing the transition and observation noise variances (or their analogues in non-Gaussian models) by convenience rather than by assessment, and not checking how the posterior responds to them. A sensitivity analysis over a plausible range of variances shows whether the conclusions depend on that choice.
  • Judging fit from the filtered posterior alone. One-step-ahead predictive residuals over time show whether the model keeps tracking the observations; a run of large standardised residuals signals misfit in the dynamics or the observation model.

Frequently asked questions

How does dynamic Bayesian inference differ from static Bayesian inference?

Static Bayesian inference fits a model to a fixed dataset and produces a single posterior. Dynamic Bayesian inference adds a temporal structure: a transition model predicts how parameters or latent states evolve between time steps, and the posterior is updated recursively each time a new observation arrives.

Is the Kalman filter a special case of dynamic Bayesian inference?

Yes. The Kalman filter is the exact closed-form solution to dynamic Bayesian inference when the state-transition and observation models are both linear and all noise distributions are Gaussian. The extended and unscented Kalman filters are approximations for non-linear models and carry no exactness guarantee. Particle filters and variational methods extend the approach to non-linear and non-Gaussian settings.

What is the difference between filtering, smoothing, and prediction in this framework?

Filtering estimates the current latent state given all data up to now. Smoothing revises past state estimates by also conditioning on future observations. Prediction propagates the current posterior forward in time before a new observation arrives.

When should I use a particle filter rather than a Kalman filter?

Use a Kalman filter (or its extended or unscented variants) when the state-transition and observation models are approximately linear and Gaussian. Choose a particle filter when non-linearity or non-Gaussian noise is substantial, at the cost of higher computation proportional to the number of particles.

How many particles do I need in a particle filter?

There is no general answer; the adequate number depends on the dimension of the state, the degree of non-linearity and non-Gaussianity, and the application. Monitor the effective sample size at each time step. As a working heuristic, treat the particle count as inadequate if the effective sample size falls well below the number of particles at many time steps, or if independent runs with different random seeds give materially different posterior summaries. In that case, increase the number of particles and repeat the check.

Related methods

Sources

  1. West, M. & Harrison, J. (1997). Bayesian Forecasting and Dynamic Models (2nd ed.). Springer.

    ISBN: 978-0387947259
  2. Murphy, K. P. (2002). Dynamic Bayesian Networks: Representation, Inference and Learning. Ph.D. Dissertation, University of California, Berkeley.

    Open publication reference