Probability & Statistics
Uncertainty, Bayes, Gaussians — the basis of estimation.
Why it matters in robotics
Nearly every robotics estimation system — localization, SLAM, sensor fusion, tracking — reasons about noisy, uncertain data using probability. A robot combines what it expected to happen with what a sensor just measured to form an updated belief about the world, and the shape of that uncertainty (its mean and how it spreads and correlates across variables) has to stay easy to compute with as the robot moves and takes new readings, over and over, in real time. This probabilistic foundation is what makes reliable state estimation possible.
What to study
- ✓Bayes' rule: priors, likelihoods, posteriors, and the normalizing evidence term
- ✓Gaussian distributions: mean/covariance, marginalization, conditioning, and why products of Gaussians stay Gaussian
- ✓Random variables, expectation, variance, and conditional/joint distributions
- ✓The Bayes filter: recursive predict (motion) and update (measurement) state estimation
Where to study
Cheatsheet
Symbols used below
Bayes' rule
posterior likelihood prior. just normalizes so the posterior integrates to 1 — it doesn't depend on .
Gaussians stay Gaussian
The product of two Gaussian densities is (up to a constant) another Gaussian — this is why a Gaussian prior times a Gaussian likelihood gives a clean, closed-form Gaussian posterior.
Marginals and conditionals of a joint Gaussian are also Gaussian — nothing exotic ever appears downstream.
Gaussian conditioning
For , observing gives
— uncertainty can only shrink, never grow.
The Bayes filter cycle
Predict: push the belief through the motion model — uncertainty grows (convolve with process noise).
Update: multiply by the measurement likelihood and renormalize — uncertainty shrinks. Every recursive estimator (Kalman filter, particle filter, histogram filter) is this same two-step cycle.
Uncorrelated ≠ independent
Zero covariance only rules out linear relationship. Two variables can have while one is an exact nonlinear function of the other.
Independence is the stronger condition: for all values, not just zero linear correlation.
| Frequentist | Bayesian | |
|---|---|---|
| Treats parameters as | Fixed, unknown constants | Random variables with a distribution |
| Uses prior knowledge? | No — only the observed data | Yes — explicit prior, updated by data |
| Output | Point estimate + confidence interval | Full posterior distribution |
| Robotics fit | Simple calibration, hypothesis tests | Recursive estimation (Bayes/Kalman/particle filters) |
Application focus
Practice questions (9)
- Posterior probability of an obstacle from a noisy proximity sensoreasy
- Explain the bias-variance tradeoff for an estimatoreasy
- Coins passed around a round tableInterviewhard
- PDF of the sum of two uniformsInterviewmedium
- Expected value of a coin-flip game — should you bet?Interviewmedium
- Joint PDF of two independent normalsInterviewmedium
- How do you know a Gaussian is valid?Interviewmedium
- Shape of a 2D Gaussian for different correlationsInterviewmedium
- Zero covariance but dependent random variablesmedium