A conjugate family is a prior distribution such that the posterior, obtained by Bayes’ rule with a particular likelihood, lies in the same parametric family as the prior. Conjugate priors deliver closed-form posterior updates, so Bayesian inference reduces to tracking a few hyperparameters across observations instead of evaluating intractable integrals. They are the first tool to reach for whenever a model’s likelihood admits a conjugate partner.

The practical shape of every conjugate update is the same: the prior’s hyperparameters decompose into “prior counts” (successes, trials, sum-of-squares, effective sample size), and the posterior’s hyperparameters equal the prior’s plus the corresponding data counts. This makes the prior interpretable as “pseudo-data” whose influence is diluted as real data accumulate. When enough data is seen, the posterior is dominated by the likelihood and the prior washes out (see Bayesian Framework’s (Prior Washing Out) property).

Prerequisites

Contents

Shared Structure

Every conjugate pair in this subfolder follows the same template. The conjugate prior is chosen so that its density has the same kernel (the -dependent part) as the likelihood, viewed as a function of . Multiplying prior by likelihood then produces another density in the same family with updated hyperparameters. For the Beta-Binomial, both prior and likelihood are products of , so the posterior is . For the Gamma-Poisson, both are products of , so the posterior is . Every example in this folder has the structure

This is the mechanical reason Bayesian inference under conjugate priors is fast and tractable — the “sum” is a vector of sufficient statistics, and updating the posterior requires only accumulating those statistics as data arrive.

When Conjugacy Fails

Conjugate priors cover an important but narrow set of models. Logistic regression, Poisson regression with non-log link, Gaussian processes with non-Gaussian noise, and almost all hierarchical models with more than two levels have no conjugate prior. The standard toolkit once conjugacy fails:

  1. Gibbs sampling with conditionally conjugate updates — the full joint is not conjugate but each full conditional is. See 3.11.2 Gibbs Sampling.
  2. Data augmentation — introduce latent variables that restore conjugacy of the conditional updates. See probit regression in the Gibbs note.
  3. Laplace approximation — approximate the posterior by a Gaussian around the MAP. See 3.9 Laplace Approximation.
  4. Metropolis-Hastings — direct sampling without any conjugacy; applies to arbitrary posteriors.

See Also