Bayes factor Created 2026-09-28 Updated 2026-10-18
A Bayes factor measures how data change the relative support for two specified statistical models. Write for their Bayesian model evidence and define the direction explicitly:
For positive finite , a value above one favors over ; a value below one favors over . Reversing the comparison gives , the opposite direction used in some formulas below.
For mutually exclusive, exhaustive with positive prior probabilities, divide their two Bayes' theorem formulas. Their common data normalizer cancels, leaving
The Bayes factor therefore multiplies prior odds into posterior odds. It is evidence conditional on the specified statistical models and their within-model prior distributions; it is not . Model prior probabilities supply a separate input.[ref]
For an original stipulated example, consider ten independent and identically distributed Bernoulli trials, with heads as success. Compare with , both fixed before seeing the data. Take to be one particular ordered sequence containing eight heads and two tails. The likelihood function under either point model is , so
If , the prior odds for against are . Hence the posterior odds are , and
Equal model prior probabilities would instead give . The same Bayes factor can thus accompany different posterior probabilities. These statements condition on the two-model comparison; they do not establish that either statistical model describes a real coin.
Figure 1.
Evidence across heads counts and its multiplication of prior odds
. Original calculated Bernoulli trials example, with ten trials and fixed point models , . Left: the Bayes factor for each possible heads count; the highlighted eight-head result favors . Right: at that fixed result, the posterior odds equal times the prior odds. The marked prior becomes posterior probability . No empirical observations are plotted. Details.
Using the heads count instead of the ordered sequence changes the sample space. The binomial distribution assigns it mass . The same binomial coefficient multiplies both models' Bayesian model evidence and cancels in their Bayes factor. Mixing an ordered-sequence numerator with a count denominator would introduce an erroneous factor of .
Fix the candidate statistical models, their parameter prior distributions, and model prior probabilities before using the current data for this update. The Bayes factor is useful because it separates evidence from model prior odds, but it still depends on the parameter prior distributions. An improper prior has an arbitrary multiplicative normalization: multiplying its kernel by multiplies its formal marginal likelihood by , even if the within-model posterior distribution is normalizable. Without a separately justified convention, the ordinary Bayes factor is then undefined up to arbitrary constants.[ref]
Bayesian model evidence Created 2026-09-24 Updated 2026-10-18
The Bayesian model evidence is the prior predictive distribution evaluated at the data . For a statistical model with a normalized prior density , its marginal likelihood is
This is an expected value of the likelihood function under the prior distribution; for discrete statistical parameters, replace the integral by a sum. For continuous observations, is a probability density function value with respect to a specified data reference measure, rather than a probability of one exact observation. Comparisons must use the same data and reference measure. The same normalizes the within-model Bayesian posterior and supplies the between-model comparison in a Bayes factor.[ref]
A normalized prior distribution makes the Bayesian model evidence an average, so it cannot exceed the largest likelihood function value on its support. A broad prior distribution can assign little mass to values that predict the data well, even when one value gives an excellent fit. The worked uniform-alternative binomial Bayes factor below makes the difference between averaging and maximum likelihood estimation explicit.
Harmonic mean estimator of Bayesian model evidence Created 2026-09-28 Updated 2026-11-05
Let be a proper prior density, let for prior-almost every parameter, and let . For posterior draws , the harmonic mean estimator is
The identity follows by cancelling in the posterior density. The variance of is often infinite, making the estimate unstable even when an ergodic average is consistent.[ref]
The support qualification matters. If , cancellation instead gives . For a uniform prior on and , the evidence is , but every posterior likelihood value is one and the displayed estimator is always one. An improper prior also leaves the absolute evidence normalization undefined.
Jeffreys-Lindley paradox for a Gaussian point null Created 2026-09-24 Updated 2026-11-05
Suppose independently, and compare with for fixed , using equal prior model probabilities. Put . The posterior probability of a Gaussian point null is
Holding fixed while leaves the two-sided p-value unchanged but makes the null posterior probability tend to one. For , and , the p-value is about , while the null posterior is about .
The two procedures answer different model-based questions: a tail probability under the point null and a comparison of that null with a specified alternative prior distribution. The alternative's fixed prior scale spreads mass over parameter values much wider than the increasingly precise likelihood. This is the Jeffreys-Lindley phenomenon, not a conversion formula from p-values to posterior probabilities.[ref]
Savage-Dickey density ratio Created 2026-09-28 Updated 2026-11-05
Compare an unrestricted model with parameters to . Suppose the likelihoods agree under that restriction, the priors are proper, and the nuisance prior under equals the conditional prior under . Using compatible density versions with , Bayes' theorem gives
Indeed, the numerator of the marginal posterior density at is .
This ratio concerns densities in the unrestricted model, not a posterior atom at the null. A separately chosen nuisance prior under the null can invalidate the simple ratio; matching marginal nuisance priors is insufficient when and are prior-dependent. Density values on a measure-zero restriction also require an agreed continuous or otherwise specified version.[ref]