Unit 10 · Phase 3 · Frames & Software
Probability and state estimation
Mission: Help one rover judge the distance to one box using two uncertain sensors. Compare their errors across 30 simulated paired trials and test when combining misleads.
The interactive version of this unit needs JavaScript. Below are its steps as text.
Steps
1. One uncertain distance
Press “Show the first reading” and watch the readings on the same distance axis.
Why it matters: A sensor reading is an estimate, not perfect truth. A robot deciding where an obstacle is must account for uncertainty.
2. A second opinion
Press “Show both readings” and watch the readings on the same distance axis.
Why it matters: Two sensors can disagree even when the box stays fixed. Both readings are in the same distance frame.
3. Repeat sensor A
Press “Collect A trials” and watch the readings on the same distance axis.
Why it matters: Noise spreads repeated readings. The mean is their sum divided by their count.
4. Compare spread
Press “Collect B trials” and watch the readings on the same distance axis.
Why it matters: Standard deviation (SD) describes spread in metres; variance is its square in square metres. The model SD is a chosen input, while sample variance estimates spread from these 30 values.
5. Split the difference
Press “Average paired readings” and watch the readings on the same distance axis.
Why it matters: The equal average gives each sensor half the influence. Pairing the same trials makes the comparison fair.
6. Trust the narrower cloud
Press “Weight paired readings” and watch the readings on the same distance axis.
Why it matters: For independent unbiased noise, inverse variance weights give the narrower sensor more influence. Here 0.04 m and 0.08 m SD imply weights 0.8 and 0.2, not weights based directly on SD.
7. Measure the errors
Press “Compare absolute errors” and watch the readings on the same distance axis.
Why it matters: Absolute error is the distance between estimate and known simulated truth. Mean absolute error (MAE) averages those distances, not signed errors.
8. Compare thirty trials
Press “Show the comparison” and watch the readings on the same distance axis.
Why it matters: Compare A, B, equal and weighted estimates using the same trials. A finite seed need not make fusion win every time.
9. A precise wrong sensor
Press “Add a bias” and watch the readings on the same distance axis.
Why it matters: Bias is a systematic shift, unlike zero-mean noise spread. A narrow but biased cloud can be misleading.
10. Combine the biased sensor
Press “Fuse biased readings” and watch the readings on the same distance axis.
Why it matters: Weighting a biased sensor heavily carries its bias into the estimate. Independence alone does not remove bias.
11. Duplicate information
Press “Share the noise” and watch the readings on the same distance axis.
Why it matters: This comparison resets both biases to 0 m and both model SDs to 0.04 m before changing only correlation. Perfectly correlated equal-SD readings contain duplicate information. An independence formula would claim less uncertainty even though actual error is unchanged.
12. Check duplicate errors
Press “Trace duplicate errors” and watch the readings on the same distance axis.
Why it matters: A simulated truth makes error measurable here; real truth is usually unknown. Statistical confidence is not a safety certificate or a stop guarantee.
Go deeper
Optional equations and limits
sample variance = Σ(x − mean)² / (n − 1) independent unbiased weights: wA = varianceB / (varianceA + varianceB); wB = 1 − wA MAE = Σ|estimate − simulated truth| / 30
This ideal additive Gaussian model does not clamp readings. Correlation is generated with rho × zA + √(1 − rho²) × zB. Independent variance propagation is conditional on independence; bias and shared noise invalidate its simple confidence claim.
The primary references linked below cover spread, uncertainty propagation and broader mathematical and robotics background.