A particle filter is a sequential Monte Carlo algorithm used for Bayesian state estimation in nonlinear and non-Gaussian systems. It represents the system's posterior probability distribution using a set of discrete samples called particles, each with an associated weight. The algorithm operates recursively through prediction (propagating particles via a motion model) and update (adjusting weights based on sensor measurements) steps. This non-parametric approach avoids the linearization errors inherent in filters like the Extended Kalman Filter (EKF).
Glossary
Particle Filter

What is a Particle Filter?
A particle filter is a sequential Monte Carlo method for Bayesian state estimation that represents the posterior probability distribution of the state using a set of random samples (particles), making it effective for highly nonlinear and non-Gaussian problems.
The core strength of particle filtering lies in its ability to handle multi-modal distributions, which are common when a robot's location is ambiguous. However, it suffers from particle degeneracy, where most weights become negligible. This is mitigated by resampling, which replicates high-weight particles and discards low-weight ones. Key variants include the Sampling Importance Resampling (SIR) filter and the Rao-Blackwellized particle filter, the latter of which is foundational for FastSLAM, a seminal algorithm in robotic mapping and localization.
Key Characteristics of Particle Filters
Particle filters, or Sequential Monte Carlo (SMC) methods, are distinguished from other Bayesian filters by their unique approach to representing and updating probability distributions. These characteristics define their applicability and performance.
Non-Parametric Representation
Unlike the Kalman Filter, which assumes a parametric (Gaussian) distribution, a particle filter uses a non-parametric representation. The posterior distribution is approximated by a set of discrete, weighted samples called particles. This allows it to model arbitrarily complex, multi-modal distributions (e.g., a robot's possible location split between two rooms), which is impossible for filters constrained to a single Gaussian.
Sequential Importance Sampling & Resampling
The algorithm operates in a predict-update cycle using two key Monte Carlo steps:
- Importance Sampling: Each particle is propagated through the process model (prediction), then weighted based on the likelihood of the new sensor measurement (update).
- Resampling: To avoid particle degeneracy (where most particles have negligible weight), particles are stochastically replicated based on their weight. High-weight particles are multiplied, low-weight particles are discarded. This focuses computational resources on the most probable state regions.
Applicability to Nonlinear & Non-Gaussian Systems
This is the primary engineering motivation for using a particle filter. It makes no linearity assumptions and imposes no Gaussian noise requirements on the process or measurement models. It can directly use:
- Highly nonlinear motion models (e.g., skidding vehicles, agile drones).
- Non-Gaussian sensor noise (e.g., heavy-tailed distributions, bounded errors).
- Nonlinear measurement models (e.g., bearing-only sensors, landmark detection). This makes it a robust choice for complex, real-world robotic systems where linearization (as in an EKF) fails.
The Curse of Dimensionality
The primary computational limitation. The number of particles required to maintain a given approximation quality grows exponentially with the state space dimension. For a robot estimating its 2D (x,y) position, a few hundred particles may suffice. For a full 6D pose (x,y,z,roll,pitch,yaw) plus velocity, thousands are needed. For joint state and map estimation (as in FastSLAM), the requirement becomes prohibitive, leading to approximations like Rao-Blackwellized Particle Filters that partition the state.
Sample-Based Approximation of Distributions
All estimates are derived from the empirical distribution of particles. Key quantities are computed as sample statistics:
- State Estimate: Often the weighted mean of particle states, or the state of the highest-weight particle.
- Uncertainty: Estimated from the sample covariance of the particle cloud.
- Probabilities: The probability of an event (e.g., "robot is in Room A") is approximated by the sum of weights of particles satisfying the condition. This provides immense flexibility for querying the belief state.
Comparison to Kalman Filter Variants
| Criterion | Extended/Unscented KF | Particle Filter |
|---|---|---|
| Distribution Model | Single Gaussian | Arbitrary (sample-based) |
| Linearity | Approximates nonlinearities | Handles full nonlinearities |
| Noise | Assumes Gaussian | Any known distribution |
| Computational Cost | O(n²) to O(n³) in state dim | O(N) in particle count, but N grows exponentially with dim |
| Multi-Modality | Cannot represent | Can represent |
| The PF trades higher, configurable compute cost for modeling generality and robustness. |
Particle Filter vs. Kalman Filter: A Comparison
A feature-by-feature comparison of two fundamental Bayesian filtering techniques for state estimation in robotics and autonomous systems.
| Feature / Characteristic | Particle Filter (Sequential Monte Carlo) | Kalman Filter (and EKF/UKF variants) |
|---|---|---|
Core Mathematical Representation | Set of weighted random samples (particles) | Parametric Gaussian distribution (mean & covariance) |
Primary Assumption on State Distribution | Non-Gaussian, multi-modal, arbitrary | Unimodal Gaussian (or locally approximated as Gaussian) |
Handling of System Nonlinearities | No linearization required; handles severe nonlinearities natively | Requires linearization (EKF) or deterministic sampling (UKF) for nonlinear models |
Theoretical Optimality Guarantee | Asymptotically optimal (as particle count → ∞) | Optimal for linear Gaussian systems (KF); approximate for nonlinear (EKF/UKF) |
Computational Complexity | O(N) where N is number of particles; can be high for accurate representation | O(m³) where m is state dimension; typically very efficient for moderate m |
Memory Footprint | High (stores N full state vectors and weights) | Low (stores only mean vector and covariance matrix) |
Typical Application Domains | Robust visual tracking, SLAM with multi-hypothesis, fault diagnosis, financial modeling | GPS/INS navigation, radar tracking, linear control systems, sensor calibration |
Ease of Implementation | Conceptually straightforward but requires careful tuning (resampling, proposal distribution) | Well-defined equations but requires careful Jacobian derivation (EKF) or parameter tuning (UKF) |
Degradation with Dimensionality | Severe (requires particle count exponential in state dimension: Curse of Dimensionality) | Graceful (scales polynomially with state dimension) |
Data Association in Clutter | Natural multi-hypothesis support via particle weights | Typically single-hypothesis; requires probabilistic data association (PDA/JPDA) extensions |
Resampling Requirement | Yes, to mitigate particle degeneracy | No |
Inherent Parallelizability | High (particles are independent during prediction/update) | Low (matrix operations are inherently sequential) |
Frequently Asked Questions About Particle Filters
A particle filter is a powerful sequential Monte Carlo method for state estimation in nonlinear, non-Gaussian systems. These questions address its core mechanics, applications, and trade-offs compared to other filters.
A particle filter is a sequential Monte Carlo method for Bayesian state estimation that represents a system's posterior probability distribution using a set of random samples called particles. It works through a recursive prediction-update cycle: first, particles are propagated forward in time using a process model; then, each particle's likelihood is evaluated against new sensor data via a measurement model; finally, a resampling step discards low-weight particles and duplicates high-weight ones to focus computational resources on the most probable state hypotheses.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms in Sensor Fusion and State Estimation
A particle filter operates within a broader ecosystem of probabilistic estimation techniques. These related concepts define its alternatives, its mathematical foundations, and the specific problems it is designed to solve.
Bayesian Filtering
This is the general probabilistic framework that underpins all sequential state estimators, including the particle filter. It recursively applies Bayes' theorem to estimate the posterior probability distribution of a system's state given a sequence of noisy observations.
- Core Equation: p(state | measurements) ∝ p(measurements | state) * p(state)
- The Kalman filter and particle filter are specific implementations of this framework, differing in how they represent and propagate the probability distribution.
- It formalizes the cycle of prediction (using a motion model) and update (using a measurement model).
Kalman Filter (KF)
The classical optimal solution for linear Gaussian systems. It represents the state's probability distribution as a single Gaussian, characterized by a mean and a covariance matrix.
- Key Assumption: Requires both the process model and measurement model to be linear, with noise that is additive and Gaussian.
- It is computationally efficient and provides an exact, closed-form solution under these constraints.
- The particle filter is often used when these linearity and Gaussianity assumptions break down, as in robotic perception with cluttered environments or multi-modal distributions.
Unscented Kalman Filter (UKF)
A nonlinear estimator that improves upon the Extended Kalman Filter (EKF). Instead of linearizing models, it uses a deterministic sampling strategy called the unscented transform.
- It selects a minimal set of sigma points to capture the mean and covariance of the state distribution, propagates these points through the nonlinear functions, and then recomputes the mean and covariance.
- More accurate than the EKF for strong nonlinearities but, like the KF, still represents the posterior as a single Gaussian. It struggles with multi-modal distributions (e.g., a robot unsure if it's in Room A or Room B), where a particle filter's sample-based representation excels.
Monte Carlo Methods
A broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. The particle filter is a sequential Monte Carlo (SMC) method.
- The core idea is to approximate an intractable integral or distribution (like a complex Bayesian posterior) with a set of random samples (particles).
- Importance Sampling is a key technique used to weight particles based on how well they explain the observed data.
- Resampling is the critical step that mitigates particle degeneracy by discarding low-weight particles and duplicating high-weight ones, focusing computational resources on likely state hypotheses.
Simultaneous Localization and Mapping (SLAM)
The canonical robotics problem where a mobile robot must build a map of an unknown environment while simultaneously tracking its location within it. Particle filters provide a direct solution known as FastSLAM.
- In FastSLAM, each particle carries its own pose hypothesis and an associated map (often a set of landmark estimates).
- This elegantly handles the data association problem (matching observations to map landmarks) on a per-particle basis.
- While graph-based optimization methods now dominate high-accuracy SLAM, particle filters remain relevant for their ability to represent multi-hypothesis tracking in ambiguous scenarios.
Non-Gaussian & Multi-Modal Distributions
These describe the types of uncertainty that particle filters are uniquely suited to handle, in contrast to Kalman-family filters.
- Non-Gaussian: The probability distribution of the state is not a simple "bell curve." It could be skewed, heavy-tailed, or otherwise irregular. Sensor noise or motion models can cause this.
- Multi-Modal: The distribution has multiple distinct peaks, each representing a plausible state hypothesis. A classic example is global localization (the "kidnapped robot" problem), where the robot could be in one of several similar-looking corridors.
- A particle filter's sample-based representation can approximate these complex shapes arbitrarily well, given enough particles, whereas a Gaussian-based filter can only represent a single peak.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us