Time Series Sequential Monte Carlo

Statistics
Introduced by
Gordon, Salmond & Smith
Year
1993
Type
Sequential Bayesian filtering algorithm
Family
Bayesian / computational

What does it do?

Time series sequential Monte Carlo (SMC), commonly called the particle filter, is a Bayesian simulation method that tracks the hidden state of a dynamical system as observations arrive one at a time.

A cloud of weighted random samples — particles — is propagated forward through the system dynamics, reweighted by how well each particle explains the new observation, and periodically resampled to keep the representation concentrated on plausible states.

The intuition behind the method

Imagine tracking a moving object using noisy sensor readings. Rather than committing to a single location estimate, you maintain many guesses (particles), each representing a plausible position. As each new sensor reading arrives, guesses that match the reading gain weight while unlikely ones lose it. Periodically you resample, discarding low-weight guesses and duplicating high-weight ones. The surviving, weighted guesses form the running picture of where the object probably is, and their spread shows how uncertain that belief is.

History

The bootstrap particle filter was introduced by Gordon, Salmond, and Smith (1993) as a recursive Bayesian filter that represents the state density by random samples, with no restriction to linear or Gaussian models. Their simulation study of bearings-only tracking compared it with the standard extended Kalman filter. The method is now used in engineering, finance, ecology, and epidemiology for real-time state tracking and related inference problems.

When to use it

Use time series SMC when the state-space model is nonlinear or has non-Gaussian noise, so that the Kalman filter does not apply. It suits tracking, navigation, stochastic volatility in finance, population dynamics in ecology, and compartmental epidemiological models with unobserved states. Do not use it when the model is linear-Gaussian: the Kalman filter is exact there and far cheaper. Also be cautious when the state is high-dimensional: the number of particles needed to cover the state space can grow rapidly, so monitor the effective sample size before relying on the estimates.

Limitations and considerations

  • Degrades in high-dimensional state spaces (curse of dimensionality): exponentially many particles may be needed.
  • Particle collapse can occur even with resampling when the likelihood is very informative relative to the prior.
  • Variance of estimates can be high if N is insufficient; choosing N is problem-dependent and often requires tuning.
  • Retrospective smoothing of past states requires additional backward passes, adding complexity.

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

Strengths

  • Makes no linearity or Gaussianity assumption about the transition or emission densities, so it applies where the extended Kalman filter approximation may fail; the original bearings-only tracking example reported performance greatly superior to the standard extended Kalman filter.
  • Produces a full approximate posterior over the hidden state at each time step, not just a point estimate.
  • Processes streaming data sequentially: each new observation updates the particle set without revisiting earlier observations.
  • Within each time step, propagation and weighting act on each particle independently, so they can be computed in parallel; resampling, however, requires coordination across all particles.
  • Requires only the ability to simulate from the transition density and evaluate the emission density, rather than closed-form algebra for the model.

Applications

  • Target tracking and navigation: estimating position and velocity of moving objects from noisy sensor data.
  • Stochastic volatility models in finance: filtering latent volatility from observed asset returns.
  • Epidemiological compartmental models: tracking hidden infection counts from reported case data.
  • Robotics and SLAM (simultaneous localization and mapping): real-time position estimation with uncertain maps.
  • Ecology: estimating hidden population sizes from survey or mark-recapture time series.
  • Speech processing and signal decoding: online inference over hidden phoneme or symbol sequences.

How it works

How it works

1

The model is expressed as a state-space: a transition density p(x_t | x_{t-1}) describes how the hidden state evolves over time (process model), and an emission density p(y_t | x_t) describes how observations arise from the state (measurement model). The model is first-order Markov: x_t depends on the past only through x_{t-1}, and each observation y_t depends only on the current state x_t, so observations are conditionally independent given the states. A common special case is additive noise, x_t = h(x_{t-1}) + ε_t and y_t = g(x_t) + e_t, in which the transition error ε_t and the measurement error e_t are mutually independent; the general form allows any transition and emission density. The method needs to sample from the transition density and evaluate the emission density; neither density needs to be linear or Gaussian.

Formula
x_t \sim p(x_t \mid x_{t-1}), \quad y_t \sim p(y_t \mid x_t)
2

At time t=0, N particles are drawn independently from the prior distribution p(x_0). Each particle represents a hypothesis about the initial hidden state. The number of particles N controls the approximation quality: more particles give a finer representation of the posterior at the cost of more computation.

3

At each time step t, every particle x_{t-1}^(i) is pushed forward by sampling from the transition density p(x_t | x_{t-1}^(i)), producing a proposed particle x̃_t^(i). This step mimics running the system dynamics forward under random noise, so the cloud of particles spreads to reflect process uncertainty.

