26 Probability and Statistical Learning
Models are probabilistic statements about data. This chapter develops the continuous probability the rest of deep learning relies on—densities, expectations, and how they transform under a map—catalogues the distributions whose negative log-likelihoods are exactly our loss functions, derives maximum-likelihood and MAP estimation (and the priors that become regularizers), turns the resulting posterior integrals into computations with Monte Carlo and variational approximations, builds the statistics needed to tell a real improvement from noise, proves the concentration inequalities that make finite samples trustworthy—following them to uniform convergence, Rademacher complexity, and double descent—and caps it all with naive Bayes: a working classifier, fit by counting and then audited with the chapter’s own tools.
Resources and Further Reading
A short, opinionated shelf for going deeper into the probability and statistical learning that underpins these chapters—random variables and distributions, maximum-likelihood and MAP estimation, Bayesian inference, estimators, and hypothesis testing. We favor free and official sources.
Books
- Introduction to Probability — Blitzstein & Hwang: the gentlest rigorous route into random variables, expectation, and conditioning; the free PDF accompanies Harvard’s Stat 110.
- All of Statistics — Wasserman: a compact graduate-level tour of probability and inference (estimation, testing, bootstrap) written for computer scientists; the companion page hosts errata, code, and datasets.
- Pattern Recognition and Machine Learning — Bishop: the classic treatment of probabilistic modeling and Bayesian methods, now released by Microsoft Research as a free PDF.
- Probabilistic Machine Learning: An Introduction — Murphy: a modern, deep-learning-aware reframing of ML through probability and decision theory; free draft PDF with runnable notebooks.
- Mathematics for Machine Learning — Deisenroth, Faisal & Ong: Chapter 6, “Probability and Distribution,” is a clean self-contained refresher pitched exactly at ML readers; full PDF is free.
- Information Theory, Inference, and Learning Algorithms — MacKay: connects probability and inference to information theory and coding; the full text is free to read online.
- Bayesian Data Analysis — Gelman et al.: the standard reference for priors, posteriors, and practical Bayesian workflow once MAP and naive Bayes whet the appetite; third edition free as PDF.
- High-Dimensional Probability — Vershynin: where concentration inequalities, sub-Gaussian variables, and the strange geometry of high dimensions (norm concentration, near-orthogonality) get their systematic treatment; the free PDF is the standard modern reference.
- Computer Age Statistical Inference — Efron & Hastie: the bootstrap, large-scale testing, and the frequentist-Bayesian interplay told by two of the field’s architects—the natural sequel to this chapter’s statistics; free PDF from the authors.
Courses and video lectures
- Statistics 110: Probability — Harvard (Blitzstein): a full course with lecture videos, problem sets, and 250+ practice problems with solutions, mirroring the Blitzstein & Hwang text.
- Stat 110 lecture videos — YouTube: the complete lecture series, ideal for building intuition about distributions and conditioning alongside the reading.
Tutorials and notes
- Probability Theory Review — Stanford CS229 (Maleki & Do): a terse, well-organized refresher of exactly the probability used in ML—random variables, expectation/variance, Gaussians, and multivariate distributions.