Sequential Monte Carlo

Statistics
Introduced by
Gordon, Salmond & Smith (particle filter); Del Moral, Doucet & Jasra (SMC samplers)
Year
1993 (particle filter); 2006 (SMC samplers)
Type
Sequential Bayesian computation
Family
Bayesian / computational

What does it do?

Sequential Monte Carlo (SMC) is a family of simulation-based algorithms that approximate a sequence of probability distributions with a weighted cloud of random draws, called particles, which are propagated and reweighted as new data arrive.

It is designed for nonlinear and non-Gaussian state-space models where closed-form filtering is not available. The same sequential machinery underlies SMC samplers, which apply the approach to any sequence of distributions defined on a common space, each known up to a normalising constant.

The intuition behind the method

Consider tracking a moving object from noisy sensor readings. Rather than keeping a single best estimate of its position, SMC maintains many hypothetical positions (particles), each carrying a weight that reflects how well it agrees with the data so far. When a new reading arrives, particles consistent with it gain weight and inconsistent ones lose weight. Because weight tends to concentrate on a few particles over time, the algorithm periodically resamples: low-weight particles are discarded and high-weight ones are duplicated. The weighted swarm then serves as a non-parametric approximation to the current posterior, which is updated as each observation comes in.

History

The bootstrap particle filter was introduced by Gordon, Salmond and Smith (1993) for recursive Bayesian state estimation without linearity or Gaussian-noise assumptions. In their original paper it was illustrated on a bearings-only tracking problem, where it substantially outperformed the standard extended Kalman filter. Del Moral, Doucet and Jasra (2006) extended the framework to SMC samplers, which apply sequential Monte Carlo to distributions known up to a normalising constant and can also estimate ratios of normalising constants.

When to use it

Choose SMC when the state-space model is nonlinear or its noise is non-Gaussian, so that the Kalman filter and its linearised variants are not adequate, and when observations arrive sequentially and the posterior must be updated online. The basic filter assumes a Markov state-space structure, observations that are conditionally independent given the state, transition and likelihood densities that can be evaluated up to normalisation, and a proposal that puts mass wherever the posterior does. The basic filter targets the latent state for known parameters; if the parameters are unknown, an extension such as particle marginal Metropolis-Hastings (PMMH) is needed. For static Bayesian problems, SMC samplers are an option when the posterior is complex or multimodal and MCMC chains mix poorly. Do not use SMC when the model is linear and Gaussian, where the Kalman filter is exact and cheaper. Avoid it when the state dimension is large, because weight degeneracy worsens quickly with dimension, and when the dataset is small and static, where standard MCMC is usually simpler.

Limitations and considerations

  • Suffers from particle degeneracy as state dimension grows: the number of particles needed to keep the approximation reliable rises steeply with dimension.
  • The choice of proposal distribution q strongly affects efficiency; a poor proposal wastes particles and inflates variance.
  • Resampling introduces sampling variance and can cause particle impoverishment (loss of diversity) if performed too often.
  • Point estimates have Monte Carlo error that shrinks at rate O(1/sqrt(N)) under standard conditions, so high accuracy requires many particles and substantial computation.

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

Strengths

  • Does not require linearising the model or assuming Gaussian noise; the approximation comes from the particle representation and the choice of proposal rather than from a simplification of the model.
  • Updates the posterior recursively, so estimates are available after each new observation without reprocessing the full history.
  • Propagation of particles is independent across particles between resampling steps, so the work can be distributed across processors.
  • Provides an estimate of the marginal likelihood as a by-product of the weights, which can support model comparison; the properties of this estimate depend on the algorithm settings.
  • Quality is governed mainly by the number of particles N, the proposal and the resampling scheme (for example multinomial or systematic resampling), which affects variance. Monitoring the ESS over time is the main diagnostic, and it should be combined with repeated runs using different random seeds to check that estimates agree. Convergence checks such as R-hat, used for MCMC, do not apply directly.

Applications

  • Tracking of moving objects from noisy sensor data, such as the bearings-only tracking problem treated in the original bootstrap filter paper.
  • Filtering and smoothing for nonlinear state-space models in fields such as econometrics and finance.
  • Offline Bayesian posterior computation and model comparison using SMC samplers.
  • State estimation in partially observed dynamic models, where a hidden state is inferred from noisy observations. Estimation of unknown static parameters is not handled by the basic filter and requires an extension such as particle marginal Metropolis-Hastings (PMMH).

How it works

How it works

1

Draw N particles from the prior distribution of the initial state and give each the same weight, 1/N. Before any data are used, the particle set represents the prior belief about the unknown state.

Formula
x_0^{(i)} \sim p(x_0), \quad w_0^{(i)} = 1/N, \quad i=1,\ldots,N
2

