Belief, Updated
A probability is a degree of belief between 0 and 1. Bayes’ rule is the only correct way to update one of those beliefs when new evidence shows up.
In one line
Posterior = prior × likelihood, then renormalise.
The prior is what you believed. The likelihood is how well each hypothesis explains what you just saw. The posterior is what you believe now. Evidence that would be likely under many hypotheses barely moves you; evidence only one hypothesis predicts moves you a lot.
This is why a rare disease test can produce a positive result that is still probably wrong: if the disease is rare, the prior is tiny, and even a good test only lifts it so far. Bayes is a machine for not being fooled by base rates.
One step, or a whole loop
Bayes’ rule is a single update. Bayesian inference is what you get when you refuse to collapse to one answer: you keep the whole distribution over hypotheses, and every new observation reweights all of it. The posterior you compute today is the prior you bring to tomorrow.
That is the difference between “the most likely explanation is X” and “here is how much I believe each explanation, and here is what would change my mind”.
The catch is at the bottom of the fraction
The P(evidence) underneath the bar is a sum over every hypothesis you were willing to
consider. With five hypotheses that is five additions. With a model of a billion weights it
is an integral over a billion-dimensional space, and nobody can compute it.
Almost everything called Bayesian inference in practice is a way around that integral:
- Sample instead of summing. Markov chain Monte Carlo walks around the posterior and collects examples from it, rather than adding it up. If the walk is long enough, the examples are the distribution.
- Turn the integral into an optimisation. Variational inference looks for the closest simple distribution to the true posterior, and measures “closest” with KL divergence from chapter 7. Hard sum becomes a search.
- Fit a bump. Assume the posterior is roughly one smooth hill, find the top, and note how wide it is.
And the thing almost everyone actually does — train a network with gradient descent — is not Bayesian. It keeps one point in the space and discards the rest of the distribution. Weight decay does not change that, though it is a Bayesian idea underneath: for a linear model, weight decay is exactly maximum-a-posteriori fitting under a Gaussian prior. The same reading is the standard one for deep networks, with a caveat worth knowing — a Gaussian prior on weights induces activation priors that get more heavy-tailed with depth, so the tidy linear-model story is a simplification rather than a derivation.
Learning is Bayesian at the core
Training a model on data is a form of Bayesian updating: start with a prior (the architecture, the initialisation), see data (the likelihood), and end with a posterior over what the model should believe. When a model is “confidently wrong,” it has ignored its prior.