
A statistical measure used to compare the evidence for one hypothesis against another.The Bayes factor is a statistical quantity that quantifies the relative evidence for two competing hypotheses, typically a null hypothesis and an alternative. It is the ratio of the marginal likelihoods of the observed data under each hypothesis. A Bayes factor greater than 1 favors the alternative hypothesis, while less than 1 favors the null. It is a central tool in Bayesian inference, providing a continuous measure of evidence strength that can be updated as new data arrive.
The concept was introduced by Harold Jeffreys in his 1939 book 'Theory of Probability', where he also proposed the scale for interpreting its magnitude (e.g., >10 as strong evidence).
For each hypothesis, you compute the probability of the observed data given that hypothesis, averaging over all possible parameter values weighted by their prior distributions. This 'marginal likelihood' is then divided: Bayes factor = (marginal likelihood under H₁) / (marginal likelihood under H₀). Unlike p-values, the Bayes factor does not require a fixed significance threshold and can be interpreted directly as the ratio of posterior odds to prior odds. It naturally penalizes complex models, as they spread prior probability over more parameter space, reducing the average likelihood.
Bayes factors are widely used in psychology, medicine, and genetics for hypothesis testing, model selection, and meta-analysis, especially when researchers want to quantify evidence for the null hypothesis rather than merely rejecting it.
A Bayes factor of 20 means the data are 20 times more likely under the alternative hypothesis than under the null, but it does not mean the alternative is 20 times more probable—that also depends on the prior odds.
| B | variable | Bayes factor — bayes factor |
| D_k | variable | k-th data point — data |
| H_1 | variable | alternative hypothesis — hypothesis |
| H_0 | variable | null hypothesis — hypothesis |
| N | variable | number of data points — sample size |
| ∏ | operator | multiplication of terms for k=1 to N — product operator |




