Beta-Binomial Conjugacy
Let be an unknown Bernoulli parameter (success probability). The Beta-Binomial conjugate pair is the prior-likelihood combination
which produces the closed-form posterior
The prior hyperparameters update by adding successes to and failures to . Equivalently, the prior is interpreted as “pseudo-successes” and “pseudo-failures” observed before the data.Posterior summaries:
- Posterior mean: — a weighted average of the prior mean and the MLE , with weights proportional to prior and data sample sizes.
- Posterior mode (MAP): when and ; equals the MLE under a uniform prior .
- Posterior variance: ; shrinks like .
Common prior choices:
- : flat prior; posterior is and the MAP equals the MLE.
- (Jeffreys prior): noninformative prior based on the Fisher information, ; has a U-shape favoring extremes.
- with small : weakly informative; centered at with “prior sample size” .
Posterior predictive for a new flip or new batch of flips:
- Single new flip: .
- new flips: , a beta-binomial with variance strictly larger than the plug-in .
The -success form (Bernoulli likelihood) generalizes trivially: for i.i.d. Bernoulli observations with , the posterior is identical to the single-binomial case.
Intuition
The Beta prior’s density has exactly the same shape in as the binomial likelihood . Multiplying the two adds exponents: and . Renormalizing recognizes the result as another Beta density. This shape-matching is the entire mechanism — Beta is conjugate to Binomial because their densities live in the same two-parameter exponential family parameterized by powers of and .
The update has a clean pseudo-data interpretation. A prior is statistically indistinguishable from observing prior successes and prior failures. Once real data arrive, the posterior counts are just successes and failures total. The ratio is the prior mean; the sum is the effective prior sample size. Small means weak prior and fast washout; large means strong prior that competes with the data.
Properties
(Posterior Mean as Shrinkage) The posterior mean is a convex combination of the prior mean and the MLE.
Writing and for the prior mean,
with weights summing to . When the posterior is dominated by the prior; when it is dominated by the MLE. The boundary is the regime where both contribute comparably. This shrinkage structure is the reason Bayesian inference stabilizes estimates for small : the MLE has variance that blows up relative to the parameter’s range for of order , while the posterior mean is automatically pulled toward the prior and never degenerates.
(Uniform Prior Recovers MLE) A prior makes the MAP equal the MLE.
Plugging into the MAP formula gives , exactly the binomial MLE. This is a general pattern: under a flat prior, Bayesian MAP estimation coincides with maximum likelihood, because the prior does not shift the location of the mode. The posterior mean, however, differs from the MLE even under a flat prior — rather than — because the Beta density is asymmetric unless .
(Jeffreys Prior) The prior is the Jeffreys prior for the Bernoulli likelihood and is invariant under reparameterization.
The Jeffreys prior is where is the Fisher information; for the Bernoulli, , giving , which is . Its defining feature is that inference under the Jeffreys prior is invariant to one-to-one reparameterizations of : posterior inference on and on, say, yields the same “objective” results. The Jeffreys prior is U-shaped, concentrating mass at and , which can be a feature (encodes the principle of indifference on a bounded scale) or a bug (injects nontrivial information into the tails) depending on the application.
(Predictive Distribution Is Beta-Binomial) The posterior predictive distribution for new flips is a beta-binomial, not a binomial.
Marginalizing out of new flips,
which is the pmf. Its variance is
strictly larger than the plug-in binomial variance — the inflation factor exceeds and accounts for posterior uncertainty in . The inflation vanishes as and the posterior concentrates.
(Sequential Update) The posterior after observing flips is the prior for the -th flip.
Beta-Binomial conjugacy is sequentially self-updating: if a priori and we observe flips one at a time, after seeing with total successes , the posterior is . Using this as the prior for flip and updating with the single new observation produces , the same as updating with all flips at once. This is the concrete form of the sequential updating property from 3.1 Bayesian Framework for this conjugate pair.
(Laplace’s Rule of Succession) Under a uniform prior, the posterior probability that the next flip is a success is .
Plugging into the posterior mean gives , known as Laplace’s rule of succession. It is the oldest explicit Bayesian predictive formula (Laplace, 1774) and a classic example of the benefit of shrinkage: after seeing flips the predictive probability is (not undefined); after seeing successes the predictive is (not the degenerate ). The MLE’s pathologies at the boundary are gone.
Examples
Three new flips after a uniform prior
Place a (uniform) prior on and observe heads in flips. The posterior is .
Posterior mean: . Posterior mode (MAP): . The MAP equals the MLE , as expected for the uniform prior.
equal-tail credible interval for : using the quantiles,
The Wald confidence interval is much wider and extends past — the Bayesian interval is automatically bounded inside .Predictive for new flips: . Evaluating the pmf,
The plug-in binomial would give ; the beta-binomial’s correctly accounts for posterior uncertainty, giving fatter tails.
Using a strongly informative prior
A manufacturer tests a new coin and claims the bias is very close to fair: with prior certainty. Encode this as , which has mean and standard deviation . A tester flips the coin times and observes heads.
MLE-only analysis: ; the coin appears strongly biased.
Bayesian posterior: with posterior mean , barely shifted from the prior mean . Posterior variance is , standard deviation — essentially the prior’s width. The strong prior swamps the small sample.
credible interval: . The point estimate of from the MLE is excluded by the Bayesian credible interval. To override the prior, the tester needs substantially more data — if the coin is truly biased at , the posterior mean will cross only after roughly observations with the same success rate. This illustrates both the strength (prior pulls toward believable values) and the risk (misspecified prior suppresses real signal) of Bayesian inference with informative priors.
Sequential updating
Start with and observe three flips in sequence: T, H, T.
After flip 1 (T): posterior is , mean .
After flip 2 (H): posterior is , mean .
After flip 3 (T): posterior is , mean .Updating with all three flips at once: prior , likelihood with . Posterior: . Identical to the sequential result, as the sequential-updating property guarantees. Every batch of data can be absorbed in any order or granularity; the final posterior depends only on the total successes and total failures, which is the sufficient statistic for the Bernoulli model.
See Also
- 3.5 Conjugate Families — parent index.
- 3.1 Bayesian Framework — prior, likelihood, posterior, posterior predictive; this note is the canonical worked example.
- 3.2 Credible Intervals — the Beta posterior’s credible intervals are the standard worked example.
- 3.5.4 Dirichlet-Multinomial Model — multivariate generalization: Beta is in dimension .
- 2.2b.3 Binomial Distribution — the underlying likelihood.
- 1.2.1 Maximum Likelihood Estimation — frequentist counterpart; the MLE is the MAP under .
- 1.5.2 Bayesian Bootstrap — a Dirichlet-weighted analog that generalizes beyond Bernoulli data.