Bayesian statistics

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Bayesian statistics.

In statistics, Bayesian statistics is the discipline that states uncertainty about unknowns as probability and revises it with data. Bayesian statistics is the part of statistics that states uncertainty about unknowns with probability, then revises that statement after data arrive. A conclusion inside a chosen model is a probability for the unknown given the observations. A second conclusion, outside that arithmetic, is a check that the model which produced the probability is still credible. Gelman and coauthors describe the approach by that use of probability for uncertainty in inferences, and by the practical advantage that an interval for an unknown can be read as a probability that the unknown lies in the interval.[1]

The discipline is not a separate probability theory. The axioms are the ordinary ones. What changes is which statements receive probabilities. A parameter, a future observation, and a missing record are unknowns, and they are given probabilities alongside the events in the sampling model. Dodge’s encyclopedia entry puts the same idea in procedural form: specify a parametric family for the data, specify an initial distribution for the parameter, and calculate the final distribution by Bayes’ theorem. From that final distribution one reads a point summary, a region, or an assessment of a hypothesis.[2]

Bayesian statistics

Bayesian statistics
Fact Value
Topic Bayesian statistics
Listed on Bayesian statistics
Worked example 1

Motivating example

A woman has an affected brother and an unaffected father, so before any information about her own children the probability that she carries an X-linked hemophilia gene is 1/21/2. The unknown has two values: carrier or not. She then has children, and each son’s affection status is an observation. If she is a carrier, each son has probability 1/21/2 of being affected. If she is not, the probability that a son is unaffected is taken to be 11, the mutation rate being small enough to ignore in the example. Two unaffected sons are data. The discipline’s question is not the long-run error rate of a rule that declares her a carrier or not. It is the probability, after those sons, that she is a carrier, and then the probability of what a further son would show.[1]

The same pattern appears whenever a parameter is unknown and a sampling model says how the data would behave if the parameter were known. A proportion of successes, a normal mean, a regression coefficient, and the carrier indicator are different unknowns. Each is handled by writing a joint distribution and conditioning on what was observed. The hemophilia example is small enough that the conditioning is a fraction. The structure is the one used when the integral has to be computed numerically.

Definition

Gelman and coauthors divide the work into three steps. First, write a joint probability model for everything that could be observed and everything that is unknown, including parameters and any missing or future observations. The model has to match what is known about the scientific question and about how the data were collected. Second, condition on the values that were actually observed and read the conditional distribution of the unknowns. Third, ask whether that distribution and the model that produced it fit the data, whether the conclusions are reasonable in the science, and whether they move when the modelling choices move. If they do not hold up, the model is changed and the three steps are repeated.[1]

The joint model factors as p(θ,y)=p(θ) p(y∣θ)p(\theta, y)=p(\theta)\,p(y\mid\theta). The first factor is the prior distribution of the unknowns. The second is the sampling distribution. Holding yy at the observed value and reading the sampling factor as a function of θ\theta produces the likelihood. Bayes’ theorem converts the joint model into the posterior

p(θ∣y)=p(θ) p(y∣θ)p(y),p(\theta\mid y)=\frac{p(\theta)\,p(y\mid\theta)}{p(y)},

where p(y)p(y) is the marginal probability of the observed sample. A discrete unknown replaces the integral that defines p(y)p(y) by a sum. Within the model that was written down, the data affect the posterior only through the likelihood.[1]

The same two modelling choices appear before any calculation: identify the observations, specify a parametric family f(x∣θ)f(x\mid\theta), and specify an initial distribution f(θ)f(\theta). The final distribution f(θ∣data)f(\theta\mid\text{data}) is then Bayes’ theorem. All of the information the procedure uses about the parameter, in that account, is in the final distribution. A point summary, a region, and a hypothesis assessment are readings of it, not separate estimators pasted on afterwards.[2]

The unknown parameter is given a probability distribution because it is unknown. The distribution is not, by itself, a statement that the parameter was drawn from a super-population. A hierarchical model is the case that does say that: several related units have their own parameters, and those parameters are drawn from a further distribution. In the carrier example the 1/21/2 is a probability for this woman, from the information about her parents, not a frequency of carriers in a new sample of women.[1][2]

Posterior odds between two values of the unknown equal prior odds times the likelihood ratio. The marginal probability of the data cancels, which is why a comparison of two point values does not need the normalising constant. When a further observation arrives, the current posterior may be used as the prior. The result matches conditioning on the combined sample in one step. That sequential property is part of the definition of the update, not an extra approximation.[1]

