Bayesian Model Testing Research — Bayesian Model Comparison and Hypothesis Evaluation

Statistics
Introduced by
Harold Jeffreys; formalized for applied sciences by Robert Kass and Adrian Raftery
Year
1935 (Jeffreys); widely adopted in social and behavioral sciences from the 1990s onward
Type
Quantitative inferential research design
Family
Survey / observational design

What does it do?

Bayesian model testing research is a quantitative design in which competing theoretical models or hypotheses are evaluated by comparing their marginal likelihoods given the observed data.

The central quantity is the Bayes factor, a ratio that expresses how much more likely the data are under one model than under another. Kass and Raftery (1995) present Bayes factors as a practical way of evaluating evidence in favor of a null hypothesis relative to a specified alternative, a use that p-values do not support directly.

The intuition behind the method

Suppose two rival explanations are available for a dataset: one says a new treatment has no effect, and the other says it shortens recovery time. Bayesian model testing asks which explanation the observed data favor, and by how much. The Bayes factor answers this as a single ratio, for example 'the data are many times more likely under the treatment-effect model than under the null model.' Because the ratio is based on the likelihood of the actual data, it can be updated when new data arrive, which suits research that accumulates evidence across studies. A Bayes factor that favors the null model is direct evidence for the null, whereas a non-significant p-value only indicates that the null was not rejected.

History

Harold Jeffreys developed the approach to quantifying evidence for scientific theories, which he set out in his book Theory of Probability; the third edition, from 1961, is the one cited here. Kass and Raftery's 1995 review in the Journal of the American Statistical Association treated Bayes factors as a practical tool of applied statistics and presented examples from several scientific fields. Adoption in the social and behavioral sciences expanded from the 1990s onward.

When to use it

Choose Bayesian model testing when competing models can be stated as precise, parameterized statistical models and the aim is to quantify evidence for each, including evidence for a null model. It suits replication research, pre-registered studies, and designs in which data are collected in stages, because the Bayes factor can be updated as data arrive. It is not appropriate when the hypotheses cannot be parameterized, when the sample is so small that the posterior is dominated by the prior, or when the research question is descriptive or predictive rather than a comparison between models. Where prior information is weak, the conclusions depend more heavily on the prior choice and should be checked with a sensitivity analysis.

Limitations and considerations

  • The Bayes factor depends on the prior distributions, and the dependence is strongest in small samples; a poorly chosen prior can change the conclusion.
  • Marginal likelihoods are mathematically demanding for complex models, and numerical or asymptotic approximations introduce their own error.
  • Each model must be specified with full distributional detail before analysis, which requires more theoretical precision than most null-hypothesis workflows.
  • Verbal interpretive scales for Bayes factors (Jeffreys 1961; Kass and Raftery 1995) are rough conventions and differ from each other, so they are not universal thresholds.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Provides a continuous measure of evidence for each model rather than a binary significant or non-significant decision.
  • Can quantify evidence for a null hypothesis relative to a specified alternative model, a use that p-values do not support directly; Kass and Raftery (1995) discuss this use explicitly.
  • Updates naturally as new data arrive, which supports sequential and cumulative research designs.
  • Penalizes unnecessary model complexity through the marginal likelihood, because the integral averages over the whole prior parameter space.
  • Interpretable as a ratio: BF10 states how many times more likely the observed data are under M1 than under M0.
  • Prior information from earlier studies or meta-analyses can be incorporated formally, as Kass and Raftery (1995) point out.

Applications

  • Testing whether an intervention produces an effect versus no effect in randomized controlled trials, including explicit evidence for a null result.
  • Comparing structural equation models or factor-analytic measurement models with different theoretical structures.
  • Sequential evidence accumulation in multi-site replication studies, where data from each site update a common Bayes factor.
  • Evaluating competing cognitive or psychophysical models on response-time or accuracy data in experimental psychology.
  • Model selection in regression, comparing models with different predictor sets while penalizing unnecessary complexity.
  • Meta-analytic model testing, combining prior evidence with new data through Bayesian updating to assess cumulative support for a hypothesis.

How it works

How it works

1

The researcher defines at least two competing models: typically a null model M0 (e.g., no effect) and one or more alternative models M1 encoding substantive theoretical predictions. The model specification must be precise enough to allow a likelihood function to be written for each — vague verbal hypotheses must be translated into parameterized statistical models before Bayesian comparison is possible.

2

Prior distributions p(θ | M) are specified for the parameters of each model, encoding existing knowledge or theoretical expectations before the data are seen. Prior choice has a direct effect on the Bayes factor. Informative priors can be based on earlier studies or meta-analyses; when prior knowledge is limited, default priors are used, and the chosen default family should be stated and justified for the model at hand. Sensitivity analyses over a range of plausible priors are recommended.

Formula
p(\theta | M)
3

