- Introduced by
- Harold Jeffreys
- Year
- 1961
- Type
- Bayesian hypothesis comparison
What does it do?
Harold Jeffreys developed the Bayes factor as a way to quantify evidence for a scientific theory.
According to Kass and Raftery's review, he set this out in a 1935 paper and in Theory of Probability. The Bayes factor test compares two competing hypotheses and returns a continuous ratio, BF₁₀, of how probable the observed data are under the alternative H₁ relative to the null H₀.
The intuition behind the method
BF₁₀ is the factor by which the data shift the odds between the two hypotheses. If BF₁₀ = 10, the data are ten times as probable under H₁ as under H₀. Posterior odds equal BF₁₀ multiplied by the prior odds, so a tenfold shift in the odds applies directly only when the prior odds are one; BF₁₀ is not by itself the posterior probability of either hypothesis. Kass and Raftery describe the Bayes factor, in Jeffreys' framing, as the posterior odds of the null hypothesis when its prior probability is one-half. Under equal prior odds that quantity is the ratio with the null in the numerator, which is the reciprocal of BF₁₀. The direction of any reported ratio must therefore be checked against the convention in use. A value of BF₁₀ below 1 favours H₀, and the scale runs continuously in both directions without a forced threshold. Unlike a p-value, which measures how surprising the data are under H₀ alone, BF₁₀ compares how well each hypothesis predicts the data.
History
Harold Jeffreys developed the Bayesian approach to evaluating evidence for scientific theories. Kass and Raftery trace it to a 1935 paper and to Theory of Probability. Their 1995 review in the Journal of the American Statistical Association (vol. 90, pp. 773–795) examined the Bayes factor as a practical tool of applied statistics.
When to use it
Choose the Bayes factor test when the question is which of two specified hypotheses the data favour, and when evidence for the null matters as much as evidence against it, as in replication work or in null results from experiments. It is set up for continuous, categorical and binary outcomes. With small samples the prior can dominate the posterior, so BF₁₀ then reflects the prior more than the data, and the prior must be examined closely before any conclusion is drawn. Do not use it when the prior cannot be justified, or when a fixed significance threshold is the only accepted reporting convention. The likelihood must also suit the data: if the outcome model is wrong, for example a normal model applied to clearly non-normal data, BF₁₀ inherits that error.
Limitations and considerations
- BF₁₀ depends on the prior placed on the parameters under each hypothesis, so results must be checked across alternative prior scales.
- BF₁₀ requires proper prior distributions on the parameters under each hypothesis. With improper priors the marginal likelihood is defined only up to an arbitrary constant, so the ratio is not determined.
- With very small samples the prior dominates the posterior and BF values become unreliable.
- The result is only as good as the likelihood: a misspecified outcome model distorts both marginal likelihoods.
- Exact computation requires integrating over the prior-weighted parameter space. The BIC avoids evaluating priors, but Kass and Raftery describe it only as a rough approximation to the logarithm of the Bayes factor.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives evidence for H₀ as well as H₁: a BF₁₀ below 1 is a graded measure of support for the null, not merely a failure to reject it.
- Does not depend on a significance threshold; the continuous ratio can be reported directly.
- Does not require the two hypotheses to be nested, as Kass and Raftery note, so non-nested models can be compared.
- Allows external information to enter through the prior, which Kass and Raftery highlight as a way of bringing outside knowledge into the evaluation of evidence.
Applications
- Comparing two group means with a Bayesian t-test, where BF₁₀ quantifies support for a difference against no difference.
- Regression and ANOVA designs, where Bayes factors compare competing models that need not be nested.
- Model comparison in the fields Kass and Raftery review, including genetics, sports, ecology, sociology and psychology.
- Replication work, where the Bayes factor indicates how strongly new data support or contradict an earlier finding.
How it works
How it works
Bayes' rule underlies the method. Each hypothesis has a prior probability that reflects belief before the data are seen, and the posterior odds for H₁ over H₀ equal the prior odds multiplied by BF₁₀. The Bayes factor is therefore the part of the update that comes from the data.
Formula
p(\theta\mid y) \propto p(y\mid\theta)\,p(\theta)
BF₁₀ is the ratio of the marginal likelihoods of the data under H₁ and under H₀. Each marginal likelihood averages the likelihood over that hypothesis's parameters, weighted by the prior on those parameters: p(data | Hₖ) = ∫ p(data | θ, Hₖ) p(θ | Hₖ) dθ. Because the result is an average over the prior, the prior specification directly shapes BF₁₀. The prior for each parameter must therefore be chosen and justified, and the conclusion should be checked with a sensitivity analysis across alternative prior scales.
Formula
BF_{10} = \frac{p(\text{data}\mid H_1)}{p(\text{data}\mid H_0)}Once BF₁₀ is computed, multiplying it by the prior odds gives the posterior odds: p(H₁ | data) / p(H₀ | data) = BF₁₀ × p(H₁) / p(H₀). Report BF₁₀ as a continuous value together with the prior used. Values above 1 support H₁ and values below 1 support H₀, and the strength of that support is read from the size of the ratio in the context of the prior sensitivity analysis, not from a fixed threshold.
Formula
\frac{p(H_1\mid\text{data})}{p(H_0\mid\text{data})} = BF_{10} \times \frac{p(H_1)}{p(H_0)}Common pitfalls
- Reading BF₁₀ as a p-value or as a significance threshold. It quantifies relative support for two hypotheses and is not an error rate.
- Reporting a single BF from one prior as if it were prior-independent, without a sensitivity analysis across alternative prior scales.
- Using an informative prior without stating and justifying it in the report.
- Treating BF₁₀ below 1 as proof that H₀ is true; it indicates support for H₀ of a graded strength, not certainty.
- Reporting BF₁₀ as if it were a posterior probability. Posterior odds also require the prior odds.
Frequently asked questions
How is BF₁₀ different from a p-value?
A p-value measures only how surprising the data are if H₀ were true; it says nothing about H₁. BF₁₀ is a ratio of how probable the data are under H₁ versus under H₀, so it weighs both hypotheses simultaneously. A p-value cannot provide positive evidence for a null hypothesis, whereas a BF₁₀ below 1 does exactly that.
What does BF₁₀ = 5 mean in practice?
It means the observed data are five times more probable under H₁ than under H₀. The posterior odds are that value multiplied by your prior odds for the two hypotheses, so the same BF₁₀ can support different conclusions depending on that prior. Its strength should be judged together with a sensitivity analysis rather than against a fixed cut-off.
Why does the prior matter so much, and what prior should I use?
BF₁₀ is computed by averaging the likelihood over the prior, so a different prior shape or scale can change it substantially, and the choice must be justified on the basis of prior knowledge about the parameters. Report the prior used and run a sensitivity analysis across several alternative prior scales. Kass and Raftery note that assessing the sensitivity of conclusions to the prior distributions is important and feasible.
Can I compute a Bayes factor for correlations or contingency tables, not just t-tests?
Bayes factors can be computed for other designs as well, such as correlations, contingency tables, regression and ANOVA. Kass and Raftery's review supports the general point that Bayes factors do not require nested models. Specific software functions and their default priors differ between packages, so they should be confirmed in the documentation of the package you use. The interpretation of BF₁₀ is the same across these test forms.
Related methods
Sources
Jeffreys, H. (1961). Theory of Probability (3rd ed.). Clarendon Press / Oxford University Press.
ISBN: 978-0198503682Kass, R. E. & Raftery, A. E. (1995). Bayes Factors. Journal of the American Statistical Association, 90(430), 773–795.
Open DOI reference