Particle Filter with Measurement Error

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

What does it do?

A particle filter is a Sequential Monte Carlo algorithm that tracks the hidden state of a nonlinear, non-Gaussian dynamic system from sequential observations.

A weighted set of random samples (particles) represents the posterior state distribution at each time step. This entry describes the bootstrap form, in which particles are propagated with the state transition density. Measurement error enters through the observation likelihood, which scores each particle by how consistent it is with the noisy measurement received.

The intuition behind the method

Imagine tracking a vehicle whose GPS signal is corrupted by random noise. You run many hypothetical copies of the vehicle forward through time using the known dynamics, then score each copy by how well its predicted position matches the noisy GPS reading — that scoring step is the measurement-error model. Copies that agree with the observation get higher weight; the rest fade out. Periodically you resample so that high-weight copies multiply and low-weight ones disappear, keeping the particle cloud focused on where the vehicle actually is despite imperfect sensors.

History

The bootstrap filter was proposed by Gordon, Salmond and Smith (1993) as a recursive Bayesian filter for nonlinear, non-Gaussian state-space models. Their abstract describes representing the required state density by random samples that are updated and propagated, with no restriction to linear or Gaussian models, and a bearings-only tracking example in which the bootstrap filter performed much better than the standard extended Kalman filter. A broader treatment of sequential Monte Carlo methods is given in Doucet, de Freitas and Gordon (2001), Sequential Monte Carlo Methods in Practice.

When to use it

Choose this method for sequential, time-ordered data from a dynamic system whose transition or observation model is nonlinear or non-Gaussian, and where the observation noise must be modelled explicitly rather than ignored. Bearings-only tracking, as in Gordon et al. (1993), is a representative case, along with the other settings listed under applications. It is the appropriate choice when a Kalman-type filter cannot represent the model. Do not use it when the system is linear-Gaussian, because the Kalman filter is then exact and far cheaper. Avoid it when the state space is high-dimensional, since the number of particles needed to cover it can become impractical, and when the data are not sequential, where MCMC or variational methods are more suitable.

Limitations and considerations

  • Computational cost grows with N, and the number of particles needed for a given accuracy can be prohibitive in high-dimensional state spaces.
  • Weight degeneracy and particle impoverishment can occur without a suitable resampling rule.
  • Because the transition density is used as the proposal, the bootstrap form can be inefficient when the observations are much more informative than the prior transition suggests.
  • The measurement model must be specified correctly; a misspecified likelihood degrades posterior accuracy.
  • For independent samples, Monte Carlo error usually decreases roughly as 1/sqrt(N); resampling and weight degeneracy can make the practical rate worse, so high accuracy generally requires large N.

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

Strengths

  • Handles nonlinear state transitions and non-Gaussian observation noise without linearisation; the main approximation is Monte Carlo error, which shrinks as N grows, although resampling adds dependence among particles and requires diagnostics such as ESS monitoring.
  • Represents the full filtering distribution as a weighted particle set, so multimodal posteriors are not forced into a mean and covariance.
  • The measurement likelihood enters only through the weights, so the noise model can be changed (Gaussian, Laplace, Student-t) without altering the propagation step.
  • Missing observations are handled by skipping the weighting step at that time point, leaving the particles propagated through the dynamics.
  • Gordon et al. (1993) reported that the bootstrap filter performed much better than the standard extended Kalman filter on a bearings-only tracking example.

Applications

  • Target tracking in radar and sonar systems with noisy, possibly missing detections, including bearings-only tracking as in Gordon et al. (1993).
  • Robot localisation and simultaneous localisation and mapping (SLAM) with uncertain sensor readings.
  • Financial time-series filtering, such as estimating latent volatility from noisy asset prices.
  • Epidemiological state estimation: inferring true infection counts from imperfect surveillance data.
  • Neuroscience: decoding latent neural states from noisy spike-train recordings.
  • Hydrology and geophysics: assimilating uncertain sensor observations into dynamic Earth-system models.

How it works

How it works

1

