Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Two reasons a prediction can miss
You’ve timed a robot’s grasp 8 times. How long will the next grasp take? Two things make the answer uncertain:
- Noise: even a perfectly understood robot varies a little from grasp to grasp.
- What you don’t know yet: with only 8 tests, you haven’t pinned down the robot’s true average.
A good prediction includes both. Ignoring the second makes predictions overconfident, especially for situations unlike the ones you tested.
A robot planning a path needs to know how uncertain its model is in unexplored regions. A reliability engineer needs the chance of failures in the next 100 missions, not just the estimated failure rate. And before trusting a model at all, you should check that data it simulates look like the real data.
- 1. Prediction uncertainty comes from noise and…
- 2. Far from the tested conditions, uncertainty about the model…
- 3. Using only the best-fit parameters to predict makes you…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
Simulation recipe: draw , then . The are predictive draws.
Closed forms
- Beta–binomial: posterior Beta(a, b), next trials. . With , this is just the posterior mean.
- Gamma–Poisson: posterior Gamma(α, rate β) on a rate. The next window’s count is negative binomial, with mean and variance . That’s overdispersed relative to Poisson.
- Normal mean, known σ: posterior . Predictive . With a flat prior, .
Plug-in vs predictive
Plug-in prediction uses . It ignores the term, so its intervals are too narrow, its tails too thin, and its rare-event probabilities too small. After 7 of 10 successes, the plug-in says P(0 of the next 5) = 0.004. The predictive says 0.013, three times larger.
- 1. Predictive variance for a normal mean with known σ is…
- 2. The Gamma–Poisson predictive is a…
- 3. To simulate from the predictive, first…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Bayesian linear regression
With prior and noise , the posterior is , with and . The predictive at a new input is
The epistemic part shrinks where you have data and grows when extrapolating. GPs (A4.4-6) behave the same way.
Posterior predictive checks
Does the model reproduce the data’s important features? Choose a test statistic , such as the max residual, the kurtosis, the number of zeros, or the autocorrelation. Compare with , where is drawn from the posterior predictive. The posterior predictive p-value is . Values near 0 or 1 flag misfit (Gelman, Meng and Stern, 1996). Pick statistics that probe the assumption you doubt. A check on the mean can’t detect wrong tails.
- 1. In BLR the epistemic variance at x* is…
- 2. A posterior predictive p-value of 0.001 for max|residual| suggests…
- 3. Which statistic would NOT reveal heavy tails?
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Deriving the normal predictive
If and with independent , then is a sum of independent normals: . ∎ By the law of total variance (A4.1-8), in general:
Deep ensembles and MC dropout estimate exactly this split for neural networks (Kendall and Gal, 2017).
Deriving the negative binomial predictive
, by recognising a Gamma integral. ∎
Why predictive intervals are calibrated (and plug-in ones aren’t)
If the model and prior are correct, follow the joint distribution, and predictive intervals have exact average coverage (A5.2-1). Plug-in intervals condition on as if it were the truth. Their coverage is below nominal by an amount of order , and much worse when extrapolating.
Exercise 3.1: Show that the m = 1 beta-binomial predictive is the posterior mean
.
- 1. The aleatoric/epistemic split of predictive variance comes from…
- 2. Plug-in intervals under-cover because they ignore…
- 3. Gamma–Poisson predictive variance exceeds its mean by the factor…
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Checking a range-sensor noise model
A filter designer models lidar range residuals as Gaussian. A posterior predictive check with the statistic max |z| tells whether a Gaussian model could plausibly produce the most extreme residual actually observed. For clean residuals, the check passes (ppp ≈ 0.5). With 5% multipath outliers it fails decisively (ppp ≈ 0). A check on the mean would have passed both. The fix is a heavier-tailed or mixture likelihood (A4.2-6), or explicit outlier gating, before trusting the filter’s covariance.
Predictive distributions in AI, robotics and aerospace
- Model-based RL and planning with uncertainty-aware models: PILCO propagates GP predictive uncertainty (Deisenroth and Rasmussen, 2011), and PETS uses probabilistic ensembles to avoid exploiting model errors (Chua et al., 2018).
- Aleatoric vs epistemic uncertainty in perception. Separating the two tells a robot whether to collect more data (epistemic) or accept the noise (aleatoric) (Kendall and Gal, 2017).
- Reliability forecasting. Predictive distributions of failures in the next fleet-hours, not plug-in Poisson counts, set spares and maintenance (Hamada et al., 2008).
- Model validation. Posterior predictive and simulation-based checks are part of the Bayesian workflow before any decision (Gelman et al., 2020).
- Probabilistic forecasting of weather and space weather is scored by proper scoring rules (log score, CRPS) of the predictive distribution (Gneiting and Raftery, 2007).
References
- A. Gelman, X.-L. Meng, H. Stern (1996). “Posterior predictive assessment of model fitness via realized discrepancies.” Statistica Sinica, 6.
- A. Gelman et al. (2020). “Bayesian workflow.” arXiv:2011.01808.
- C. Bishop (2006). Pattern Recognition and Machine Learning, Sec. 3.3. Springer.
- A. Kendall, Y. Gal (2017). “What uncertainties do we need in Bayesian deep learning for computer vision?” NeurIPS.
- M. Deisenroth, C. Rasmussen (2011). “PILCO: a model-based and data-efficient approach to policy search.” ICML.
- K. Chua, R. Calandra, R. McAllister, S. Levine (2018). “Deep reinforcement learning in a handful of trials using probabilistic dynamics models.” NeurIPS.
- T. Gneiting, A. Raftery (2007). “Strictly proper scoring rules, prediction, and estimation.” JASA, 102(477).
- M. Hamada, A. Wilson, C. S. Reese, H. Martz (2008). Bayesian Reliability. Springer.
- B. Lakshminarayanan, A. Pritzel, C. Blundell (2017). “Simple and scalable predictive uncertainty estimation using deep ensembles.” NeurIPS.
- A. Gelman, J. Carlin, H. Stern, D. Dunson, A. Vehtari, D. Rubin (2013). Bayesian Data Analysis, 3rd ed., Ch. 6. CRC Press.