Bayes Factor

A Bayes factor compares two models and by the ratio of their marginal likelihoods (also called the evidence of each model):

The Bayes factor is the evidence update for the odds between the two models: combined with the prior odds and Bayes’ rule,

is evidence for relative to ; is evidence for .

Interpretation scale (Jeffreys, 1961). Common verbal descriptors of :

  • to — not worth more than a bare mention.
  • to — substantial evidence for .
  • to — strong evidence.
  • to — very strong evidence.
  • — decisive.

These are rules of thumb, not a replacement for reporting directly. Log-Bayes-factors are more numerically stable and additive over independent experiments.

Unlike a frequentist -value, the Bayes factor (a) compares two specific models rather than rejecting a null against an unspecified alternative, (b) can provide evidence for the null (small means the data support , not “insufficient evidence to reject”), and (c) does not depend on the stopping rule or sampling plan — stopping-rule invariance is inherited from the likelihood principle.

The Jeffreys-Lindley paradox. For a point-null vs. a diffuse alternative with large variance, the Bayes factor can strongly favor while the frequentist -value rejects . Concretely, if the prior is flat over a wide range, the marginal likelihood under averages over regions where is implausible, diluting it; meanwhile the -value sees only the likelihood at relative to the sampling distribution and can be small. The paradox is a genuine divergence between Bayesian and frequentist testing, not a bug in either framework — it reflects that the two procedures answer different questions.

Computation. Closed-form for conjugate pairs; otherwise use the Laplace approximation, bridge sampling, thermodynamic integration, or reversible-jump MCMC.

Intuition

The marginal likelihood is the average of the likelihood under the prior. A model with a sharp prior concentrated near the truth has a large marginal likelihood; a model with a diffuse prior spreads its bet and has a smaller one. This is the built-in Occam penalty for Bayesian model comparison: a model with more parameters or a wider prior pays a cost for integrating over parameter values that fit the data poorly, even if its best fit is as good as the simpler model’s. No explicit complexity penalty needs to be added — it is baked into the evidence.

The Bayes factor is sensitive to the prior in a way point estimates and credible intervals are not. The posterior under a given model “washes out” a vague prior for large , but the evidence for that model depends on the prior directly through . This is both a strength (the prior’s honesty is what makes the Occam penalty work) and a weakness (vague priors can be manipulated to favor either hypothesis). The Jeffreys-Lindley paradox is the cleanest illustration of this sensitivity.

Properties

(Evidence Update) The Bayes factor transforms prior odds into posterior odds.

Applying Bayes’ rule to the two models gives , and dividing the two ratios cancels :

When prior odds are (flat over models), the posterior odds equal the Bayes factor. When prior odds are different, multiply. This factorization separates the data-driven part (, depending only on the likelihoods and parameter priors) from the model prior (, depending only on pre-data beliefs about which model is correct), which is the main conceptual advantage over a raw posterior-odds report.

(Built-in Occam Penalty) Integrating the likelihood over the prior automatically penalizes complex models.

The marginal likelihood averages the likelihood against the prior. A model whose parameter space is large but whose prior does not concentrate the mass near high-likelihood values will have small marginal likelihood despite possibly fitting well at its MLE. A simpler model with a tighter prior near the truth pays no such penalty. The Bayesian Information Criterion (BIC)

is the leading-order approximation of under a Laplace approximation as ; the term is the explicit complexity penalty that emerges from integrating the Laplace Gaussian against the prior.

(Evidence for the Null) Bayes factors can support either model; frequentist -values can only reject.

A small (say ) is direct evidence that explains the data better than — a meaningful affirmative claim for . A large -value, by contrast, is only “failure to reject” and gives no statement of confidence in the null. This asymmetry matters most in cases where null effects are scientifically interesting: bioequivalence trials, replication studies, and checks that a proposed predictor has no effect.

(Stopping-Rule Invariance) The Bayes factor inherits the likelihood principle; the data-collection plan is irrelevant.

Two experiments that produce the same observed likelihood yield the same marginal likelihood (up to a data-only constant that cancels in the ratio) and therefore the same Bayes factor. Stopping when a specific -value threshold is hit, sampling until a fixed number of successes, or running until a budget is exhausted — all produce identical Bayesian evidence if the resulting likelihood is the same. Frequentist testing, by contrast, has different Type-I error rates under different stopping rules, which is the source of “-hacking” controversies.

(Jeffreys-Lindley Paradox) Vague priors can make the Bayes factor favor the null arbitrarily strongly, while the -value rejects.

Consider testing vs. with a Gaussian likelihood for a sample mean. The marginal likelihoods are

and

For fixed with (i.e., -score fixed as grows), sending makes even as the -score stays fixed at a “significant” value like . Concretely, a -value of can coexist with as small as for wide enough priors — the data are “significant” under frequentist testing but the Bayes factor calls them evidence for the null. This is not a paradox in the logical sense; it is a predictable consequence of using a vague prior with a point-null, and it disappears when the prior is chosen proportionate to the scientific question.

(Not a Likelihood Ratio) and the frequentist likelihood ratio coincide only for two point hypotheses.

When both and specify single parameter values with no free parameters, the marginal likelihoods reduce to the likelihoods and . As soon as either model has a prior (i.e., a free parameter that is integrated out), and diverge: uses the maximum-likelihood fit under each model, while uses the prior-averaged fit. The two generally have the same sign (both pick the better-fitting model) but different magnitudes, with typically favoring the more complex model because it uses its best fit while the Bayes factor penalizes it for diffuse priors.

(Computation) Marginal likelihoods are usually the hardest Bayesian quantity to compute.

For conjugate models, the marginal likelihood has a closed form (see conjugate families — e.g., the Beta-Binomial evidence is ). For non-conjugate models, three standard approaches:

  1. Laplace approximation: . Simple and fast; -accurate for smooth unimodal posteriors. See 3.9 Laplace Approximation.
  2. Bridge sampling / thermodynamic integration: uses MCMC draws to produce unbiased marginal-likelihood estimates; expensive but asymptotically exact.
  3. Reversible-jump MCMC: samples jointly across models in a single chain; gives posterior model probabilities directly without ever computing separately.

Examples

See Also