Time Series Particle Filter

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

What does it do?

The time series particle filter is a Sequential Monte Carlo method that tracks the hidden state of a nonlinear, non-Gaussian state-space model as new observations arrive one at a time.

It represents the evolving posterior distribution over the latent state as a weighted cloud of random samples (particles), updating them at each time step through propagation, likelihood weighting, and resampling.

The intuition behind the method

Imagine tracking an aircraft whose position is uncertain and whose sensor readings are noisy. The particle filter maintains hundreds of candidate positions (particles), each a plausible guess. When a new radar ping arrives, particles consistent with that ping get higher weight; inconsistent particles shrink. Periodically the cloud is resampled proportional to weight, so particles cluster where the posterior is concentrated. This process repeats for each new observation, producing a running estimate of where the aircraft actually is together with a measure of how confident we are.

History

Gordon, Salmond and Smith (1993) proposed the bootstrap filter, which represents the required state density by random samples that are propagated and updated recursively, with no restriction to linear or Gaussian models. Their paper includes a bearings-only tracking simulation in which the bootstrap filter performed far better than the standard extended Kalman filter. The edited volume by Doucet, de Freitas and Gordon (2001) brings together theory, algorithms and applications of sequential Monte Carlo methods.

When to use it

Choose this method when the state-space model is nonlinear, or when the process or observation noise is non-Gaussian, so that the linear-Gaussian assumptions of the Kalman filter do not hold and an approximation is needed. Typical settings include object tracking, target localisation, stochastic volatility, epidemiological surveillance, and other sequential problems where the filtering distribution may be multimodal or heavy-tailed. The method assumes that the latent state is a Markov process, that observations are conditionally independent given the current state, that the transition density can be sampled from, that the observation density can be evaluated (up to a constant) and is correctly specified, and that the proposal distribution covers the support of the posterior. Avoid it when the state dimension is high relative to the number of particles that can be afforded, because weight degeneracy then becomes severe. For linear-Gaussian models the Kalman filter gives the exact posterior at much lower cost. For high-dimensional state spaces, consider specialised particle methods or approximate filters such as the ensemble Kalman filter, which assumes approximately Gaussian forecast errors and so is not a general substitute in strongly non-Gaussian settings.

Limitations and considerations

  • Each time step propagates and weights all N particles, so run time grows with N. The N needed for a reliable approximation depends on how informative the observations are relative to the transition density.
  • The weighting step as written uses the transition density as the proposal. When the observation is much more informative than the one-step prediction, only a few particles receive substantial weight, and the effective sample size drops sharply.
  • In high-dimensional states, normalised weights concentrate on a small number of particles (weight degeneracy). The basic formulation does not address this, so more specialised proposals or methods are needed.
  • The filter returns filtered estimates p(x_t | y_{1:t}) directly. Smoothed estimates require additional backward computation.
  • Performance depends on the choice of proposal and resampling schedule, which the basic weighting formula does not settle, and tuning them requires expertise.

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

Strengths

  • Places no linearity or Gaussianity requirement on the transition density p(x_t | x_{t-1}) or the observation density p(y_t | x_t). The propagation step only needs to sample from the transition, and the weighting step only needs to evaluate the observation density at each particle.
  • Because the posterior is stored as a weighted set of samples, it can represent non-Gaussian and multimodal filtering distributions, which a Gaussian mean-and-covariance summary cannot.
  • Returns an approximate filtering distribution at every time step, from which means, quantiles or other summaries can be computed.
  • Under standard regularity conditions, the weighted particle approximation converges to the true filtering distribution as N increases. This is a limiting result and does not guarantee accuracy for any particular N.
  • Produces a by-product estimate of the likelihood of the data, as the product over time of the average unnormalised weights, which allows model parameters to be estimated (see the FAQ), at additional computational cost.

Applications

  • Target tracking and robot localisation (simultaneous localisation and mapping, SLAM).
  • Stochastic volatility estimation in financial time series.
  • Epidemic state monitoring — estimating latent infection counts from reported case data.
  • Speech and audio processing — tracking formant frequencies or speaker states in real time.
  • Neuroscience — decoding latent neural population dynamics from spike trains.
  • Environmental monitoring — tracking pollutant plumes or ocean current states from sparse sensor networks.

How it works

How it works

1

The model has two components: a transition density p(x_t | x_{t-1}) that describes how the hidden state evolves over time, and an observation (emission) density p(y_t | x_t) that links the hidden state to what we can actually measure. Both densities can be nonlinear and non-Gaussian, unlike the Kalman filter which requires linearity and Gaussianity.

