Bayesian inference
Bayesian inference is a way of reasoning under uncertainty that starts from prior beliefs and uses Bayes' theorem to update them into posterior beliefs as new evidence arrives.
Bayesian inference treats probability as a measure of belief that can be revised. It has three ingredients. The prior is how likely a hypothesis seemed before the new evidence. The likelihood is how probable the evidence would be if the hypothesis were true. Bayes' theorem combines them into the posterior, the updated probability. In short, the posterior is proportional to the likelihood times the prior, and today's posterior becomes tomorrow's prior when more evidence comes in.
A standard textbook example uses two bowls of biscuits. Bowl one holds 30 plain and 10 chocolate; bowl two holds 20 of each. You pick a bowl at random, so each starts at 50%, and draw a plain biscuit. Plain biscuits are more likely from bowl one, so the probability that you chose it rises from 50% to 60%. The same arithmetic tells a doctor how much a positive test should change a diagnosis, or a spam filter how much a word should change its verdict on an email.
The method is named after Thomas Bayes (1701 to 1761), whose essay on the problem was published in 1764, after his death, with an introduction by his friend Richard Price. Pierre-Simon Laplace developed the theorem into a general tool and applied it to astronomy, medical statistics and law. For much of the twentieth century other, frequentist methods dominated statistics, but Bayesian work grew rapidly from the 1980s once Markov chain Monte Carlo methods made the calculations practical on computers.
Bayesian ideas run through machine learning. Spam filters have long used them. Bayesian optimisation, popularised for machine learning by Jasper Snoek and colleagues in 2012, models how a system's performance depends on its settings and picks the next settings to try, automating hyperparameter tuning. Researchers have also used the framework to explain modern models: a 2021 paper by Sang Michael Xie and colleagues argued that in-context learning in language models can be understood as implicit Bayesian inference under particular assumptions about the training data.
The practical appeal is honest uncertainty: a Bayesian model gives a spread of plausible answers rather than one number. The costs are computation, since the posterior rarely has a neat formula and must be approximated, and the prior, which is a choice that others can dispute. Note that this is a different use of the word from AI inference, which simply means running a trained model.
It is a method for updating how strongly you believe something as evidence comes in. You start with a prior belief, ask how likely the new evidence would be if your belief were true, and combine the two using Bayes' theorem to get an updated belief. Each update can then serve as the starting point for the next. Bayesian statistics treats probability as a degree of belief, so you can put a probability on a hypothesis and revise it with data. Frequentist statistics treats probability as the long-run frequency of outcomes and avoids putting probabilities on fixed hypotheses. In practice both are widely used, and they often reach similar answers with plenty of data. No. In AI, inference usually means running a trained model to get an output, such as a chatbot reply. Bayesian inference is a statistical method for updating beliefs from evidence. Some AI systems use Bayesian methods, but the two terms describe different things. It appears in spam filtering, in Bayesian networks that model uncertain relationships, in Bayesian optimisation for tuning model settings, and in methods that estimate how uncertain a model's predictions are. Researchers also use it as a lens for explaining how language models learn from examples in a prompt.Common questions
What is Bayesian inference in simple terms?
What is the difference between Bayesian and frequentist statistics?
Is Bayesian inference the same as inference in AI?
How is Bayesian inference used in machine learning?
Search for "Bayes theorem explained", "prior and posterior probability" or "Bayesian optimisation hyperparameters" to go deeper. Reliable sources include university statistics courses, the Stanford Encyclopedia of Philosophy for the history and philosophy, and papers on arXiv for machine learning uses. Be wary of popular accounts that present Bayesian reasoning as a cure for every error; the answer is only as good as the prior and the model of the evidence.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.