AI Glossary / Statistics and probability / Intermediate
Bayesian statistics
Definition
Bayesian statistics is an approach to statistical analysis that represents uncertainty about unknown quantities with probability distributions and updates those distributions using observed data. It combines a prior with a likelihood to obtain a posterior, then uses that posterior for estimation, prediction, comparison, or decision analysis. A sound application also requires model construction, computational checking, and evaluation of assumptions.
What it means
The central idea is to describe what remains uncertain rather than reporting only a single fitted answer. Unknown quantities might be a conversion probability, regression coefficients, group differences, or the structure of a model.
A prior expresses uncertainty before the particular observations being analyzed. The likelihood describes how those observations could arise under different parameter values. The posterior combines these ingredients through Bayes' theorem.
Bayesian statistics is a broad family of methods, not one test or software package. It includes simple calculations with closed-form answers and complex models requiring substantial computation. Its conclusions are conditional on the model and information supplied; they are not automatically more objective or more accurate because probability distributions are reported.
How it works
Begin with a clear question, defined measurements, and a model connecting unknown quantities to observations. Choose priors whose implications are understandable in the application. Simulating possible data before fitting can reveal implausible assumptions that are hard to see in parameter notation alone.
Compute or approximate the posterior distribution. Summarize quantities that answer the question, such as an expected rate, a credible interval, a probability of exceeding a useful threshold, or a predictive distribution for future outcomes.
Check the computation and compare the model's predictions with relevant features of observed or held-out data. Computational success does not establish model adequacy. Where reasonable alternatives lead to different conclusions, report sensitivity rather than hiding it behind one preferred result.
For a decision, combine posterior uncertainty with consequences and objectives. The statistically most probable state need not imply the best action. Continue documenting changes to the model and analysis so that the final conclusion can be understood and reproduced.
Three practical examples
- Product experiments: estimate uncertainty in response probabilities and compare quantities that matter to an explicitly defined decision.
- Forecasting: propagate uncertainty in estimated parameters into distributions of future demand or workload.
- Grouped data: model related locations or teams jointly, allowing partial information sharing while preserving supported differences.
Think of it this way
Think of an analysis as a set of transparent assumptions that produces a changing picture of uncertainty. Data sharpen or redirect that picture, while checks ask whether the picture describes the situation adequately. The update is one important step, but choosing and examining the picture are part of the work too.
Worked example
Suppose p is a stable probability that a visitor completes a defined action. Use a Beta(2, 4) prior, whose mean is 2/6 = 1/3. Observe eight visitors, with three completions and five non-completions, assumed independent conditional on p.
The binomial likelihood contributes p³(1 - p)⁵. Combining it with the beta prior gives the posterior Beta(5, 9). Its mean is 5/14, approximately 0.357143, and its variance is (5 × 9)/(14² × 15) = 3/196, approximately 0.015306.
The posterior predictive probability that the next visitor completes is 5/14. For twenty comparable future visitors, the expected number of completions is 20 × 5/14 = 50/7, approximately 7.142857. That expectation is not a guarantee or a count that an individual future batch must achieve.
For two future visitors, the probability that both complete is E[p² given data] = (5 × 6)/(14 × 15) = 1/7, approximately 0.142857. Squaring the posterior mean would instead give 25/196, approximately 0.127551. Integrating uncertainty in the common p explains the difference.
If visitors differ systematically or outcomes influence one another, the simple common-probability model needs reconsideration before applying these predictions.
Illustrative case study
Fictional case study: Beacon Learning analyzes completion of a short introductory activity. The team defines a completion consistently, records its prior reasoning, and separates training-period data from later observations used for evaluation.
An initial beta-binomial analysis is easy to explain, but checks reveal substantial differences between first-time and returning visitors. Analysts compare the simple model with one that represents those groups and report how the prediction changes.
The final presentation includes assumptions, uncertainty, and the practical decision being considered. The case illustrates a modeling workflow; it does not claim that a posterior calculation alone establishes an intervention's causal effect or commercial value.
Common misconceptions and mistakes
Do not confuse the likelihood with the posterior, or a posterior probability with a p-value. These quantities condition on different things and answer different questions.
Do not treat priors as optional merely because software supplies defaults. Nor should narrow credible intervals be taken as evidence that omitted variables, measurement problems, or selection effects have disappeared.
Avoid claiming that Bayesian analysis needs no validation, that all priors become irrelevant with enough data, or that every approximate inference method returns the exact posterior. Model support, information content, and computational behavior remain important.
Business use
Businesses can use Bayesian statistics when explicit uncertainty helps compare actions, combine information, or plan further measurement. It can make assumptions discussable and support forecasts that reflect more than one plausible parameter value.
The practical standard remains whether the analysis is credible and useful. Define the decision quantity, review prior implications with knowledgeable colleagues, assess predictive performance, and communicate limitations in ordinary units. Retain an analysis record that distinguishes observed evidence, assumptions, computational approximations, and judgment about consequences.
People also ask
Is Bayesian statistics only for small datasets?
No. It applies across data sizes, although model and computational choices differ.
Does it require simulation?
No. Some models have exact analytical posteriors; others need numerical methods.
Does it remove judgment?
No. It makes important choices about priors, likelihoods, measurement, and decisions available for explicit examination.
Check your understanding
What is the posterior distribution in the example?
Answer: Beta(5, 9).
Why is the expected future completion count not necessarily an integer?
Answer: It is an average over possible integer outcomes.
Why does squaring the posterior mean miss the two-completion probability?
Answer: It ignores uncertainty in the shared probability p.
Related terms
- Bayesian inference
- Prior (regularizer)
- Likelihood
- Posterior
- prior
- credible interval
- posterior predictive checking
- hierarchical modeling
- Bayesian decision theory
Learn next
work through conjugate models, distinguish parameter uncertainty from future-outcome variation, and practice prior and posterior predictive checks. Then study numerical diagnostics and sensitivity analysis before moving to more elaborate models.
More in Statistics and probability
- Bayesian program synthesis - Bayesian program synthesis constructs or selects programs by treating candidate programs as hypotheses in a Bayesian model.
- Bayesian Regression - Bayesian regression models an outcome conditional on predictors while assigning prior distributions to unknown model parameters and updating them with...
- Bayesian search theory - Bayesian search theory is a framework for allocating search effort using probabilities of a target's location, models of detection, and Bayesian updates as...
- Bayesian survival analysis - Bayesian survival analysis models time until a defined event using probability distributions and Bayesian updating, while accounting for incomplete...
- Bayesian vector autoregression - Bayesian vector autoregression is a Bayesian approach to modeling several time series jointly as functions of their past values.
- Behrens - Fisher problem - The Behrens - Fisher problem concerns inference about the difference between two normal-population means using independent samples when the population...
Sources
Sources: KNIME, Data Science Glossary, Bayesian statistics, https://www.knime.com/blog/data-science-glossary ; Andrew Gelman and colleagues, Bayesian Workflow, https://arxiv.org/pdf/2011.01808 . The supplied definition and primary workflow paper's introductory framework were read. The beta-binomial example is original, with independently checked posterior moments and predictive calculations.
Previous: Bayesian search theory Next: Bayesian structural time series