Skip to main content
XenonStack
Bayesian Statistics: Priors, Posteriors, Uses
J
K
N
O
R
X
Y
Z

XenonStack Glossary Bayesian Statistics: Priors, Posteriors, Uses

Key takeaway

  • Bayesian statistics treats probability as a degree of belief and updates it with Bayes theorem as data arrives. See priors, posteriors, uses and limits.

Bayesian statistics is a branch of statistics, built on Bayes' theorem, in which probability expresses a degree of belief that is updated as new data arrives. The belief can come from past experiments or from expert judgement.

This page is for analysts, data scientists and decision makers who want a clear grounding in the Bayesian approach. It covers the core terms, how updating works, how it differs from frequentist statistics, where it is used and where it struggles, how it relates to AI agents, and what to do first.

What is Bayesian statistics?

Wikipedia describes Bayesian statistics as an approach where probability expresses a degree of belief in an event. Bayesian methods use Bayes' theorem to revise probabilities as new data arrives, and they assign probability distributions to parameters.

Two-column diagram of Bayesian updating. Inputs: prior, data, likelihood, normalising term. Result: combine, posterior, next round, check.

Data Basecamp gives the formula as P(A|B) = P(B|A) · P(A) / P(B), and defines the posterior as the updated probability of A once B has occurred.

What are the prior, likelihood and posterior?

TermMeaningRole
PriorWhat you believe about a proposition before the new evidenceStarting point, which can encode earlier knowledge
LikelihoodThe probability of the observed evidence if the proposition is trueMeasures how well the evidence supports it
PosteriorThe probability of the proposition after the evidence is taken into accountThe updated belief, which becomes the next prior
Normalising probabilityThe overall probability of the dataScales the result so probabilities sum to one

Wikipedia summarises the core idea as the posterior being proportional to the prior multiplied by the likelihood.

How does Bayesian updating work?

In the coin example from Data Basecamp, a fair-coin prior of 50 per cent moved to about 50.6 per cent after six heads in ten tosses, so the data did not strongly suggest an unfair coin. The prior holds until the evidence is strong enough to move it.

Because the posterior can become the prior for the next batch of data, the model can be updated continuously rather than rebuilt.

How does Bayesian statistics differ from frequentist statistics?

QuestionBayesianFrequentist
What is probability?A degree of beliefThe long-run relative frequency of an event
ParametersGiven probability distributionsTreated as fixed, so given no probabilities
Prior knowledgeEnters formally through the priorNot part of the model
OutputA posterior distributionEstimates and tests based on repeated sampling

The first two rows follow Wikipedia. Neither approach is simply better, and the choice depends on how much prior knowledge you have and how you need to express uncertainty.

Where is Bayesian statistics used, and what are its limits?

Data Basecamp lists medicine (combining earlier studies with new test data), machine learning (Naive Bayes classifiers for spam detection and text classification), economics (updating risk estimates) and the natural sciences. Its advantages include supplementing limited data with prior knowledge and modelling uncertainty directly.

The same page names two limits. Priors often come from expert judgement and can be subjective, which can shape results strongly. And the posterior often cannot be computed directly, so methods such as Markov chain Monte Carlo approximate it, which Wikipedia notes helped Bayesian methods gain prominence, though Data Basecamp adds they can be slow on large or high-dimensional problems.

How does Bayesian statistics relate to AI agents?

An agent that acts under uncertainty needs a way to update what it believes as evidence arrives, and the prior to posterior cycle is a standard way to describe that. Analytics that feed such decisions depend on well-governed data. For XenonStack's Context OS, see ElixirData.

What should you do first?

  1. State the question as a proposition you can assign a probability to.
  2. Write down your prior and where it comes from.
  3. Define the likelihood for the evidence you will collect.
  4. Update with the data and compare the posterior with the prior.
  5. Test how sensitive the result is to a different prior.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is Bayesian statistics in simple terms?

It is a way of doing statistics in which probability expresses a degree of belief, and Bayes' theorem is used to update that belief as new data arrives.

What are the prior and posterior in Bayesian statistics?

The prior is what you believe before considering new evidence. The posterior is the updated probability after the evidence has been taken into account.

How is Bayesian different from frequentist statistics?

Frequentists treat probability as the long-run relative frequency of an event and treat parameters as fixed. Bayesian inference assigns probability distributions to parameters.

What is Markov chain Monte Carlo used for?

It is a computational algorithm that approximates the posterior distribution when it cannot be computed directly, without computing the evidence term exactly.

What are the limits of Bayesian statistics?

Priors can be subjective and can strongly shape results, and approximating the posterior can be slow and resource-intensive for large or high-dimensional models.

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue