Bayesian Inference: A Beginner's Guide to Updating Beliefs
Bayesian inference is a method for learning from evidence. Instead of asking "what is true?", it asks "how much should I believe this, given what I already knew and what I have just seen?" You begin with a belief about something unknown, describe how likely the evidence would be under different possibilities, and combine the two into an updated belief. The whole idea fits into a single sentence: today's conclusion becomes tomorrow's starting point.
Where the idea comes from
The approach is named after an eighteenth-century English mathematician whose work on probability was published after his death, and it was developed further by later mathematicians and scientists. For a long time it was the less fashionable branch of statistics, partly because the calculations were formidable. Cheap computing changed that, and Bayesian methods are now routine in science, engineering and data analysis.
The three ingredients
Read more
Every Bayesian analysis has the same parts. The prior is what you believe before seeing the data — it can be vague and cautious or sharply informed by past experience. The likelihood describes how probable the observed data would be for each possible value of the thing you are estimating. The posterior is the result: your belief after the evidence has been taken into account. A useful way to picture it is a conversation, where the prior speaks first, the data answers, and the posterior is where the two settle.
What it is used for
You will find Bayesian reasoning wherever uncertainty has to be handled honestly: estimating a quantity from noisy measurements, comparing competing explanations, forecasting, medical decision-making, machine learning, and any setting where new information arrives gradually and beliefs should shift smoothly rather than lurch. It is especially natural for small samples, where prior knowledge genuinely helps, and for problems where you want a full picture of uncertainty rather than a single number.
Kinds of approach
For a few tidy combinations of prior and likelihood, the posterior can be written down exactly, and the arithmetic is manageable by hand. Most real problems are not tidy, so practitioners use simulation: they draw many random samples from the posterior and describe it from those samples, which is the family of methods known as Markov chain Monte Carlo. A faster, approximate alternative replaces sampling with an optimisation, trading some accuracy for speed on very large problems. Newer tools, including probabilistic programming languages, let you state a model and leave the computation to the software.
What beginners should know
Start with a small problem you can also solve roughly in your head, so you can tell whether the output makes sense.
- Choose your prior deliberately and say why. A prior is an assumption, not a secret.
- Test your model by generating data from it and seeing whether the inference recovers what you put in.
- Check that your sampling has actually settled before you trust the numbers.
- Report the uncertainty, not only the best estimate.
- Remember that a posterior is a statement about your model, not a guarantee about the world.
Done well, Bayesian inference is less a piece of mathematics than a discipline of honest bookkeeping — a way of keeping track of what you knew, what you learned, and how confident you should be.