Formula
x_t \sim p(x_t \mid x_{t-1}),\quad y_t \sim p(y_t \mid x_t)
2

At time zero, N particles are drawn from the prior p(x_0). Each particle x_0^(i) is a concrete candidate for the initial hidden state. The collection of particles approximates the prior distribution over the latent state before any data are observed.

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

At each new time step t, every particle is advanced by sampling a new state from a proposal distribution. In the bootstrap filter the proposal is the transition density conditioned on that particle's previous state. This step simulates possible trajectories of the hidden process and introduces the process noise prescribed by the state-space model.

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

Each propagated particle is scored by how well it explains the newly observed measurement y_t. In general the importance weight is w_t ∝ w_{t-1} p(y_t | x_t) p(x_t | x_{t-1}) / g_t(x_t | x_{t-1}, y_t), where g_t is the proposal. The bootstrap filter sets g_t equal to the transition density, so the weight reduces to w_t ∝ p(y_t | x_t^(i)). Particles consistent with the observation receive high weight; others receive low weight. Weights are normalised to sum to one. The effective sample size, ESS = 1 / Σ_i (normalised weight_i)^2, measures how many equally weighted particles the weighted set is worth; it equals N for uniform weights and approaches 1 when one particle dominates.

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)})}{g_t(x_t^{(i)} \mid x_{t-1}^{(i)}, y_t)} \;\xrightarrow{\,g_t = p(x_t\mid x_{t-1})\,}\; w_t^{(i)} \propto p(y_t \mid x_t^{(i)})
5

To avoid weight degeneracy, where all weight collapses onto one particle, the filter draws N particles with replacement with probabilities equal to the normalised weights. High-weight particles are duplicated; low-weight particles are discarded. After resampling all weights are reset to 1/N and the cycle continues with the next observation. The bootstrap algorithm as originally written resamples at every step; a common refinement is adaptive resampling, performed only when the ESS falls below a chosen threshold.

Formula
\hat w_t^{(i)} = \frac{w_t^{(i)}}{\sum_{j=1}^N w_t^{(j)}},\quad \text{draw } N \text{ particles with replacement with probabilities } \hat w_t^{(i)},\quad w_t^{(i)} \leftarrow 1/N

Common pitfalls

  • Using too few particles (small N): weight collapse leads to particle impoverishment and unreliable posteriors.
  • Resampling at every step regardless of effective sample size: unnecessary resampling introduces Monte Carlo variance; monitor ESS and resample adaptively.
  • Ignoring particle diversity after resampling: if the transition variance is very small, duplicated particles remain too close together; jitter or other rejuvenation steps may be needed.
  • Confusing filtering with smoothing: the particle filter tracks p(x_t | y_{1:t}), not the full joint p(x_{1:T} | y_{1:T}); smoothing is a separate, more expensive step.

Frequently asked questions

How many particles do I need?

There is no universal rule. Run the filter with increasing N and check whether the posterior summaries you care about stop changing. Track the effective sample size (ESS) at each step: if it is repeatedly low relative to N, the particle count is too small for the model or the weights are too uneven for the chosen proposal.

How does this differ from the Kalman filter?

The Kalman filter is exact only for linear-Gaussian state-space models and returns a Gaussian posterior described by a mean and covariance. The particle filter is a general approximation that works with any nonlinear, non-Gaussian model at the cost of greater computation. For linear-Gaussian models the Kalman filter is preferred; for everything else the particle filter (or an extended/unscented variant) is needed.

What is particle degeneracy and how is it fixed?

Degeneracy occurs when nearly all normalised weight concentrates on a single particle, so the effective sample size collapses. The standard fix is resampling: replace low-weight particles by duplicates of high-weight ones. Adaptive resampling, triggered only when ESS falls below a threshold, balances variance reduction against the cost of disrupting particle diversity.

Can I estimate model parameters as well as the latent state?

Yes. Particle MCMC uses particle filter likelihood estimates inside an MCMC sampler for the parameters, and SMC-squared runs an outer layer of SMC over the parameters. Both are substantially more expensive than filtering alone.

Is the particle filter the same as Sequential Monte Carlo?

The particle filter is the specific application of Sequential Monte Carlo (SMC) to state-space filtering. SMC is a broader family covering also static model estimation (via tempering) and normalising constant computation, so every particle filter is an SMC algorithm but not vice versa.

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
  3. Handbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning (4 volumes) (2020), Chang & Wu chapter, particle filter algorithm section