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 givesThe 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 giveUsing the Euler beta function , the Bayesian model evidence and normalized posterior density areThus 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.
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.
Kalman filtering of a moving scalar state 2026-10-14
Consider a local-level state-space model , , with mutually independent centered Gaussian noises of variances and . Start with , independently of these noises. Before the first observation, the Kalman prediction step gives , . If , the Kalman gain is , and the posterior mean and posterior variance becomeThe next Kalman prediction step keeps the mean but adds fresh process noise variance, giving . If , thenThus new uncertainty is introduced at each transition and reduced by each measurement. It does not shrink to zero merely because many measurements have arrived: the state continues to change.
The steady-state local-level Kalman gain here isWith , the limiting posterior variance has the same numerical value. By contrast, the static-state model with gives and . That decreasing gain is appropriate for a state that truly remains constant. Applied to the changing random walk, it builds confidence in the wrong model. The choice of process noise is therefore a statement about state evolution, rather than just an instruction to make a plot look smoother.
The conditional multivariate normal distribution giveswhereFor a direct justification, form . It is jointly Gaussian with , has zero mean, and satisfiesThe independence of uncorrelated jointly normal variables therefore makes independent of . Conditional on , only the displayed affine shift remains, proving the result. This is the latent-function posterior variance; a new observation with fresh independent noise has predictive variance .
Gaussian process regression supplies a predictive distribution and uncertainty estimates. A Gaussian process regression posterior gives both a posterior mean and a posterior variance, allowing credible intervals for the latent function and a posterior predictive distribution for future noisy observations. The kernel ridge regression estimator by itself specifies a point estimate.
With the same positive-semidefinite kernel and matching regularization, the Gaussian process regression posterior mean equals the kernel ridge regression prediction. Thus the main additional benefit is the explicit probability distribution of predictions, conditional on the chosen Gaussian process model and its hyperparameters, rather than an automatic improvement in point-prediction accuracy.
Additional observations weakly decrease the posterior variance at every fixed prediction input. Apply part (ii) repeatedly to add observations one at a time. An observation whose remaining conditional covariance with is nonzero strictly decreases that posterior variance; one with zero remaining conditional covariance leaves it unchanged. Large observation noise reduces the information gained through the denominator .
For fixed Gaussian process hyperparameters and a Gaussian likelihood, the posterior variance depends on the observation locations and noise level, but not on the observed numerical outputs. Hence the reduction holds for each possible new output, rather than only on average. The predictive variance of a future noisy observation also decreases by the same amount because its extra independent noise variance is fixed. Refitting the hyperparameters after adding data can change the covariance function; the monotonicity statement compares conditioning under one fixed model.
For , the notation of part (i) gives , , and . Write . The remaining covariance is then and the new observation's remaining variance is . ThusEquivalently,The expression is valid also when and . For , a noiseless observation, interpreted as the limit , removes all remaining variance at the observed target.
The source's assertion that the target input always gives the greatest reduction needs an additional hypothesis. The reduction formula above does not require that assertion. For a counterexample, use the linear kernel with and target . With no informative previous observations, . This can also be arranged with by observing first at , which has zero covariance with all latent values. Observing at the target gives reduction , whereas observing at givesIndeed this Gaussian process is for a standard normal random variable , so the measurement at observes the same unknown coefficient with a larger signal relative to its noise.
One sufficient extra condition is that the existing latent posterior variance be maximal at among all candidate inputs. To prove it, let and . The Cauchy-Schwarz inequality gives . If , thenbecause is increasing. Thus target sampling is optimal under this extra condition, but it is not implied by the paper's arbitrary-covariance function assumptions.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 39 4 Solution Created 2026-10-03 Updated 2026-10-14
A credibility premium estimates a risk's expected future claims by combining its own observed experience with a collective or prior mean. In its basic form , the credibility factor is the weight assigned to individual experience. Larger credibility places less weight on pooling with the population. The amounts below are pure expected-claim premiums; no additional expense or profit loading is specified.
Under squared-error loss, the posterior risk for estimating the unknown conditional mean by isHence the Bayes estimator under squared error loss is the posterior mean. In the equal-year model, conditional independence makes the likelihood proportional to . Combining it with the normal prior and completing the square givesBecause , the required estimator is ; it also equals the predictive mean . The normal-normal credibility expression isThis is exact Bayesian credibility, not merely the best linear approximation to a possibly nonlinear posterior mean.
For unequal life counts use the usual exposure model: individual-life losses are conditionally independent with variance , and the annual totals are conditionally independent given the same . ThenThe dot denotes the stipulated normal approximation. The positive exposures are known. Define total past exposure and its experience mean byThe normal log-likelihood has quadratic term . With the prior , normal-normal conjugacy with unequal exposures gives posterior variance and meanTherefore the estimated pure premium per life for year has the normal-normal credibility with unequal exposures formIt is also an exact normal-model Bühlmann–Straub credibility estimate. The individual experience is exposure-weighted: the unweighted mean of the yearly per-life observations would generally discard the different precisions.
For positive , differentiation givesThus increasing the prior variance increases credibility, because greater between-risk heterogeneity makes the collective mean less representative of this risk. Increasing the individual process variance decreases credibility, because a fixed amount of observed experience becomes noisier. The future exposure supplies no new observation, so it does not enter . It only scales the total premium:The independent-life variance scaling is part of the usual exposure interpretation. Without it, a known variance for one life does not determine the variance of a total: a common pairwise conditional covariance would add to . Similarly, cross-year conditional dependence would change the joint likelihood. Those assumptions are implicit in applying the standard credibility model to the final paragraph.
Past exam of the mathematics course of the University of Cambridge 2006 ib Paper 1 7C Solution Created 2026-09-24 Updated 2026-10-14
For the independent normal distribution observations, the log likelihood isIts derivative is and its second derivative is , so the unique maximum-likelihood estimate isFor the prior with , multiplying prior density by likelihood and completing the square givesThus normal-normal conjugacy gives the posterior distributionFor quadratic loss, the conditional expected loss of action is the posterior variance plus . Its unique minimizer is the posterior mean, so the Bayes estimator isThis weights the sample and prior means by their respective precisions.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 36 2 b Solution Created 2026-10-03 Updated 2026-10-14
Multiplying the Poisson distribution likelihood by the Jeffreys prior gives the posterior density kernelThus, in shape-rate convention,It is a proper posterior distribution even when , provided . The posterior mean and posterior variance are and . This is Poisson-gamma conjugacy with unequal exposures, with the zero-rate prior interpreted as an improper kernel.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 36 2 f Solution Created 2026-10-03 Updated 2026-10-14
The new prior density contributes the factor . Multiplication by the Poisson distribution likelihood givesIts posterior mean displays the resulting shrinkage:The observed risk ratio is pulled towards one, most strongly for small exposures. The posterior variance is .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 e Solution Created 2026-10-03 Updated 2026-10-06
The posterior predictive probability averages the conditional probability over the Bayesian posterior. Using its gamma distribution density,For fixed and ,Consequently , and both tend to . This is reasonable because the posterior mean tends to the observed rate and the posterior variance tends to zero. Averaging then approaches evaluating it at the estimated rate: with abundant observations, predictive uncertainty about the rate vanishes.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 b Solution Created 2026-10-03 Updated 2026-10-14
Let , and . These are the two prior precision parameters. Completing the square in gives the normal-normal conjugacy updateThus the posterior mean is a precision-weighted average of the observed mean and the prior center zero. The posterior variance is the reciprocal of the total precision.
Posterior covariance matrix 2026-10-14
For a vector parameter with finite second moments and posterior mean , the posterior covariance matrix records its uncertainty and linear dependence after conditioning on the observations. Its diagonal entries are posterior variances. In a regular locally flat-prior normal distribution approximation it is the inverse observed information. A quadratic form has posterior expectation equal to the form at the posterior mean plus the trace of its matrix times this covariance.
Posterior moment 2026-10-20
A posterior moment is a moment computed under a posterior distribution. Its first raw moment is the posterior mean; its second central moment is the posterior variance.
Posterior variance Created 2026-10-06 Updated 2026-10-14
A posterior variance is the variance of a parameter under its Bayesian posterior, namely when finite. It describes remaining uncertainty after observing data and is distinct from the repeated-sampling variance of a fitted estimator.
Predictive variance 2026-10-25
The variance of a predictive distribution quantifies spread of a future quantity conditional on the observed data and model assumptions. For a noisy future observation with fresh independent noise of variance , it is . It should therefore be distinguished from the latent-function posterior variance.
Scalar Gaussian Kalman recursion 2026-10-14
For the state-space model , , assume independent Gaussian process noise and measurement noise of variances , independent of the prior state and previous observations. A normal distribution for the filtered state, with mean and variance , predicts mean and variance . Here denotes predicted state variance, rather than the observation-noise covariance notation used in the vector equations above. Gaussian conditional expectation then gives posterior mean and posterior variance , where the Kalman gain is .
Mere weak white noise assumptions do not imply normal posterior distributions: independent process noise with a Rademacher distribution makes the next state a mixture of two shifted normal distributions. The Kalman filter can still describe a best affine state estimate under appropriate second-order assumptions, but that is distinct from an exact Gaussian conditional law.