Interpretation

A posterior probability is read as a probability for the unknown given the data. An interval that holds posterior probability 0.950.95 is read as an interval that, under the model, has probability 0.950.95 of containing the unknown. Gelman and coauthors contrast that reading with a confidence interval, which is interpreted relative to a sequence of similar inferences that might be made in repeated practice. They note that many users of ordinary confidence intervals already try to read them in the probability-for-this-unknown sense, and that the Bayesian calculation is the one that matches the reading.[1]

The reading is internal to the model. It says what the joint distribution implies once yy is known. It does not say that the joint distribution was a good description of the study. The third step exists because of that gap. Fit is judged by whether replicated data from the fitted model look like the data in hand, by whether the substantive conclusions are reasonable, and by whether the posterior moves when the prior or the sampling family is changed. A posterior that is stable under those changes is a different piece of information from a posterior that was computed once and not looked at again.[1]

Squared error as a loss, in Dodge’s account, makes the posterior mean the point summary: the estimate that minimises expected squared distance from the parameter under the final distribution. A region II with posterior probability equal to a stated level is the credible region. A hypothesis that restricts θ\theta to a set is accepted or rejected by comparing the expected loss of the two actions. Those three readings are available only after the final distribution has been calculated. Quoting a posterior mean without the prior and the sampling model leaves the joint distribution unnamed.[2]

Large samples change the interpretation in a way that can be stated precisely. As independent observations accumulate, the posterior approaches a normal distribution centred at the value that makes the model closest to the distribution generating the data, with variance (nJ)−1(n J)^{-1} in the Fisher information JJ of one observation, provided the limit is not on the boundary and the likelihood identifies the parameter. In that limit the likelihood dominates the prior, so a roughly specified prior and a carefully specified prior lead to similar posteriors. The limit is an approximation with conditions. It is not a reason to skip the prior when nn is small, and it fails when the parameter sits on the boundary, when the likelihood is flat, or when the prior excludes the limit point. A 95 percent central posterior interval then has, in the limit and when the model contains the true distribution, 95 percent repeated-sampling coverage. That is a theorem about the approximation, and it does not convert every finite-sample posterior interval into a confidence interval.[1]

The carrier calculation shows the finite-sample reading without a normal approximation. After two unaffected sons the posterior probability of being a carrier is 1/51/5. That number is not a frequency of carriers in repeated families except insofar as the prior 1/21/2 and the likelihoods were themselves frequencies. It is the probability, under this model, for this woman. A further unaffected son moves it to 1/91/9. An affected son, ignoring mutation, moves it to 11, because the likelihood of an affected son is 00 if she is not a carrier. The update is mechanical once the joint model is fixed. The scientific content is in the choice of that model, including the decision to ignore mutation.[1]

Worked example

The carrier probability starts at 1/21/2. The likelihood of two unaffected sons is 1/41/4 if she is a carrier and 11 if she is not. The unnormalised posterior weights are

14⋅12=18,1⋅12=12.\frac14\cdot\frac12=\frac18, \qquad 1\cdot\frac12=\frac12.

Their sum is 5/85/8, so

Pr⁡(carrier∣two unaffected sons)=1/85/8=15.\Pr(\text{carrier}\mid\text{two unaffected sons})=\frac{1/8}{5/8}=\frac15.

The prior odds are 11. The likelihood ratio is 1/41/4. The posterior odds are 1/41/4, and (1/4)/(1+1/4)=1/5(1/4)/(1+1/4)=1/5. Gelman and coauthors report the same value as 0.125/0.625=0.200.125/0.625=0.20.[1]

Your turn. Starting from the posterior probability 1/51/5, a third son is affected. Ignoring mutation, so that an affected son has probability 00 if she is not a carrier and probability 1/21/2 if she is, what is the new posterior probability that she is a carrier?

The unnormalised weight for the carrier is (1/2)⋅(1/5)=1/10(1/2)\cdot(1/5)=1/10. The unnormalised weight for the non-carrier is 0⋅(4/5)=00\cdot(4/5)=0. The posterior probability is 11.

Connections

The conditioning step itself is Bayesian inference. The number attached to a set of parameter values after the data arrive is a posterior probability. The joint specification, initial distribution together with sampling distribution, is a Bayesian model. The probability used for an unknown parameter is Bayesian probability: the same numerical calculus that probability theory uses for random outcomes, applied to uncertainty about a quantity that will not be sampled repeatedly.[1]

