Skip to main content

Applied Math

Bayesian State Estimation

The filtering problem: recursively estimate a hidden state from noisy observations using predict-update cycles. Kalman filter for linear Gaussian systems, particle filters for the general case.

CoreTier 2StableSupporting~45 min

Learning position

Place this page in a reading path.

applied-math | layer 2 | tier 2. This page has 5 direct prerequisites and 1 published dependent.

What next

Markov Decision Processes

This is the first curated or graph-derived continuation from the current page.

Evidence badge

Source-grounded page

This page has no public Lean mapping yet. Use the evidence page to inspect how claim status labels work.

Show the backing system

Why This Matters

In robotics, control, and RL, the agent rarely observes the true state of the world. A robot sees noisy camera images, not exact positions. A financial model observes prices, not the hidden economic state. Bayesian state estimation provides the principled framework for maintaining a probability distribution over the hidden state given all observations so far.

Mental Model

At each time step, two things happen. First, the hidden state evolves according to some dynamics model (the predict step). Second, you receive a noisy observation (the update step). The Bayes filter combines these into a recursive formula: your belief at time tt is computed from your belief at time t−1t-1, the dynamics model, and the new observation.

Formal Setup

Definition

State-Space Model

A discrete-time state-space model consists of:

  • Hidden state xt∈Xx_t \in \mathcal{X} evolving via xt∼p(xt∣xt−1)x_t \sim p(x_t | x_{t-1}) (dynamics model)
  • Observation zt∈Zz_t \in \mathcal{Z} generated via zt∼p(zt∣xt)z_t \sim p(z_t | x_t) (observation model)
  • Prior p(x0)p(x_0) on the initial state

The filtering problem: compute p(xt∣z1:t)p(x_t | z_{1:t}) recursively as new observations arrive.

Definition

Belief

The belief at time tt is the posterior distribution over the hidden state given all observations:

bt(x)=p(xt=x∣z1,z2,…,zt)b_t(x) = p(x_t = x \mid z_1, z_2, \ldots, z_t)

The goal of Bayesian state estimation is to maintain btb_t as a sufficient statistic for decision-making.

Main Theorems

Theorem

Bayes Filter Recursion

Statement

The posterior p(xt∣z1:t)p(x_t | z_{1:t}) satisfies the predict-update recursion:

Predict:

p(xt∣z1:t−1)=∫p(xt∣xt−1) p(xt−1∣z1:t−1) dxt−1p(x_t | z_{1:t-1}) = \int p(x_t | x_{t-1}) \, p(x_{t-1} | z_{1:t-1}) \, dx_{t-1}

Update:

p(xt∣z1:t)=p(zt∣xt) p(xt∣z1:t−1)p(zt∣z1:t−1)p(x_t | z_{1:t}) = \frac{p(z_t | x_t) \, p(x_t | z_{1:t-1})}{p(z_t | z_{1:t-1})}

where p(zt∣z1:t−1)=∫p(zt∣xt) p(xt∣z1:t−1) dxtp(z_t | z_{1:t-1}) = \int p(z_t | x_t) \, p(x_t | z_{1:t-1}) \, dx_t is the normalizing constant.

Intuition

The predict step propagates uncertainty forward through the dynamics model: if I was uncertain about xt−1x_{t-1}, I am even more uncertain about xtx_t before seeing ztz_t. The update step sharpens the belief using the new observation: states that explain ztz_t well get higher probability. This is just Bayes' rule applied recursively.

Proof Sketch

The predict step follows from marginalizing xt−1x_{t-1} out of the joint p(xt,xt−1∣z1:t−1)p(x_t, x_{t-1} | z_{1:t-1}) and using the Markov property p(xt∣xt−1,z1:t−1)=p(xt∣xt−1)p(x_t | x_{t-1}, z_{1:t-1}) = p(x_t | x_{t-1}). The update step is a direct application of Bayes' theorem with the conditional independence assumption p(zt∣xt,z1:t−1)=p(zt∣xt)p(z_t | x_t, z_{1:t-1}) = p(z_t | x_t).

Why It Matters

This recursion is the foundation of all Bayesian filters. Every specific algorithm (Kalman, extended Kalman, unscented Kalman, particle filter) is an approximation to this exact recursion under different assumptions about the state space and distributions.

Failure Mode

The predict step requires computing an integral that is analytically tractable only in special cases (linear Gaussian). For nonlinear dynamics or non-Gaussian noise, you must approximate. The quality of the filter depends entirely on how well you approximate this integral.

Theorem

Kalman Filter

Statement

Under linear Gaussian assumptions, the Bayes filter recursion has a closed-form solution. The belief p(xt∣z1:t)p(x_t | z_{1:t}) is Gaussian N(μt,Σt)\mathcal{N}(\mu_t, \Sigma_t) at every time step, with:

Predict:

μt∣t−1=Aμt−1,Σt∣t−1=AΣt−1A⊤+Q\mu_{t|t-1} = A\mu_{t-1}, \qquad \Sigma_{t|t-1} = A\Sigma_{t-1}A^\top + Q

Update:

Kt=Σt∣t−1H⊤(HΣt∣t−1H⊤+R)−1K_t = \Sigma_{t|t-1} H^\top (H\Sigma_{t|t-1}H^\top + R)^{-1}

μt=μt∣t−1+Kt(zt−Hμt∣t−1)\mu_t = \mu_{t|t-1} + K_t(z_t - H\mu_{t|t-1})

Σt=(I−KtH)Σt∣t−1\Sigma_t = (I - K_tH)\Sigma_{t|t-1}

where KtK_t is the Kalman gain, QQ is the process noise covariance, and RR is the observation noise covariance.

Intuition

