Bayes estimator Created 2026-09-24 Updated 2026-11-05
A Bayes estimator chooses an action minimizing posterior expected loss after observing data:
The answer depends on the loss function: squared error gives the posterior mean, absolute error a posterior median, and discrete zero-one loss a posterior mode. For squared error, expanding proves the mean rule when the second moment is finite. Pointwise posterior minimization also minimizes integrated Bayes risk under the usual measurability and integrability conditions.
Bayes estimator under parameter-weighted squared error Created 2026-09-24 Updated 2026-11-05
Under with , assume and . Reweighting the posterior distribution by and completing the square in gives the unique Bayes estimator
Indeed, the posterior expected loss is a constant plus . The moment conditions justify this expansion. For it is the posterior mean; parameter-dependent weighting generally changes the optimum.
Bayes estimator under reciprocal weighted quadratic loss Created 2026-09-24 Updated 2026-11-05
For a positive parameter and loss , assume and . Then
This quadratic has the unique minimizer , a harmonic rather than arithmetic posterior mean. Both moment conditions matter: finiteness of the inverse moment alone does not prevent the posterior expected loss from being infinite for every finite action.
Bayesian credibility Created 2026-10-14 Updated 2026-11-05
Bayesian credibility estimates a risk's conditional expectation by its Bayesian posterior expected value under squared-error loss. When that posterior mean is an affine combination of exposure-weighted individual experience and a prior mean, the coefficient of the experience is its credibility factor. Exact Bayesian credibility is distinct from merely selecting the best affine estimator when the true posterior mean is nonlinear.
Bayesian deviance 2026-10-06
A Bayesian deviance is minus twice the log-likelihood, with any chosen additive data-only constant held consistent across the models being compared. Its Bayesian posterior expectation measures average fit. In the deviance information criterion, evaluating it at a parameter's posterior mean also enters the effective complexity penalty. This likelihood-based convention differs by a data-only constant from a saturated-model exponential-family deviance when a common saturated model exists.
A Bayesian hierarchical model is a statistical model used in Bayesian statistics, in which parameters at one level have a prior distribution controlled by parameters at another level. Those shared hyperparameters can themselves receive a hyperprior. For grouped observations , group parameters and shared parameters , one common conditional-independence structure is
The hierarchy specifies how information can be shared; the data are not assumed to become independent merely because they are listed in different groups.[ref]
A normal distribution example makes partial pooling explicit. Let and . Conditional on known , completing the square gives the posterior mean
For , , , and , this is4, halfway between the group mean and the shared mean. More precise group data increase . In a full hierarchy with uncertain hyperparameters, their posterior distribution must also be integrated over; simply fixing fitted values omits that uncertainty.
A measurement application appears in Blaza Toman's2017 calibration study. Shared uncertain calibration inputs induce correlations among results; the Bayesian hierarchical model represents this structure within the model rather than treating all replicates as independent.[ref]
Bayesian posterior Created 2026-09-24 Updated 2026-10-14
The Bayesian posterior is the conditional probability distribution of an unknown statistical parameter after observing data. Suppose a continuous prior distribution has prior density relative to Lebesgue measure , and is the sampling probability mass function or probability density function of the observed data in the statistical model. Bayes' theorem gives
The Bayesian model evidence is the normalization constant making the posterior density integrate to one. The strict positive, finite condition is essential: a zero or infinite normalizer does not define this posterior distribution, even if the unnormalized expression can be written down. Other reference measures give the corresponding density formula; discrete parameter values replace the integral by a sum. The posterior propriety article gives examples where normalization fails.
With fixed, is a likelihood function of . Its normalization as a sampling distribution is over possible data, not over parameter values. In particular, a likelihood function is not a probability density function for and need not integrate to one over . The prior density supplies the probability weighting, and the Bayesian model evidence normalizes their product. This distinction prevents a tempting mistake: reversing the conditioning merely by exchanging the words “data” and “parameter”.
For eight heads among ten conditionally independent Bernoulli trials, take the observed data to be the heads count . Its binomial distribution likelihood function and the prior density give
Using the Euler beta function , the Bayesian model evidence and normalized posterior density are
Thus the posterior distribution is . If the data are instead one particular ordered sequence with eight heads and two tails, its likelihood function omits the factor 45 and its Bayesian model evidence becomes . The factor cancels in Bayes' theorem, leaving the same posterior distribution; these two data descriptions have different sampling probabilities but identical information about here.
Figure 1.
Beta(2,2) prior, peak-normalized Bernoulli likelihood, and Beta(10,4) posterior after eight heads and two tails
. Details.
The prior density and posterior density use the left axis and each integrate to one. The dashed likelihood function uses the right axis and is divided by its maximum solely to compare its shape; it is not a parameter probability density function. The likelihood function peaks at , while the posterior mode is and the posterior mean is . Multiplying by the prior density shifts the preferred values toward one half while preserving a range of possibilities.
The resulting posterior variance is , compared with prior variance . In this example the update reduces uncertainty. The posterior predictive probability of heads on the next conditionally independent toss is , and the credible interval above reports a 95% range. These are summaries of the same posterior distribution, rather than competing estimates of one density peak.
Bayesian statistics Created 2026-09-24 Updated 2026-10-14
Bayesian statistics expresses uncertainty about an unknown statistical parameter through a probability distribution, then uses Bayes' theorem to update it after observing data. The prior distribution describes uncertainty before the current observations; the likelihood function describes how the statistical model generates those observations at each parameter value; the posterior distribution describes uncertainty conditional on the observations and that model. A physical parameter can have one fixed value while its value remains uncertain to us. Assigning it a probability distribution represents that uncertainty under the chosen model, rather than requiring the physical parameter to change randomly between measurements.
For example, suppose ten Bernoulli trials are independent conditional on an unknown heads probability , with a beta distribution prior . Eight heads and two tails give the posterior distribution by Beta-binomial conjugacy. Its posterior mean is , between the prior mean and observed binomial proportion . The Bayesian posterior below computes the whole update, and the credible interval below summarizes its remaining uncertainty. The conjugate update is explained in MIT 18.05, Reading 15: beta and normal conjugate priors.
The useful feature is that one posterior distribution supports several questions: a posterior mean estimates a value, a credible interval reports a range, and a posterior predictive distribution predicts a future observation while averaging over parameter uncertainty. With conditionally independent new data, today's posterior distribution can become tomorrow's prior distribution. These conclusions remain conditional on the statistical model and prior distribution; a precise update does not establish that either assumption fits the experiment.
A historical starting point is Thomas Bayes's essay in the 1763 volume of the Royal Society's Philosophical Transactions, communicated after his death by Richard Price. Its opening problem asks for uncertainty about an unknown event probability given observed successes and failures: the same direction of reasoning illustrated by the coin example. See Bayes and Price, An Essay towards solving a Problem in the Doctrine of Chances, opening letter and problem.
In the Gamma prior for an inverse-gamma scale model, assume . The variance of hypothetical means is , and the expected process variance is . The Bühlmann credibility factor is , giving the displayed expression. The optimal affine credibility estimate is . Its fixed-weight arithmetic-mean form differs from the reciprocal-based posterior mean.
Concentration of a beta prior near zero Created 2026-10-25 Updated 2026-11-05
For , direct integration of its probability density function gives the displayed tail for . Increasing strictly decreases every such tail probability, and converges in probability to zero as . Its mean is and its variance is ; both decrease for . For the variance, logarithmic differentiation gives in that range.
After successes in conditionally independent Bernoulli trials, Beta-binomial conjugacy gives posterior mean . Its derivative with respect to is negative, while the weight assigned to the prior mean is increasing for .
For , the posterior mean under has constant squared-error risk . Its unique Bayes property and constant risk make it the unique minimax estimator.
For one uniformly sampled integer , the likelihood function for the unknown endpoint is . A flat improper prior on positive integers gives an improper posterior distribution, since the harmonic series diverges. A reciprocal prior instead gives a proper posterior proportional to for , with approximate survival probability and finite quantiles, but infinite posterior mean. A uniform prior cut off at gives posterior mean , demonstrating sensitivity to that arbitrary cutoff.
The DIC effective parameter count compares mean Bayesian deviance with deviance at the posterior mean. It need not be an integer or equal the number of coefficients. Interpretation depends on the parameterization and the chosen observational likelihood; nuisance intercepts count when they appear in that likelihood.
Equal-tailed credible interval Created 2026-10-14 Updated 2026-10-25
An equal-tailed credible interval uses quantiles of a continuous posterior distribution to leave posterior probability in each tail. It is also called a central credible interval; central refers to equal tail probabilities, not equal distances from the posterior mean. For the beta distribution in credible interval, the 95% endpoints are approximately and , whose midpoint differs from the posterior mean .
Exact beta-binomial credibility with unequal exposures Created 2026-10-14 Updated 2026-11-05
For a common success chance with beta prior and conditionally independent binomial observations of sizes , put and . Beta-binomial conjugacy gives posterior mean , equal to . Multiplying by the next exposure predicts its expected count. The factor tends to one as exposure increases and to zero as prior concentration increases at fixed prior mean.
With the gamma scale inverse-gamma conjugacy model and prior shape , the Bühlmann model has . Its Bühlmann credibility premium equals , exactly the Bayes estimator under squared error loss of . Equality holds because the posterior mean is already affine in the observed sample mean.
Exact Bühlmann–Straub credibility for Poisson-gamma counts Created 2026-10-06 Updated 2026-11-05
With a Poisson-gamma conjugacy with unequal exposures model, and , so the Bühlmann–Straub credibility factor is . The credibility estimate simplifies to , exactly the posterior mean and hence the Bayes estimator under squared error loss. The agreement is exact because that posterior mean is already affine in the exposure-weighted data.
Gamma rate gamma conjugacy Created 2026-10-07 Updated 2026-10-14
Conditionally independent gamma distributions with known shape and unknown rate have likelihood proportional to . A gamma distribution prior of shape and rate therefore updates to shape and rate . When , the posterior mean of the conditional claim mean is . For and , this is a credibility estimate with weight . It is the reciprocal-rate version of gamma scale inverse-gamma conjugacy.
Gamma scale inverse-gamma conjugacy Created 2026-10-06 Updated 2026-10-07
For conditionally independent gamma distribution observations of known shape and unknown scale , an inverse-gamma distribution prior with shape and scale gives an inverse-gamma distribution posterior with shape and scale . The posterior mean of the conditional claim expected value is when the denominator is positive.
Gaussian conjugacy for an initialized AR(2) regression Created 2026-10-06 Updated 2026-11-05
Condition on initial observations and model
with known and independent standard-normal prior distributions for . Put and . Gaussian conjugacy for a normal linear model gives posterior precision matrix and posterior mean
The prior distribution makes positive-definite even with a deficient design matrix. The unscaled sums occur specifically when .
If and , the two full conditional distributions have means and and variances and . These formulas use the conditional autoregressive model of order two likelihood function. Giving the initial pair its stationary law, or imposing a stationary-parameter restriction, changes that posterior distribution.