At each time step, each particle is moved forward by sampling from a proposal distribution q that may depend on the new observation. The unnormalised weight multiplies the previous weight by the observation likelihood and the transition density, and divides by the proposal density. The choice of proposal is therefore a central design decision, because it determines how well new particles land where the data place the posterior mass.

Formula
x_t^{(i)} \sim q(x_t \mid x_{t-1}^{(i)}, y_t), \quad \tilde{w}_t^{(i)} = w_{t-1}^{(i)} \frac{p(y_t \mid x_t^{(i)})\,p(x_t^{(i)}\mid x_{t-1}^{(i)})}{q(x_t^{(i)} \mid x_{t-1}^{(i)}, y_t)}
3

The unnormalised weights are divided by their sum so that they add to one. The normalised weights then define a discrete distribution over the particles that approximates the filtering distribution at the current time.

Formula
w_t^{(i)} = \tilde{w}_t^{(i)} \Big/ \sum_{j=1}^N \tilde{w}_t^{(j)}
4

When the effective sample size, ESS = (sum of squared normalised weights)^(-1), falls below N/2, the particles are resampled with replacement in proportion to their weights and all weights are reset to 1/N. This counteracts weight degeneracy, in which a few particles carry nearly all the weight, but it adds Monte Carlo noise. For this reason resampling is usually triggered adaptively rather than at every step.

Formula
\text{ESS} = \left(\sum_{i=1}^N (w_t^{(i)})^2\right)^{-1}; \text{ resample if ESS} < N/2
5

Posterior expectations, such as means, variances or tail probabilities, are approximated as weighted averages over the particles. No normality assumption is needed, because the particles give a flexible discrete approximation to the posterior.

Formula
\mathbb{E}[f(x_t)\mid y_{1:t}] \approx \sum_{i=1}^N w_t^{(i)} f(x_t^{(i)})

Common pitfalls

  • Using the prior as the proposal when the likelihood is informative. Most particles then receive negligible weight, and the estimates become unreliable.
  • Resampling at every step, which accelerates particle impoverishment and artificially reduces the effective diversity of the swarm.
  • Ignoring ESS: check it at each time step. A persistently low ESS indicates that N should be increased or the proposal improved.
  • Applying SMC to high-dimensional state spaces without dimension reduction or Rao-Blackwellisation, which can lead to impractical particle counts.
  • Treating particle-filter output as a posterior for unknown static parameters. The basic filter targets the latent state given known parameters; parameter inference needs an extension such as PMMH.

Frequently asked questions

What is the difference between SMC and MCMC?

MCMC builds a Markov chain that converges to a fixed target distribution and is typically applied when all data are available at once. SMC propagates a population of weighted particles and is designed for data that arrive sequentially, although SMC samplers also handle static targets. SMC additionally provides an estimate of the marginal likelihood from its weights, which standard MCMC does not directly provide.

How many particles do I need?

There is no universal rule. Judge N by checking the ESS over time and by seeing whether repeated runs with different random seeds give similar estimates. If the ESS is persistently low, increase N or improve the proposal. For high-dimensional states the required N can become impractical, so dimension reduction or Rao-Blackwellisation should be considered alongside a larger N.

Why is resampling necessary and what are its drawbacks?

Without resampling, importance weights degenerate over time until a single particle carries nearly all the weight and the approximation collapses. Resampling removes low-weight particles and replicates high-weight ones, maintaining representational diversity. The drawback is that resampling introduces Monte Carlo variance and can cause particle impoverishment. Triggering resampling only when the ESS drops below a threshold (adaptive resampling) is the usual way to limit these costs.

When should I use SMC instead of the Kalman filter?

Use the Kalman filter when your model is linear and all noise is Gaussian, since it is exact and computationally cheap. When the dynamics are nonlinear or the noise is non-Gaussian, the Kalman filter requires linearisation (EKF) or sigma-point approximation (UKF), both of which can be inaccurate. SMC makes no such model linearisation, at the cost of higher computation.

What is a particle filter?

A particle filter is the common name for SMC applied to state-space models, where observations arrive sequentially and the aim is to track a hidden state. The terms are often used interchangeably. SMC samplers (Del Moral, Doucet and Jasra, 2006) are a broader framework: they propagate weighted particles through a sequence of distributions on a common space, each known up to a normalising constant, which also supports sequential Bayesian estimation and the computation of ratios of normalising constants.

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. Del Moral, P., Doucet, A., & Jasra, A. (2006). Sequential Monte Carlo samplers. Journal of the Royal Statistical Society: Series B, 68(3), 411–436.

    Open DOI reference
  3. Robustness in Econometrics, p. 58