The identity that converts the joint model into the conditional distribution is Bayes’ rule. With a squared-error penalty the point summary is the posterior mean. An interval that holds a stated posterior probability is a Bayesian credible interval. Predictions for a new observation, averaged over the parameter, are prior and posterior predictive distributions. Comparing two fully specified models uses the marginal probability of the data under each model, the ingredient of a Bayes factor. When the constants of a prior are themselves given a distribution, the model is a hierarchical Bayesian model. The factor p(y)p(y) that restores total probability one is the normalizing constant.[1][2]

A sampling model alone, summarised by maximum likelihood, does not by itself supply a probability distribution for the parameter. Dodge computes the maximum-likelihood estimate for a Bernoulli probability as the observed proportion of successes, by setting the derivative of the log likelihood to zero, and then returns to the Bayesian method as the separate step that uses an initial distribution. The proportion is a summary of the likelihood. The posterior is that summary reweighted by the prior and normalised. Intervals and tests that are calibrated only by the long-run behaviour of a procedure answer the repeated-sampling question. A posterior probability answers the question about this parameter under this model. Large-sample theory is where the two answers meet, and the counterexamples of a boundary parameter and a flat likelihood are where they do not.[2][1]

Check yourself

Try these questions before opening an answer.

The three steps

What are the three steps in the outline of a Bayesian analysis?

Write a joint probability model, condition on the observed data, and check whether the model and its conclusions hold up.

Reading an interval

Inside the model, how is an interval that holds posterior probability 0.95 read?

As an interval that has probability 0.95 of containing the unknown.

Where the normal approximation stops

Why can the large-sample normal approximation to a posterior fail when the true value sits on the boundary of the parameter space?

The Taylor expansion is cut off in some directions, so the limiting shape need not be normal.

History

Thomas Bayes’s essay on the chance of an unknown event, given the number of successes and failures, was published in 1763, two years after his death, through Richard Price. Pierre-Simon Laplace independently turned sampling probabilities around and computed probability statements about an unknown proportion from observed counts. Dodge lists those works, together with de Moivre’s Doctrine of Chances (1718) and Gauss’s theory of errors (1809), as the origins of inferential statistics, and then Pearson’s criterion (1900), Student’s distribution (1908), and the work of Neyman, Egon Pearson, and Fisher as the later sampling theory. The Bayesian line kept the reversal from sampling probability to a probability for the unknown.[2][1]

The modern field, as Gelman and coauthors practise it, keeps the reversal and adds an explicit joint model, a computational summary of the conditional distribution, and a check of the model against the data and against alternative specifications. The carrier example is a two-point case of the same reversal Bayes and Laplace used for an unknown chance: a probability on the unknown before the trials, a sampling probability for the observed outcomes, and a conditional probability afterwards. Hierarchical models extend the same step to a population of parameters. Asymptotic normality of the posterior, when the regularity conditions hold, explains why a large sample can make the prior’s details unimportant, and the boundary and non-identification counterexamples explain why that explanation stops.[1][2]

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e f g h i j k l m n o p a. (pp. 1, 3) b. (p. 9, §1.4) c. (p. 3, §1.1) d. (pp. 6–7) e. (pp. 11–13) f. (pp. 8–9) g. (p. 3) h. (p. 3, §1.1) i. (Ch. 4, §4.2–§4.4, pp. 87–92) j. (p. 9) k. (p. 9) l. (pp. 3, 6–7, 11) m. (pp. 7, 9) n. (Ch. 4, §4.3–§4.4, pp. 89–92) o. (p. 3) p. (pp. 3, 9; Ch. 4, pp. 87–90) Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A. & Rubin, D. B. (2013). Bayesian Data Analysis. Chapman and Hall/CRC. https://doi.org/10.1201/b16018
  2. ^ a b c d e f g h a. (pp. 33–34) b. (p. 33) c. (p. 33) d. (pp. 33–34) e. (pp. 33–34) f. (p. 34) g. (pp. 32, 263–264) h. (pp. 33–34) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
Plain text
StatWiki (2026). "Bayesian statistics." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/bayesian-statistics.html
BibTeX
@misc{statwiki_bayesian_statistics,
  author = {{StatWiki}},
  title = {{Bayesian statistics}},
  year = {2026},
  url = {https://www.statwiki.io/articles/bayesian-statistics.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}