Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A bell curve in several dimensions
A robot’s position estimate is uncertain in both and . Picture a cloud of possible positions. In the most common case it’s shaped like an ellipse, dense in the middle and fading out. That’s a multivariate Gaussian. The ellipse’s size shows how uncertain you are. Its tilt shows how the errors are linked: if is probably too big, probably is too.
Here’s the magic. If you learn exactly, your uncertainty about shrinks, and the new uncertainty is again a bell curve, with a simple formula.
Every Kalman filter, from Apollo’s guidance computer to a phone’s GPS, keeps its belief as a multivariate Gaussian. Each new measurement updates that belief using the conditioning formula on this page.
- 1. A tilted uncertainty ellipse means the errors are…
- 2. Learning y (when correlated with x) makes x's uncertainty…
- 3. A z-score of 2 means the value is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
in has density
The level sets are ellipsoids. Their axes are Σ’s eigenvectors, and their radii are the square roots of its eigenvalues (A2.3-2). In 2-D, .
The three closure properties
Partition , with and .
| Operation | Result |
|---|---|
| marginal | , so just read off the block |
| conditional | |
| linear map |
In 2-D: has mean and variance . The conditional variance doesn’t depend on .
- 1. Σ = [[2, 0.8], [0.8, 1]], μ = 0: E[x₁ | x₂ = 1] = ?
- 2. Same: Var(x₁ | x₂) = ?
- 3. Var(x₁ + x₂) for that Σ?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Sampling and Mahalanobis distance
- Sampling. Factor (Cholesky), then with has covariance . That’s the linear-map rule in reverse.
- Mahalanobis distance: measures distance in units of the uncertainty. For Gaussian , . The 95% gate is in 2-D and in 3-D. Trackers and SLAM front-ends use this to reject outlier measurements (chi-square gating) and to decide which measurement belongs to which target.
Sensor fusion in information form
Two Gaussian measurements of the same quantity combine by multiplying densities. The product is Gaussian, with
- precisions adding: ;
- a precision-weighted mean: .
Each sensor dominates in the directions where it’s precise (Practice Code 5). This is the “information filter” and the factor-graph view of SLAM.
Jointly Gaussian: uncorrelated ⇒ independent
If is jointly Gaussian with , the density factorizes, so the blocks are independent. This is the only common family where uncorrelated implies independent. Gaussian marginals alone aren’t enough. With and a random sign , is normal and uncorrelated with , yet (Practice Code 4).
- 1. To sample N(μ, Σ), use x = μ + Lz with…
- 2. The 95% Mahalanobis gate in 2-D is d² ≤ …
- 3. Fusing two Gaussian estimates…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Deriving the conditional (Schur complement)
Write with . Then . Because is jointly Gaussian (a linear map of ), zero covariance means independence. So given , equals a known shift plus independent noise , with , the Schur complement . ∎
Linear maps stay Gaussian
The characteristic function of a Gaussian is . For , , which is Gaussian with mean and covariance . It’s valid even when is rank-deficient, giving a degenerate Gaussian on a subspace. ∎
The Kalman update is conditioning
Take a prior and a measurement with . Then is jointly Gaussian, with and . The conditioning formula gives
That’s exactly the Kalman update (Kalman, 1960; Exercise 2).
Exercise 3.1: Scalar case. Prior N(0, 1), measurement z = x + v with v ~ N(0, 0.25). Find K and the posterior variance.
, and the posterior variance is . Equivalently, the precisions add: .
- 1. The conditional covariance is the…
- 2. The Kalman gain with P = 1, R = 0.25 (scalar, H = 1)?
- 3. Does the conditional covariance depend on the observed value x₂?
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Filters and Gaussian processes: one idea
- Kalman filtering. Predict with the linear-map rule (), then update by conditioning on the measurement. Exact for linear-Gaussian systems, it guided Apollo’s navigation (McGee and Schmidt, 1985) and runs in every GNSS/INS today. The EKF and UKF approximate nonlinear systems (A4.1-5).
- Gaussian-process regression treats function values at any finite set of inputs as jointly Gaussian, with covariance given by a kernel. Predicting at new inputs is conditioning on the training values (Rasmussen and Williams, 2006). The posterior interpolates the data and returns to the prior far away. GPs model terrain, learned dynamics residuals and safe-exploration constraints in robotics (Berkenkamp et al., 2017).
More Gaussian machinery in AI and robotics
- Factor graphs and SLAM. With Gaussian noise, MAP estimation becomes nonlinear least squares, and the information matrix’s sparsity mirrors the graph (Dellaert and Kaess, 2017).
- Diffusion models add Gaussian noise step by step. The reverse step is a learned conditional Gaussian (Ho, Jain and Abbeel, 2020).
- Gaussian policies in continuous-control RL, , are trained with the log-density gradient (PPO, SAC).
- Probabilistic motion planning propagates Gaussian state uncertainty along a trajectory, then uses chance constraints, such as keeping the 3σ ellipse clear of obstacles (Blackmore, Ono and Williams, 2011).
References
- R. E. Kalman (1960). “A new approach to linear filtering and prediction problems.” Journal of Basic Engineering, 82.
- L. McGee, S. Schmidt (1985). Discovery of the Kalman Filter as a Practical Tool for Aerospace and Industry. NASA TM-86847.
- C. Rasmussen, C. Williams (2006). Gaussian Processes for Machine Learning. MIT Press.
- Y. Bar-Shalom, X. R. Li, T. Kirubarajan (2001). Estimation with Applications to Tracking and Navigation. Wiley. (Gating.)
- F. Berkenkamp, M. Turchetta, A. Schoellig, A. Krause (2017). “Safe model-based reinforcement learning with stability guarantees.” NeurIPS.
- F. Dellaert, M. Kaess (2017). “Factor graphs for robot perception.” Foundations and Trends in Robotics, 6(1–2).
- J. Ho, A. Jain, P. Abbeel (2020). “Denoising diffusion probabilistic models.” NeurIPS.
- L. Blackmore, M. Ono, B. Williams (2011). “Chance-constrained optimal path planning with obstacles.” IEEE Transactions on Robotics, 27(6).
- K. Petersen, M. Pedersen (2012). The Matrix Cookbook. (Gaussian identities.)