Bayesian Inference
A way to update beliefs about an unknown quantity by combining a prior distribution with evidence from observations.
Published · Updated
It rained on three of your four walks to the station. Tomorrow’s walk is suddenly looking rather wet. How much weight should those four mornings carry? A Bayesian calculation makes you put a number on both your starting belief and what the walks taught you.
Work through a rainy-day forecast
For a simple exercise, give every rain probability between zero and one equal prior density, a Beta(1, 1) prior. Count three wet mornings and one dry morning as independent observations with the same chance of rain. The posterior becomes Beta(4, 2), with a mean of two thirds. Four walks moved the estimate and still left plenty of uncertainty.
Now look at the calendar. Were three walks under one slow-moving storm? If so, the independence assumption deserves another look before anyone packs an umbrella on the strength of that fraction.
What it means
Bayes’ theorem combines a prior with the likelihood of the observations to produce a posterior. You choose a model for how the observations arose. The result is conditional on that choice, which is where a small piece of domain knowledge, such as the weather yesterday, can matter a great deal.
In symbols, posterior ∝ likelihood × prior. The likelihood tells you how compatible the observations are with each possible value. The prior supplies their starting weights. Normalizing gives a distribution you can use to report a mean, an interval or a probability relevant to a decision.
A 95% credible interval contains 95% of the posterior probability under the chosen model. A frequentist 95% confidence procedure makes a different promise about coverage over repeated samples. Read which interval the authors calculated before using it to answer a question about probability.
Relevance to AI and machine learning
Bayesian optimization makes the reasoning tangible. A team choosing the next measurement might prefer settings with promising predicted performance, or a poorly measured region where a new observation would be especially informative. A model of uncertainty helps weigh those options. A Bayesian neural network can likewise represent uncertainty about parameters, although the usefulness of its resulting predictions still needs evaluation. Bayesian Adaptive Experimentation
Why it matters for researchers
Try the rainy-walk calculation with a prior from the same season and another from a noticeably drier month. If the conclusion changes substantially, say so. Prior choice also matters when combining small studies or planning adaptive experiments. What makes a Bayesian result interpretable is being able to explain where the starting information came from, how the observations changed it and which alternatives still look plausible.