Formula
\tilde{x}_t^{(i)} \sim p(x_t \mid x_{t-1}^{(i)})
4

Each proposed particle x̃_t^(i) is assigned an importance weight proportional to the likelihood of the new observation given that particle's state, p(y_t | x̃_t^(i)). Particles whose states are consistent with the observed data receive large weights; those in inconsistent regions receive weights near zero. Weights are then normalised to sum to one. This is the bootstrap case, in which the transition density itself serves as the proposal; other proposal distributions lead to a different weight formula.

Formula
w_t^{(i)} \propto p(y_t \mid \tilde{x}_t^{(i)})
5

When the effective sample size, roughly 1 / sum of squared weights, falls below a threshold set by the practitioner, a resampling step is triggered. Particles are drawn with replacement according to their weights, concentrating the cloud on high-weight regions and discarding low-weight hypotheses. The threshold is a tuning choice; a common practice is to set it as a fixed fraction of the particle count N, and resampling is performed only when the effective sample size falls below that level, because resampling at every step adds unnecessary Monte Carlo noise. Without resampling the particle cloud degenerates: a few particles accumulate nearly all the weight while the rest contribute almost nothing.

6

After weighting, the weighted empirical distribution of particles approximates the filtering posterior p(x_t | y_{1:t}), using the normalised weights from the weighting step. If resampling is performed at that time step, the weights are reset to 1/N, and the same approximation becomes an equally weighted average over the resampled particles. State estimates are computed as weighted (or, after resampling, equally weighted) means or medians of the particles, and approximate credible intervals can be read from the corresponding quantiles of the particle cloud. Smoothed estimates over past states require backward-pass algorithms such as the particle smoother.

Formula
p(x_t \mid y_{1:t}) \approx \sum_{i=1}^{N} w_t^{(i)}\,\delta_{x_t^{(i)}}(x_t)

Common pitfalls

  • Using too few particles: the posterior collapses to one or a handful of particles after resampling, giving unreliable estimates.
  • Resampling at every step rather than only when the effective sample size drops, which introduces unnecessary Monte Carlo noise.
  • Applying SMC to a linear-Gaussian model when the Kalman filter would give exact results at negligible cost.
  • Ignoring the choice of proposal distribution: using the prior as the proposal when a better (more data-informed) proposal is available leads to wasted computation.
  • Confusing the filtering posterior p(x_t | y_{1:t}) with the smoothing posterior p(x_t | y_{1:T}) and reporting the wrong quantity.

Frequently asked questions

How is SMC for time series different from standard MCMC?

MCMC explores the full joint posterior over all time steps at once and is inherently offline: it requires all data to be available before sampling begins. SMC processes observations sequentially and produces a running approximation to the filtering posterior at each time step, making it suitable for online or real-time applications. The two can be combined in SMC samplers or particle MCMC algorithms.

When should I prefer the Kalman filter over the particle filter?

The Kalman filter is the optimal and exact filter for linear-Gaussian state-space models and is far more efficient than the particle filter in that setting. Use the particle filter only when the transition or emission densities are nonlinear or the noise is non-Gaussian, which are exactly the cases where the Kalman filter is either an approximation (EKF, UKF) or inapplicable.

How many particles do I need?

There is no universal answer. The required number depends on the dimension of the hidden state and on how informative each observation is relative to the prior; in higher-dimensional states it can grow rapidly. A practical approach is to monitor the effective sample size over time and repeat the analysis with increasing N until the estimates stop changing.

What is the difference between filtering and smoothing in this context?

Filtering produces the posterior over the current hidden state given all observations up to and including the current time: p(x_t | y_{1:t}). Smoothing produces the posterior over a past state given all observations, including future ones: p(x_s | y_{1:T}) for s < T. Smoothing is retrospective and requires a backward pass; filtering is online and sequential.

Can SMC be used for parameter estimation, not just state filtering?

Yes. Static parameters can be included in an augmented state and estimated jointly, though this often leads to particle impoverishment. More robust approaches include particle MCMC (PMCMC), SMC² (sequential SMC for both states and parameters), or filters designed for static parameters, such as the Liu-West filter.

Related methods

Sources

  1. Gordon, N. J., Salmond, D. J., & Smith, A. F. M. (1993). Novel approach to nonlinear/non-Gaussian Bayesian state estimation. IEE Proceedings F — Radar and Signal Processing, 140(2), 107–113.

    Open DOI reference
  2. Doucet, A., de Freitas, N., & Gordon, N. (Eds.). (2001). Sequential Monte Carlo Methods in Practice. Springer.

    ISBN: 978-0387951461
  3. Handbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning (4 volumes) (2020), p. 398