The Kalman gain KtK_t controls how much you trust the new observation versus your prediction. If observation noise RR is large, KtK_t is small: you mostly trust the prediction. If prediction uncertainty Σt∣t−1\Sigma_{t|t-1} is large, KtK_t is large: you mostly trust the observation. The filter automatically balances these two sources of information.

Proof Sketch

Since Gaussians are closed under linear transformations and conditioning, the predict step produces a Gaussian (sum of Gaussian variables) and the update step conditions a joint Gaussian on the observed variable, which is again Gaussian. The Kalman gain formula follows from the standard conditional Gaussian formula.

Why It Matters

The Kalman filter is one of the most widely used algorithms in engineering: GPS navigation, spacecraft tracking, econometrics. Its importance comes from being the exact Bayesian solution (not an approximation) for linear Gaussian systems, and from being computationally cheap (O(d3)O(d^3) per step where dd is the state dimension).

Failure Mode

Linearity and Gaussianity are strong assumptions. Real systems with nonlinear dynamics (robot arm kinematics), multi-modal beliefs (robot unsure which side of a wall it is on), or heavy-tailed noise (financial data) violate these assumptions. The extended Kalman filter (EKF) linearizes locally, but this can diverge for highly nonlinear systems.

Particle Filters

When the state-space model is nonlinear or non-Gaussian, particle filters approximate the belief with a weighted set of samples (particles).

The algorithm: (1) Sample xt(i)∼p(xt∣xt−1(i))x_t^{(i)} \sim p(x_t | x_{t-1}^{(i)}) for each particle (predict). (2) Assign weight wt(i)∝p(zt∣xt(i))w_t^{(i)} \propto p(z_t | x_t^{(i)}) (update). (3) Resample particles according to weights to avoid weight degeneracy.

Particle filters converge to the true posterior as the number of particles N→∞N \to \infty, but suffer from the curse of dimensionality: for high-dimensional state spaces, the required number of particles grows exponentially.

Common Confusions

Watch Out

Filtering is not smoothing

Filtering computes p(xt∣z1:t)p(x_t | z_{1:t}): the belief at time tt given observations up to tt. Smoothing computes p(xt∣z1:T)p(x_t | z_{1:T}) for t<Tt < T: the belief at tt given future observations too. Smoothing uses more information and is more accurate but requires waiting until time TT.

Watch Out

The Kalman filter is not an approximation

For linear Gaussian systems, the Kalman filter computes the exact posterior. It is not a heuristic or approximation. The extended Kalman filter (EKF), which linearizes a nonlinear system, is an approximation. This distinction matters: the EKF can diverge, the Kalman filter cannot (given its assumptions).

Exercises

ExerciseCore

Problem

A 1D state evolves as xt=xt−1+wtx_t = x_{t-1} + w_t with wt∼N(0,1)w_t \sim \mathcal{N}(0, 1), and observations are zt=xt+vtz_t = x_t + v_t with vt∼N(0,4)v_t \sim \mathcal{N}(0, 4). Starting from x0∼N(0,1)x_0 \sim \mathcal{N}(0, 1), compute the Kalman filter belief (μ1,Σ1)(\mu_1, \Sigma_1) after one observation z1=3z_1 = 3.

ExerciseAdvanced

Problem

Explain why particle filters suffer from weight degeneracy and how resampling helps. What problem does resampling itself introduce?

References

Canonical:

  • Anderson & Moore, Optimal Filtering (1979), Chapters 2-4
  • Kalman, "A New Approach to Linear Filtering and Prediction Problems," ASME Journal (1960)

Current:

  • Thrun, Burgard, Fox, Probabilistic Robotics (2005), Chapters 2-4

  • Doucet & Johansen, "A Tutorial on Particle Filtering," Handbook of Nonlinear Filtering (2009)

  • Murphy, Machine Learning: A Probabilistic Perspective (2012)

Next Topics

Last reviewed: April 14, 2026

Cite this page

Sneiderman, Robby. "Bayesian State Estimation." TheoremPath, reviewed 2026-04-14. https://theorempath.com/topics/bayesian-state-estimation

Canonical URL
https://theorempath.com/topics/bayesian-state-estimation
Author
Robby Sneiderman, TheoremPath
Last reviewed
2026-04-14
What this is
A reference page on TheoremPath. Written and maintained by the named author. Not peer reviewed and not refereed by any venue. Each claim below carries its own verification status.
Terms
All rights reserved. Non-commercial quotation with attribution permitted.

Citing one claim

2 statements on this page are separately addressable. Each carries an identifier of the form claim:<topic>::<statement> printed beside it, and resolves to that identifier's anchor on this URL. Quote the statement, its assumptions, and its failure modes together.

Recorded verification on this page: 2 informal_only.

  • This page is a secondary source. Where a claim cites literature, the result is due to that source and not to this site.
  • 2 of 2 claims on this page name no source. Their attribution to the literature is not recorded here, whatever their verification status says.
  • 2 of 2 carry neither a source nor a proof check. Their provenance is the author's reading of the literature; check them against a primary source before relying on them.
  • Statements are given in LaTeX exactly as authored. The rendered page passes the same LaTeX through KaTeX, so text scraped from the HTML repeats expressions and drops radicals; quote from statementTex.

/claims.json lists 1,178 of the 1,231 statements this site records, with the anchor and the recorded verification of each. What earns a place in it: a theorem, lemma, corollary, or proposition block on a published topic page. Definitions are not listed, and neither are the 27 statements on comparison pages. A missing entry means the rule above did not select the statement, not that this site is silent on the result.

Canonical graph

Required before and derived from this topic

These links come from prerequisite edges in the curriculum graph. Editorial suggestions are shown here only when the target page also cites this page as a prerequisite.

Required prerequisites

5

Derived topics

1

Graph-backed continuations