- Introduced by
- Del Moral, Doucet, Jasra
- Year
- 2006
- Type
- Sequential Monte Carlo sampler for dynamic settings
- Family
- Bayesian / computational
What does it do?
Dynamic Sequential Monte Carlo (Dynamic SMC) is a Bayesian computational method that maintains and updates a population of weighted samples — particles — as new observations arrive over time.
It propagates particles through a dynamic system model, reweights them by how well they match the observed data, and periodically resamples to concentrate effort on high-probability regions, yielding online posterior inference for state-space and time-evolving models. On this page, Dynamic SMC refers to the sequential importance resampling particle filter for state-space models.
The intuition behind the method
Think of tracking an object with radar: you maintain a cloud of guesses about the object's position, each with a plausibility weight. When a new radar ping arrives, you move each guess forward according to motion physics (propagate), then score it by how close it lands to the ping (weight). Guesses that score badly fade out; good ones multiply. After enough pings the cloud concentrates where the object most likely is. Dynamic SMC does exactly this for nonlinear or non-Gaussian state-space models, where the Kalman filter's analytic solution does not apply.
History
Sequential Monte Carlo methods for state-space models are usually presented under the particle filter label, and Dynamic SMC, as used on this page, is one such filter. Del Moral, Doucet and Jasra (2006) propose a general methodology for sampling sequentially from a sequence of distributions defined on a common space, each known up to a normalising constant, using weighted samples propagated over time. Their abstract lists sequential Bayesian estimation, global optimisation and the computation of ratios of normalising constants among its applications. The name 'Dynamic SMC' does not appear in that abstract, and the general sampler framework is broader than the state-space filter described here.
When to use it
Use Dynamic SMC when the state-space model is nonlinear or non-Gaussian, the conditions under which the standard Kalman filter does not apply, and observations arrive sequentially or as a stream so that online updating is useful. Typical settings include tracking, navigation, robotics, stochastic volatility models and epidemiological filtering. Do not use it when the model is linear-Gaussian, where the Kalman filter gives the exact posterior more cheaply, or when a single batch of data is analysed offline with no sequential structure, where standard MCMC is simpler. Performance deteriorates in high-dimensional state spaces because weight degeneracy becomes severe; MCMC rejuvenation steps can restore particle diversity but do not remove this dimensional difficulty, so the state dimension should be kept modest relative to available computation.
Limitations and considerations
- Suffers from weight degeneracy in high-dimensional state spaces: the number of particles needed to keep weights well spread can grow very rapidly with state dimension.
- Resampling introduces additional Monte Carlo variance and can discard particle diversity (sample impoverishment).
- Approximation quality depends heavily on the choice of proposal distribution; a poor proposal inflates the variance of the importance weights.
- Computationally expensive relative to the Kalman filter when the model is actually linear-Gaussian.
- Smoothing (retrospective inference over past states) requires additional algorithms such as backward simulation.
- Static parameters: when parameters are included in the particle state, resampling collapses their values onto a few distinct ones (path degeneracy), which appears as parameter trajectories that become constant over time. Parameter inference therefore requires one of the extensions listed in the FAQ, such as particle MCMC, SMC-squared or MCMC rejuvenation steps; plain Dynamic SMC is not sufficient for parameter inference on its own.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Handles nonlinear and non-Gaussian state-space models where analytic solutions do not exist.
- Operates online: the posterior is updated incrementally as each new observation arrives, without reprocessing past data.
- Yields estimates of the marginal likelihood as a by-product of the weight updates, which can support model comparison; these are Monte Carlo estimates and vary between runs.
- Particles are propagated independently within each step, so the propagation can be run in parallel.
- The proposal q can be designed for a specific application, allowing the variance of the weights to be reduced where the problem structure allows.
Applications
- Target tracking and navigation systems where object position evolves nonlinearly over time.
- Stochastic volatility models in quantitative finance requiring online state estimation.
- Epidemiological surveillance: filtering transmission rates from streaming case-count data.
- Robot localisation and simultaneous localisation and mapping (SLAM).
- Signal processing for speech enhancement and sensor fusion in non-Gaussian noise environments.
- Parameter learning in dynamic Bayesian networks where latent states change over time.
How it works
How it works
Initialise N particles by drawing from the prior over the initial state. Each particle carries equal weight 1/N. These particles collectively represent the prior distribution before any data are processed.
Formula
x_0^{(i)} \sim \pi_0(x_0), \quad w_0^{(i)} = 1/NAt each time step t, move every particle forward by sampling from a proposal distribution q that depends on the previous particle state and the new observation. A common choice is the transition prior p(x_t | x_{t-1}), but a locally optimal or data-informed proposal can dramatically reduce variance.
Formula
x_t^{(i)} \sim q(x_t \mid x_{t-1}^{(i)}, y_t)Update each particle's importance weight by multiplying the old weight by the ratio of the incremental joint likelihood, p(y_t | x_t) p(x_t | x_{t-1}), to the proposal density q(x_t | x_{t-1}, y_t). Particles are drawn from q rather than from the target posterior, so this ratio corrects for the mismatch. The weights are then normalised to sum to one, and every estimate uses these normalised weights.
Formula
w_t^{(i)} \propto 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)}When the effective sample size, ESS = 1 / sum_i (w̃_i)^2, computed from the normalised weights, falls below a threshold, perform resampling: draw N new particles from the current weighted set, replacing low-weight particles with copies of high-weight ones. Reset all weights to 1/N. The threshold is chosen by the user. Resampling prevents weight degeneracy over long sequences.
The weighted particle cloud at time t approximates the filtering posterior p(x_t | y_1:t). Posterior means, weighted quantiles, and credible intervals for the current state are computed from the particle set using the normalised weights. Marginal likelihood estimates are also available as a by-product. All of these are Monte Carlo approximations that vary with N and the random seed.
Formula
\hat{E}[f(x_t)] = \sum_{i=1}^{N} \tilde{w}_t^{(i)} f(x_t^{(i)})Common pitfalls
- Using too few particles for an informative observation model, so that posterior summaries change noticeably between repeated runs. Stability across runs is a more reliable check than the particle count itself.
- Choosing the transition prior as the proposal without checking whether a better-informed proposal is feasible; when observations are informative, the prior proposal often gives high weight variance.
- Recording the effective sample size only after resampling: weights are reset to 1/N at each resampling step, so the ESS trace must be logged before resampling or degeneracy will not appear in the diagnostic.
- Forgetting that particle filter estimates are random: running the algorithm once without quantifying Monte Carlo error across repeated runs.
- Including static parameters in the particle state without a rejuvenation or particle-MCMC step; resampling then removes parameter diversity over time, producing path degeneracy for the fixed parameters.
Frequently asked questions
How is Dynamic SMC different from the standard Kalman filter?
The Kalman filter gives an exact analytic posterior only for linear-Gaussian models, and it is cheaper than particle methods in that case, so it should be preferred there. Dynamic SMC approximates the posterior numerically with particles and applies to nonlinear or non-Gaussian models. For linear-Gaussian models the particle approximation approaches the exact Kalman posterior as the number of particles grows, but at a finite N it remains an approximation with Monte Carlo error.
What is weight degeneracy and how does resampling help?
After many sequential updates, one or a few particles accumulate almost all of the weight while the rest become negligible, so the effective sample size collapses. Resampling replaces the weighted set with an equally weighted set by drawing particles with replacement in proportion to their weights, restoring diversity at the cost of added resampling variance.
How many particles do I need?
There is no universal rule. The required number depends on the state dimension and on how informative the observations are. A practical check is to repeat the run with different random seeds and increase N until the posterior summaries stop changing materially. Problems with informative likelihoods often need more particles than weakly observed ones.
Can Dynamic SMC estimate static model parameters as well as states?
Only with extensions. Naively including static parameters in the particle state causes path degeneracy, because parameter diversity is not refreshed at resampling. Particle MCMC (PMCMC), SMC-squared, or MCMC rejuvenation steps after resampling are the usual remedies. Plain Dynamic SMC, as described on this page, is a filtering method for the time-varying state and is not by itself a static-parameter sampler.
Is Dynamic SMC the same as a particle filter?
On this page, Dynamic SMC means the sequential importance resampling particle filter for state-space models. More broadly, the term particle filter usually refers to the bootstrap or auxiliary variants for online state-space filtering. Del Moral, Doucet and Jasra (2006) frame sequential Monte Carlo more generally, as sampling from sequences of distributions on a common space; this covers filtering and also sequential Bayesian estimation and ratios of normalising constants.
Related methods
Sources
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 referenceDoucet, A., de Freitas, N. & Gordon, N. (Eds.) (2001). Sequential Monte Carlo Methods in Practice. Springer.
ISBN: 978-0387951461