Module 5: Probability & Uncertainty
Welcome to Module 5: Probability & Uncertainty. In robotics and artificial intelligence, the physical world is never 100% predictable: sensors have electrical noise, wheels slip on carpet, and camera detections have uncertainty.
This module introduces the mathematical tools required to quantify, model, and make decisions under uncertainty—from bell curves and sensor fusion to probability distributions and Monte Carlo expectations.
Concepts in this Module
- Concept 01: Sensor Noise & Normal Distributions
- The Everyday Problem: Why does an AprilTag distance sensor reading jitter between 3.8m and 4.2m, and what is the “true” distance?
- Code & Math: Sample mean μ (mean), sample variance \σ^2, standard deviation σ (standard deviation), and the Gaussian Bell Curve.
- Concept 02: Bayes’ Rule & 1D Sensor Fusion
- The Everyday Problem: How do we combine a noisy vision estimate with a wheel odometry estimate into a single, highly confident belief?
- Code & Math: Prior, Likelihood, Posterior, and 1D Kalman filter sensor fusion (multiplying two Gaussians).
- Concept 03: Discrete Distributions & Softmax
- The Everyday Problem: How does an autonomous object detector turn raw model scores into percentages that sum to 100%?
- Code & Math: Categorical distributions, the Softmax function, and temperature scaling.
- Concept 04: Expected Value & Decision Making
- The Everyday Problem: In the final 20 seconds of an FRC match, should your alliance attempt a risky high-point climb or take guaranteed safe points?
- Code & Math: Expected Value E[X] = \sum x_i \cdot P(x_i), risk variance, and Monte Carlo simulation.