The system is cast as a state-space model: a hidden Markov state x_t evolves through a (possibly nonlinear) transition function f with process noise v_t, and noisy observations y_t are generated by an observation function h corrupted by measurement error e_t. Both noise terms can follow any distribution, not just Gaussian.

Formula
x_t = f(x_{t-1}, v_t),\quad y_t = h(x_t, e_t)
2

At time 0, N particles are drawn from the prior distribution p(x_0). Each particle carries an equal initial weight 1/N, representing the initial uncertainty about the system state before any data arrive.

Formula
\{x_0^{(i)}, w_0^{(i)}\}_{i=1}^N \sim p(x_0)
3

At each new time step every particle is propagated forward by sampling from the transition density p(x_t | x_{t-1}^(i)), injecting process noise. This step captures how the true state evolves stochastically between observations.

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

When a new observation y_t arrives, each propagated particle x̃_t^(i) is weighted by the likelihood p(y_t | x̃_t^(i)), the probability of the observed value if the true state were that particle's position, and this is multiplied by the particle's previous weight w_{t-1}^(i), as in the weighting formula. The noise model (Gaussian, Laplace, Student-t, etc.) is chosen here, and the choice matters because a misspecified likelihood assigns incorrect weights to every particle. If the observation at time t is missing, this step is skipped.

Formula
w_t^{(i)} \propto w_{t-1}^{(i)}\, p(y_t \mid \tilde{x}_t^{(i)})
5

After the weights are normalised, the filter computes the effective sample size, ESS = 1 / sum(w_i^2). When ESS falls below a chosen threshold, for example N/2 as suggested in the FAQ, the particles are resampled with replacement in proportion to their weights and the weights are reset to equal values. Otherwise the weights are carried forward. This limits weight degeneracy, in which weight concentrates on a single particle after many steps. The posterior mean and variance of the state are computed from the weighted particle set.

Common pitfalls

  • Choosing too few particles: the posterior collapses to a handful of points, producing overconfident and biased state estimates.
  • Resampling at every step: resampling without an effective-sample-size check discards diversity in the particle cloud that is still useful.
  • Using a Gaussian measurement likelihood when the true observation noise is heavy-tailed or multimodal: outlying observations receive very small likelihoods for all particles, so the weights can degenerate or the filter can lose track of the state.
  • Treating measurement error as zero: with an exact observation, the likelihood gives zero weight to almost every particle, so the weights collapse and the filter fails. Modelling a realistic noise variance avoids this.
  • Confusing process noise and measurement noise: process noise drives state evolution through the transition, while measurement noise lives in the observation equation. Conflating them biases the posterior.

Frequently asked questions

How is this different from a standard Kalman filter?

The Kalman filter is optimal only when both the dynamics and the measurement equation are linear and all noise is Gaussian. A particle filter with measurement error makes no such assumptions: it handles arbitrary nonlinearities and any noise distribution, at the cost of higher computational effort.

How many particles do I need?

The required N depends on the dimension of the state, how sharp the posterior is, and the accuracy needed, so no single value applies across problems. Monitor the effective sample size, ESS = 1 / sum(w_i^2). If ESS drops below N/2, increase N or switch to a more efficient proposal, since the bootstrap form uses the transition density as its proposal.

What happens if my measurement model is wrong?

A misspecified likelihood causes all particles to receive incorrect weights. If the true noise is heavier-tailed than assumed (e.g. Gaussian assumed but actually Student-t), outliers are treated as nearly impossible observations and can cause the filter to lose track of the true state. Always validate the measurement model against held-out data or residual diagnostics.

Can I apply particle filtering to non-time-series problems?

Particle filtering is specifically designed for sequential (time-ordered) inference in dynamic state-space models. For static Bayesian inference without a temporal structure, standard MCMC or variational Bayes is more appropriate.

What is weight degeneracy and how do I fix it?

After many steps, almost all weight concentrates on a single particle while the rest carry negligible weight — this is degeneracy. The standard fix is systematic or stratified resampling triggered whenever ESS falls below a threshold, combined with a sufficiently large N to maintain particle diversity.

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