Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A crowd of guesses
You wake up in a long hallway with identical-looking doors and no idea where you are. Imagine a thousand clones of you, each guessing a different spot. Everyone walks forward together. When you pass a door, clones whose guess puts a door nearby get more votes, and the rest get fewer. Then the crowd is reshuffled so popular guesses are copied and unpopular ones fade. After a few doors, the whole crowd gathers around your true position. That’s a particle filter.
Robot localization (Monte Carlo localization), visual tracking, terrain-relative navigation, and nonlinear estimation problems where beliefs can split into several possibilities all use particle filters. Their strength is handling multiple hypotheses. Their weakness is cost in high dimensions.
- 1. A particle filter represents belief with…
- 2. Particles that agree with a measurement get…
- 3. Unlike a Kalman filter, a particle filter can represent…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The bootstrap filter
For particles , repeat:
- Predict: (simulate the model with noise).
- Weight: , then normalize.
- Estimate: (or the MAP or median).
- Resample: draw N particles with probabilities , and reset the weights to 1/N.
(Gordon, Salmond and Smith, 1993.)
Effective sample size
It runs from N (equal weights) down to 1 (a single particle carries everything). Resample when drops below about N/2.
- 1. N_eff for 4 equal weights:
- 2. Resampling…
- 3. The bootstrap filter's proposal is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Why it works: sequential importance sampling
We want expectations under the posterior . Sampling from a proposal q and weighting by is importance sampling (a8-7). With the motion model as proposal, the weight ratio reduces to the likelihood. As N → ∞, weighted averages converge to posterior expectations (Del Moral, 2004).
Practicalities
- Degeneracy: without resampling, after a few steps one particle holds all the weight.
- Resampling schemes: multinomial; systematic (one uniform draw, low variance, O(N)); stratified; residual.
- Sample impoverishment: after resampling, many duplicates. Add roughening jitter or MCMC moves. For kidnapped-robot recovery, inject a few random particles.
- Log-weights: compute , subtract the maximum, then exponentiate. Products of likelihoods underflow otherwise (a8-3).
- Curse of dimensionality: the required N grows exponentially with the effective dimension (Snyder et al., 2008). Rao–Blackwellization (FastSLAM) handles linear substructure analytically.
- 1. Systematic resampling uses…
- 2. Particle filters scale poorly with…
- 3. Weights should be computed in log space to avoid…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Importance weights for the bootstrap proposal
The target over trajectories is . The proposal is . Their ratio is , so the weight update is just the likelihood. ∎
Systematic resampling is unbiased
Particle i receives copies, which is or , with expectation exactly . ∎
Why N_eff measures degeneracy
For importance sampling, the variance of a weighted estimate is roughly that of a plain Monte Carlo estimate with samples (Kong, Liu and Wong, 1994). is its practical estimator.
Exercise 3.1: N_eff for weights (0.5, 0.5, 0, 0)
: effectively only 2 useful particles.
- 1. With the bootstrap proposal, the weight update equals…
- 2. Systematic resampling gives each particle a count of…
- 3. N_eff for weights (0.5, 0.5, 0, 0):
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Monte Carlo localization in a corridor
A robot starts lost in a 20 m corridor with five doors and a noisy door detector. It moves 0.35 m per step. MCL (Dellaert, Fox, Burgard and Thrun, 1999) begins with 2000 uniformly spread particles. After the first few door sightings the belief has five separate clusters: every door is consistent with the data. A Gaussian filter would average them into nonsense. As the robot passes the door spacing pattern, the wrong hypotheses die out, and after 40 steps the estimate is within 5 cm of the truth with 0.3 m spread. On the Gordon benchmark, the PF’s RMSE is 4.6 versus 21.8 for the EKF, which cannot represent the ± ambiguity of .
Particle filters in AI, robotics and aerospace
- Robot localization: AMCL in ROS; FastSLAM (Montemerlo et al., 2002) combines particles with per-particle EKFs.
- Terrain-relative navigation: particle filters match altimeter or radar profiles to terrain maps (TERCOM-like) for aircraft and landers.
- Tracking: multi-target tracking with random finite sets (PHD filters); visual object tracking (Condensation; Isard and Blake, 1998).
- Learning: sequential Monte Carlo for probabilistic programming and differentiable particle filters.
References
- N. Gordon, D. Salmond, A. Smith (1993). “Novel approach to nonlinear/non-Gaussian Bayesian state estimation.” IEE Proceedings F, 140(2).
- F. Dellaert, D. Fox, W. Burgard, S. Thrun (1999). “Monte Carlo localization for mobile robots.” ICRA.
- A. Doucet, N. de Freitas, N. Gordon (eds.) (2001). Sequential Monte Carlo Methods in Practice. Springer.
- M. S. Arulampalam, S. Maskell, N. Gordon, T. Clapp (2002). “A tutorial on particle filters for online nonlinear/non-Gaussian Bayesian tracking.” IEEE Trans. Signal Processing, 50(2).
- A. Kong, J. Liu, W. Wong (1994). “Sequential imputations and Bayesian missing data problems.” JASA, 89(425).
- C. Snyder, T. Bengtsson, P. Bickel, J. Anderson (2008). “Obstacles to high-dimensional particle filtering.” Monthly Weather Review, 136(12).
- M. Montemerlo, S. Thrun, D. Koller, B. Wegbreit (2002). “FastSLAM: a factored solution to the simultaneous localization and mapping problem.” AAAI.
- M. Isard, A. Blake (1998). “CONDENSATION: conditional density propagation for visual tracking.” IJCV, 29(1).