Bayesian Framework
The Bayesian framework treats an unknown parameter as a random variable with a probability distribution. Before observing data, beliefs about are encoded in a prior density ; the likelihood specifies how the observed data are generated given . Bayes’ rule combines them into the posterior
where the denominator is the marginal likelihood (also called the evidence). The posterior is the complete Bayesian answer: every inferential question (point estimates, credible intervals, model comparison, predictions) is a deterministic functional of .Point estimates are summaries of the posterior:
- Posterior mean: — minimizes posterior squared-error loss.
- Posterior mode (MAP): — minimizes posterior - loss. See MAP.
- Posterior median: minimizes posterior absolute-error loss.
The posterior predictive distribution of a new observation given data is
which averages the sampling distribution over posterior uncertainty in .Likelihood principle. All evidence about contained in data enters inference only through the likelihood function , viewed as a function of with fixed. Two experiments whose likelihood functions differ only by a -free multiplicative constant must yield the same posterior (and therefore the same Bayesian inference). One practical consequence is stopping-rule invariance: a data-dependent stopping rule (e.g., “stop when successes are seen” vs. “stop after trials”) does not affect the posterior, because the part of the sampling distribution that depends on the stopping rule is -free and cancels. This contrasts sharply with frequentist -values, which do depend on the stopping rule.
Because does not depend on , the unnormalized posterior is enough to identify the posterior shape, and most Bayesian computation (including MCMC) works with the unnormalized form and never computes .
Intuition
The prior encodes what is believed about before seeing data; the likelihood encodes what the data say about . Bayes’ rule multiplies them together and renormalizes — the posterior is a compromise between the two, pulled toward the prior where the prior is concentrated and pulled toward the MLE where the likelihood is concentrated. As the sample size grows, the likelihood sharpens and eventually dominates any fixed prior, so the Bayesian posterior concentrates around the MLE; for small samples the prior can meaningfully shift the answer, which is both the strength and the controversy of the framework.
The likelihood principle is what makes this machinery internally consistent. If the sole role of data is to multiply the prior by , then anything about the data-collection process that does not change the shape of as a function of is irrelevant to inference. Stopping rules, sampling plans, and the experimenter’s intentions all fall into this category: they change the normalizing constant of the likelihood but not its shape, so they change nothing. Frequentist procedures, which average over the full sampling distribution of the data, are not invariant to these choices and can give different answers from the same observed likelihood.
Properties
(Posterior Proportionality) Only the -dependence of prior likelihood matters; the evidence is a normalizing constant.
Writing and discarding factors that do not depend on is the workhorse computation of Bayesian statistics. For conjugate families, the right-hand side is proportional to a known distribution’s density and the posterior is identified by inspection. For non-conjugate problems, the shape of the unnormalized posterior is all MCMC needs: the ratio that appears in the Metropolis-Hastings acceptance probability cancels the evidence entirely.
(Sequential Updating) Data can be absorbed one observation at a time and the final posterior is the same as using all data at once.
For conditionally independent data given , Bayes’ rule factors as
so applying Bayes’ rule with as the “prior” for observation yields . Today’s posterior becomes tomorrow’s prior. This makes the framework natural for online learning and recursive filtering, and it is why the conjugate-update formulas are stated in the “prior--posterior” form: the hyperparameters of the posterior are the hyperparameters of the prior plus a contribution from the data.
(Likelihood Principle) Two datasets whose likelihoods agree up to a -free constant yield the same Bayesian inferences.
If for some constant that does not depend on , then and the two posteriors are identical. Stopping-rule invariance is the canonical consequence. Consider two experiments on a Bernoulli parameter : (a) fix trials and count successes, observing ; (b) keep sampling until successes are observed, requiring total trials. The binomial and negative-binomial likelihoods are
which differ only by the combinatorial prefactor. Both produce the same posterior under any prior on . A frequentist -value testing is under the binomial design and under the negative-binomial design — the “significance” depends on the experimenter’s intent, which the Bayesian calculation ignores.
(Prior Washing Out) For regular models and large , the posterior concentrates around the MLE at rate .
Under standard regularity (identifiability, smooth density, interior true parameter), the Bernstein-von Mises theorem gives
for any fixed prior with positive density at the true , where is the Fisher information. As the prior’s influence is and the likelihood’s influence is , so the posterior tracks the likelihood. This justifies the common heuristic “when the data are plentiful, the prior doesn’t matter” and connects the Laplace approximation to a large- Gaussian posterior.
(Posterior Predictive as Calibration) Predictions automatically inherit parameter uncertainty via the posterior predictive.
The plug-in predictive uses a single parameter value and underestimates predictive variance — when is itself uncertain, the true predictive spread is wider than a single likelihood under suggests. The posterior predictive integrates out , so predictive intervals automatically widen when the posterior is diffuse and tighten as grows. For conjugate models this integral is often closed-form (e.g., Beta-Binomial gives a beta-binomial predictive); for non-conjugate models it is approximated by drawing and then .
(Loss-Matched Point Estimates) The “best” point estimate depends on the loss function, which is why the posterior yields several of them.
A Bayesian point estimate is the minimizer of expected posterior loss: under squared-error loss the minimizer is the posterior mean; under absolute-error loss , the posterior median; under - loss , the posterior mode (MAP). The loss function is an application-level choice, not a property of the posterior, and different losses can give meaningfully different estimates for skewed posteriors. When the posterior is symmetric (e.g., Gaussian) all three collapse to the same point.
(Improper Priors) Priors that do not integrate to one are allowed if the posterior is proper.
A uniform prior on or a Jeffreys prior on is not a probability density, but the posterior can still be a proper density if the likelihood provides enough integrability. This is routine in practice — flat priors are the standard starting point for the Bayesian linear regression posterior, which is proper as long as the design matrix has full column rank. Checking posterior propriety is mandatory whenever an improper prior is used: the unnormalized form looks sensible even when it integrates to , and sampling from a non-integrable target can silently produce nonsense.
Examples
Beta-Binomial: the canonical calculation
Let be an unknown coin-bias and place a prior on :
Observe successes in flips, a sample with likelihood
The unnormalized posterior is a product of powers of and :
Recognizing the kernel of a beta density,
The posterior hyperparameters are the prior hyperparameters plus a contribution from the data: and . The posterior mean is
a weighted average of the prior mean and the MLE with weights determined by “prior sample size” vs. data sample size . As , the weight on the MLE tends to — the prior washes out. See 3.5.1 Beta-Binomial Model for the full conjugate development.
Likelihood principle in action: binomial vs. negative-binomial
Alice flips a coin times and records heads (binomial design). Bob flips the same coin until heads appear and records that this took flips (negative-binomial design). Both observe the same .
The binomial likelihood is . The negative-binomial likelihood is — the final flip must be a head, so only flips remain for the first heads to occur. The two likelihoods differ only by the -free combinatorial prefactors and .
Under any prior on , the two posteriors are
identical up to renormalization. Every Bayesian summary — posterior mean, MAP, credible interval, Bayes factor against — is therefore the same for Alice and Bob.A frequentist, by contrast, computes under Alice’s binomial design (not significant at ) and under Bob’s negative-binomial design (significant). The “significance” of the observation depends on which experiment Alice or Bob intended to run, even though the data are identical — a violation of the likelihood principle that has no analog in Bayesian analysis.
Posterior predictive for a new coin flip
Continuing the Beta-Binomial setup: after observing heads in flips with posterior , what is the probability that a new, independent flip is heads?
By the tower rule,
Plug-in prediction using the MAP would give for the predictive variance of ; the correct posterior predictive variance is strictly larger because it accounts for uncertainty in :
For new flips, the posterior predictive distribution of the number of heads is a beta-binomial distribution , which has fatter tails than a — the extra variance comes from integrating out . In the limit the posterior concentrates at the truth and the beta-binomial converges to the binomial.
See Also
- 3. Bayesian Statistics — parent index.
- 1.6 Bayes’ Rule — the event-level form of Bayes’ rule that the parameter-level version generalizes.
- 1.2.1 Maximum Likelihood Estimation — frequentist counterpart; the MLE is the mode of a flat-prior posterior.
- 1.2.2 Maximum a Posteriori Estimation — the MAP estimate as a posterior summary.
- 3.2 Credible Intervals — interval summaries of the posterior.
- 3.3 Bayes Factors — model comparison via marginal-likelihood ratios.
- 3.5 Conjugate Families — prior-likelihood pairs for which the posterior is closed-form.
- 3.9 Laplace Approximation — Gaussian approximation around the MAP, justified by Bernstein-von Mises.
- 3.11 MCMC — how to sample from posteriors when closed forms fail.