- Introduced by
- Gordon, Salmond & Smith
- Year
- 1993
- Type
- Sequential Monte Carlo estimator
What does it do?
The particle filter, introduced by Gordon, Salmond, and Smith in 1993, is a sequential Monte Carlo algorithm for approximating the Bayesian filtering distribution in nonlinear and non-Gaussian state-space models.
Rather than tracking a single best estimate, it maintains a set of N weighted random samples, called particles, that together represent the posterior distribution of the hidden state at each time step as observations arrive. The method makes no linearity or Gaussianity assumption about the model.
The intuition behind the method
Imagine tracking a robot's position when its motion is noisy and its sensors are imprecise. Instead of assuming a single Gaussian error and applying a Kalman filter, scatter a large number of hypothetical positions (particles) across the plausible state space. When a new sensor reading arrives, re-weight each particle by how well its position explains the observation, so particles that predicted the reading well receive more weight. Then resample: draw a fresh set of particles in proportion to their weights, discarding unlikely ones and duplicating likely ones. Repeating this predict-weight-resample cycle at every time step gives a non-parametric picture of the posterior. The particles tend to concentrate where the state is probable, but with a finite N the set is only an approximation, and repeated resampling can reduce its diversity.
History
Recursive Bayesian estimation and importance sampling were studied well before 1993, but the modern particle filter was established by Gordon, Salmond, and Smith (1993), who presented the bootstrap filter in IEE Proceedings F. Their simulation of bearings-only tracking reported that the bootstrap filter performed much better than the standard extended Kalman filter on that problem. Doucet, Godsill, and Andrieu (2000) in Statistics and Computing treated sequential Monte Carlo sampling methods for Bayesian filtering. The edited volume by Doucet, de Freitas, and Gordon (2001) collected applications of these methods. Later extensions, including auxiliary, Rao-Blackwellised and particle Markov chain Monte Carlo variants, build on this framework.
When to use it
Use a particle filter when the state-space model is nonlinear and/or non-Gaussian, so that a Kalman-type filter cannot be applied directly. Typical cases include transition or observation models with nonlinear functions (for example, bearing-only tracking), and observation noise that is heavy-tailed, multi-modal or otherwise non-Gaussian. The method is best suited to state spaces of low to moderate dimension, because the number of particles needed for an adequate approximation grows rapidly with dimension. It processes observations one at a time and does not need the full data history stored, which makes it suitable for streaming settings. Do not use a particle filter for linear-Gaussian models, where the Kalman filter gives the exact posterior at much lower cost, or for high-dimensional states without a dimension-reduction or a carefully designed proposal.
Limitations and considerations
- The number of particles needed for an accurate posterior grows rapidly with state dimension, so naive particle filters become infeasible for high-dimensional states.
- Without resampling, weight degeneracy concentrates the weight on very few particles; with repeated resampling, sample impoverishment reduces particle diversity.
- Computation per time step scales with N, so for real-time use the affordable number of particles is limited by processing speed.
- The bootstrap choice of prior as proposal can be very inefficient when the likelihood is much narrower than the prior, since most particles then receive negligible weight.
- The output is a set of weighted samples with no closed form, so uncertainty is quantified only up to Monte Carlo error.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Handles arbitrary nonlinear dynamics and non-Gaussian observation noise without approximating the model structure.
- Gives a full approximation to the filtering distribution, not only a point estimate or a Gaussian summary.
- Updates the posterior sequentially as each observation arrives, without reprocessing earlier data.
- Propagation and weighting of each particle are independent and easy to parallelise; resampling requires communication among all particles and is the main parallel bottleneck.
- The approximation converges to the true posterior as the number of particles N grows, under mild regularity conditions.
Applications
- Object and target tracking: estimating the position, velocity, and orientation of moving objects from noisy sensor data in radar, sonar, and video surveillance.
- Robot localisation and simultaneous localisation and mapping (SLAM): maintaining a distribution over robot pose in an unknown environment.
- Financial econometrics: filtering latent volatility in stochastic volatility models (e.g., Heston model) and estimating hidden state variables in non-Gaussian time series.
- Navigation: GPS-denied inertial navigation and sensor fusion for autonomous vehicles.
- Biomedical signal processing: tracking neural spike dynamics and physiological state variables from EEG or ECG.
- Weather and geophysical data assimilation: ensemble-based methods related to particle filters are used in numerical weather prediction.
How it works
How it works
The foundation is a hidden Markov model in continuous state space: a transition (process) density p(x_t | x_{t-1}) describes how the latent state x_t evolves from the previous state, and an observation (measurement) density p(y_t | x_t) links the latent state to the observed data y_t. Neither density is required to be linear or Gaussian, which is the main difference from the Kalman filter.
Formula
x_t \sim p(x_t \mid x_{t-1}), \quad y_t \sim p(y_t \mid x_t)At each time step, the N particles {x_t^(i)} are propagated forward by sampling from a proposal distribution q, typically chosen as the transition prior p(x_t | x_{t-1}). Each particle's unnormalised weight is updated by multiplying its previous weight by the ratio of the target density to the proposal density. When the transition prior is used as the proposal, this ratio reduces to the likelihood p(y_t | x_t^(i)). The step corrects for the difference between where particles were drawn and where the posterior places its mass.
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)}The raw weights are normalised to sum to one so that they form a discrete probability distribution over the N particles. The normalised weights {w_tilde^(i)} are used to compute posterior expectations: any function of the state is approximated by its weighted average over the particles.
Formula
\tilde{w}_t^{(i)} = \frac{w_t^{(i)}}{\sum_{j=1}^{N} w_t^{(j)}}The filtering posterior p(x_t | y_{1:t}) is represented as a weighted empirical measure: a sum of Dirac delta masses, one centred on each particle x_t^(i), with mass equal to its normalised weight. This discrete approximation converges to the true posterior as N tends to infinity, under mild regularity conditions.
Formula
p(x_t \mid y_{1:t}) \approx \sum_{i=1}^{N} \tilde{w}_t^{(i)}\, \delta\bigl(x_t - x_t^{(i)}\bigr)Without resampling, weight degeneracy occurs: after a few steps nearly all the weight concentrates on a single particle, and the approximation becomes uninformative. A common rule is to resample when the effective sample size N_eff, estimated as the reciprocal of the sum of squared normalised weights, falls below a threshold such as N/2. The original bootstrap filter resamples at every step; the threshold rule is a later refinement. When resampling, N new particles are drawn with replacement from the current set in proportion to their weights, and all weights are reset to 1/N. Several resampling schemes exist, including multinomial, systematic, stratified and residual resampling; systematic resampling is a common choice because of its low variance and cheap implementation.
Formula
\text{If } \hat{N}_{\mathrm{eff}} = \Bigl(\sum_{i=1}^N (\tilde{w}_t^{(i)})^2\Bigr)^{-1} < N/2, \text{ resample } N \text{ particles with replacement.}Common pitfalls
- Using too few particles for the complexity of the problem. Check that posterior summaries are stable as N increases.
- Ignoring weight degeneracy. Monitor N_eff at each step and resample when it falls below the chosen threshold.
- Sample impoverishment after many resampling steps: particle diversity can collapse. Remedies include jittering or roughening the particles, regularised particle filters, and MCMC rejuvenation moves.
- Using the prior transition as the proposal when the likelihood is narrow relative to the prior. In this setting a likelihood-informed proposal or an auxiliary particle filter is far more efficient.
- Applying a particle filter to a high-dimensional state without dimension reduction or a targeted proposal. The results may not be meaningful for any feasible N.
Frequently asked questions
How does a particle filter differ from a Kalman filter?
The Kalman filter is the exact Bayesian solution for linear-Gaussian state-space models, representing the posterior as a Gaussian characterised by a mean and covariance. It is computationally cheap but does not apply when the model is nonlinear or the noise is non-Gaussian. The particle filter makes no linearity or Gaussianity assumption: it represents the posterior non-parametrically as a set of weighted samples and can handle arbitrary model forms. The trade-off is computational cost, because particles must be propagated individually and N may need to be large.
What is weight degeneracy and how is it fixed?
Weight degeneracy occurs when, after a few time steps, nearly all of the total weight concentrates on one or two particles, so the effective sample size N_eff collapses. The standard remedy is resampling: draw N new particles with replacement from the current set in proportion to their weights and reset all weights to 1/N. This discards low-weight particles and duplicates high-weight ones. Resampling is often triggered when N_eff falls below a chosen threshold, for example N/2. Resampling introduces its own problem, sample impoverishment, so MCMC rejuvenation moves or kernel-based regularisation are often added.
How many particles do I need?
There is no universal answer. The required N depends on the state dimension, how peaked the likelihood is, and the accuracy needed. A practical diagnostic is to run the filter with increasing numbers of particles and check that posterior summaries, such as means and credible intervals, stabilise. The requirement grows quickly with state dimension, and in higher dimensions structure-exploiting methods such as Rao-Blackwellisation or better proposal construction become necessary.
Can a particle filter estimate model parameters as well as states?
Static parameters do not change over time, so naive particle filtering on the joint state-parameter space degrades because the parameter particles stop moving and diversity is lost. Practical approaches include adding artificial jitter or kernel smoothing to the parameter particles, and particle Markov chain Monte Carlo (PMCMC), which uses the particle filter as a likelihood estimator inside an MCMC scheme and so provides a principled framework for parameter inference, though at considerable computational cost.
Related methods
Sources
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 referenceDoucet, A., Godsill, S. J., & Andrieu, C. (2000). On sequential Monte Carlo sampling methods for Bayesian filtering. Statistics and Computing, 10(3), 197–208.
Open DOI referenceDoucet, A., de Freitas, N., & Gordon, N. (Eds.). (2001). Sequential Monte Carlo Methods in Practice. Springer-Verlag.
ISBN: 978-0-387-95146-1