The marginal likelihood (also called the model evidence) p(D | M) is obtained by integrating the likelihood over all parameter values, weighted by the prior. This integral averages predictive accuracy across the parameter space of the model, so a model with unnecessary free parameters is penalized automatically. Analytical solutions exist for some conjugate model families. For complex models, numerical methods such as the Laplace approximation or MCMC are used, and Kass and Raftery (1995) note that asymptotic approximations, including one based on the BIC, give only a rough approximation to the logarithm of the Bayes factor.

Formula
p(D | M) = \int p(D | \theta, M)\, p(\theta | M)\, d\theta
4

The Bayes factor BF10 is the ratio of the marginal likelihoods of the two models. Values greater than 1 favor M1 and values less than 1 favor M0. Verbal labels for ranges of Bayes factor values have been proposed by Jeffreys (1961) and by Kass and Raftery (1995). These scales differ in their cut-points, so they should be treated as rough descriptive guides rather than decision rules, and the numerical value should be reported alongside any label.

Formula
BF_{10} = \frac{p(D | M_1)}{p(D | M_0)}
5

Posterior model probabilities are computed by combining the Bayes factor with prior model probabilities, giving a direct probability statement about which model is more credible given the data. The formula assumes that only M0 and M1 are considered and that they are exhaustive; when more candidate models are considered, posterior model probabilities must be normalized over the full set of models. The prior model probabilities P(M1) and P(M0) must be stated explicitly, because they affect the result. The posterior probabilities can be used as priors in a subsequent study, which allows evidence to accumulate across a research program.

Formula
P(M_1 | D) = \frac{BF_{10} \cdot P(M_1)}{BF_{10} \cdot P(M_1) + P(M_0)}

Common pitfalls

  • Using vague or flat priors as a shortcut. Flat priors are not automatically objective, and they are often improper. Bayes factors are generally not well defined under an improper prior, because the marginal likelihood then depends on an arbitrary scale. A proper principled default or informative prior should be used and justified.
  • Treating verbal Bayes factor labels as decision boundaries, as if they were p-value thresholds. The conclusion should state the size of the Bayes factor and the degree of support it gives, not an accept or reject verdict.
  • Model misspecification. If neither M0 nor M1 describes the data-generating process well, the Bayes factor only identifies the better of two inadequate models, so posterior predictive checks should accompany the analysis.
  • Ignoring prior sensitivity. Reporting one Bayes factor without checking how it changes under plausible alternative priors hides how fragile or robust the conclusion is, a concern that Kass and Raftery (1995) emphasize.

Frequently asked questions

What is the difference between a Bayes factor and a p-value?

A p-value measures how surprising the data would be if the null hypothesis were true; it does not measure the probability of the null. A Bayes factor compares the likelihood of the data under two specified models and can favor either one. A Bayes factor that favors M0 quantifies evidence for M0 relative to the specified alternative M1 and its prior, so the conclusion is conditional on that alternative. A p-value above the conventional threshold only means that the null was not rejected. The Bayes factor is a continuous ratio rather than a threshold-based decision rule.

Do I need to be a Bayesian statistician to use Bayesian model testing?

Not necessarily. Several software tools compute Bayes factors for common designs such as t-tests, ANOVA, regression, and correlation, and some are graphical. For non-standard models, collaboration with a methodologist or use of a probabilistic programming framework such as Stan is advisable. Conceptual understanding of prior specification and of what the Bayes factor measures remains essential, because the software cannot choose the models or priors for the researcher.

How sensitive are Bayes factors to the choice of prior?

Sensitivity depends on the sample size and on how far the prior is from the region supported by the data. With large samples the likelihood usually dominates, and the Bayes factor changes little across reasonable priors. With small samples the prior can have a strong influence. It is good practice to report Bayes factors under two or three alternative prior specifications, so that readers can judge how robust the conclusion is.

Can Bayesian model testing be used with observational survey data?

Yes. The method applies to any design in which the competing models can be specified precisely with full distributional assumptions, including surveys, experiments, longitudinal studies, and secondary data analyses. The data collection strategy and the choice of inferential framework are separate decisions. The key requirement is that the models are fully specified before the data are examined.

What sample size do I need for Bayesian model testing?

There is no single answer. The required sample size depends on the expected effect size, the width of the priors, and the Bayes factor that the study should be able to reach. The usual approach is a design analysis by simulation: data are simulated under each model at the expected effect size, and the proportion of replications that reach the target Bayes factor under each model is recorded to judge whether the planned sample is adequate.

Related methods

Sources

  1. Kass, R. E., & Raftery, A. E. (1995). Bayes factors. Journal of the American Statistical Association, 90(430), 773–795.

    Open DOI reference
  2. Jeffreys, H. (1961). Theory of Probability (3rd ed.). Oxford University Press.

    ISBN: 978-0198503682