Bayesian Confirmatory Research — Bayesian Hypothesis Testing

Statistics
Introduced by
Harold Jeffreys (theoretical foundation); Jeffrey Rouder, Eric-Jan Wagenmakers (applied confirmatory framework)
Year
1961 (Jeffreys); 2009–2018 (contemporary confirmatory formulation)
Type
Quantitative hypothesis-testing framework
Family
Survey / observational design

What does it do?

Bayesian confirmatory research tests pre-specified hypotheses by computing the Bayes factor, a ratio that expresses how much more likely the observed data are under one hypothesis than under another.

Unlike classical null-hypothesis significance testing (NHST), it can give direct evidence for the null hypothesis as well as for the alternative, and it updates prior beliefs with the observed data through Bayes' theorem. Its confirmatory force depends on the hypotheses, priors and analysis plan being fixed before the data are collected.

The intuition behind the method

Imagine you want to confirm whether a new teaching method improves exam scores. Frequentist testing tells you only whether the result is unlikely under the null; it does not quantify how much the data support the null itself. Bayesian confirmatory research starts by stating what you expect (a prior distribution over plausible effect sizes), then asks how much the evidence has shifted toward or away from your hypotheses after seeing the data. A Bayes factor of 10 means the data are ten times more compatible with the alternative than with the null, a quantity that is interpreted in the same way whichever hypothesis the data favour.

History

Harold Jeffreys developed the theoretical foundations of Bayesian hypothesis testing in his book Theory of Probability. He argued that scientific hypotheses should be compared through posterior odds, the approach from which the Bayes factor derives. The approach stayed largely outside mainstream behavioural and social science for decades. Rouder et al. (2009), in Psychonomic Bulletin & Review, applied Bayesian inference to t tests that can accept as well as reject the null hypothesis. Wagenmakers and colleagues synthesised the case for Bayesian inference in psychology, and the free software JASP made routine computation available to non-specialists.

When to use it

Choose Bayesian confirmatory research when a directional or point hypothesis is pre-specified and evidence for the null is as decision-relevant as evidence against it, for example when testing whether an effect is negligible or when checking a prior finding in a replication. It fits experimental, quasi-experimental and clinical designs where the sample is moderate to large and there is defensible prior information about the effect size. It is less suitable for purely exploratory work where no defensible prior can be specified, for models so complex that the Bayes factor cannot be computed tractably, or where a Neyman-Pearson framework with strict Type I error control is required, as in some regulatory settings.

Limitations and considerations

  • The Bayes factor depends on the prior: diffuse or poorly chosen priors can yield misleading evidence, particularly in small samples.
  • Bayes factors for complex models, such as multilevel or structural equation models, require custom numerical methods and are not yet routine.
  • Confirmatory status depends entirely on genuine pre-registration. A Bayes factor computed for hypotheses or priors chosen after the data were seen is exploratory.
  • Many reviewers and editors trained only in NHST are less familiar with Bayes factors, which can complicate peer review.

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

Strengths

  • Gives direct evidence for both the alternative and the null hypothesis, whereas a p-value can only argue against H0.
  • Evidence can be monitored as data accumulate. The Bayes factor does not require knowing the intention with which the data were collected (Wagenmakers et al., 2018), which makes sequential monitoring practical. The stopping rule must still be declared in advance, and its long-run error behaviour checked by simulation.
  • Pre-registering hypotheses and priors makes the confirmatory claim explicit and checkable by others.
  • Posterior effect-size distributions show the magnitude and precision of the effect, not only a reject or retain decision.
  • Prior information from earlier studies or meta-analyses can be entered formally, making cumulative evidence explicit.

Applications

  • Pre-registered clinical trials comparing treatment and control conditions, where both efficacy and equivalence (support for the null) are decision-relevant.
  • Replication studies in psychology, medicine and education that need to quantify whether a replicated result supports or undermines the original effect.
  • A/B testing in technology and marketing, where sequential data collection with principled stopping rules can reduce sample costs.
  • Cognitive and psychophysical experiments testing quantitative predictions derived from computational models.
  • Survey-based policy research in which prior information from national statistics is formally incorporated into the analysis.

How it works

How it works

1

Before data collection, the researcher fixes the hypotheses (H0 and H1), the primary outcome, the planned sample size or stopping rule, and the analysis plan, ideally in a public pre-registration. The confirmatory claim rests on this commitment. A Bayes factor can be computed after the data have been seen, but such an analysis is exploratory unless the hypotheses and priors were specified beforehand.

2

A prior distribution is placed on the effect-size parameter under H1, encoding expectations from theory or earlier literature. For two-group comparisons, the JZS Bayesian t test of Rouder et al. (2009) uses a Cauchy-type prior on the standardised effect size. Its scale is a modelling choice, not a fixed default, so it must be justified and varied in a sensitivity analysis. Informed priors derived from meta-analyses are preferable when a reliable estimate exists. The Bayes factor BF10 = P(D|H1) / P(D|H0) then compares how well the two hypotheses predicted the observed data, where P(D|H) is the marginal likelihood: the likelihood of the data averaged over the prior distribution of the model parameters under H.

Formula
BF_{10} = P(D|H_1) / P(D|H_0)
3

Data are collected according to the pre-registered plan. If interim Bayes factors are monitored, the stopping rule (for example, stopping once BF10 exceeds a pre-specified threshold such as 10) must be declared in advance. The evidence in the data at hand does not depend on the intention with which the data were collected (Wagenmakers et al., 2018), but repeated monitoring changes the long-run probability of misleading evidence under each hypothesis. That probability should therefore be checked by simulation for the planned rule before data collection, not assumed.

4

The Bayes factor is obtained from closed-form solutions for simple designs, such as the JZS Bayes factor for t-tests, or from numerical integration for more complex models. The BayesFactor R package and JASP (a free graphical interface) implement common designs. Stan with bridge sampling (bridgesampling R package) can estimate marginal likelihoods for custom models. Robustness of the result across a range of prior scales should be reported alongside the primary Bayes factor.

5

The Bayes factor is read on a continuous scale of evidence. The conventional labels are: BF10 near 1 indicates data that are insensitive to the two hypotheses; BF10 above 3 is moderate evidence for H1 and above 10 is strong evidence for H1; BF10 below 1/3 is moderate evidence for H0. These are conventional labels for the strength of evidence, not decision thresholds. Any threshold used to make a decision should be declared in the pre-registration. Unlike a p-value, a small BF10 is evidence for the null, not merely a failure to reject it. Posterior distributions of the effect size should accompany the Bayes factor, since they convey the magnitude and precision of the estimated effect.

Common pitfalls

  • Post-hoc hypotheses presented as confirmatory: choosing hypotheses or priors after seeing the data removes the main advantage of the framework, whatever label the analysis carries. Such choices should be disclosed as exploratory.
  • Using the default prior without a sensitivity check: a generic prior is not tailored to the research question. When credible prior evidence exists, ignoring it wastes information, and the Bayes factor may change substantially across plausible prior scales.
  • Using an improper prior on a tested parameter: the Bayes factor is not well defined under an improper prior, so every parameter whose evidence is being evaluated needs a proper prior.
  • Stopping at a favourable Bayes factor without a declared rule: sequential monitoring is interpretable only when the stopping criterion is fixed in advance. Ad hoc stopping on a favourable result undermines the evidence.
  • Reading BF10 as a posterior probability: BF10 = 10 does not by itself mean P(H1|D) = 0.91. That value holds only with equal prior odds; otherwise the posterior probability depends on P(H1)/P(H0), which must be stated explicitly.
  • Reporting only the Bayes factor: it answers which hypothesis predicted the data better, not how large the effect is. A posterior effect-size distribution is also needed for a complete confirmatory report.

Frequently asked questions

What is the difference between Bayesian confirmatory research and Bayesian exploratory analysis?

Confirmatory Bayesian research requires that hypotheses, priors and the analysis plan are pre-registered before data collection. The resulting Bayes factor is a confirmatory test of a pre-specified claim. Bayesian exploratory analysis applies Bayesian methods to unplanned or data-driven questions. The computations are valid, but the epistemic status is exploratory, so findings require independent replication before being treated as confirmed.

Can Bayesian confirmatory research replace NHST entirely?

For many confirmatory applications, Bayes factors provide more informative evidence than p-values. However, NHST with strict alpha control remains appropriate where Type I error must be bounded by a formal guarantee, as in some regulatory settings. The two frameworks answer subtly different questions, and some researchers use both in a complementary reporting style.

How do I choose the prior distribution?

The starting point is whether informative prior knowledge exists. If a recent meta-analysis gives a reliable estimate of the effect-size distribution, use it to build an informed prior. Otherwise, a Cauchy prior on the standardised effect size, as used in the JZS Bayesian t test, is a common choice for two-group comparisons. Its scale is a modelling decision that must be justified for the study at hand, not taken as a default. Always report a sensitivity analysis showing how the Bayes factor changes across a plausible range of prior scales.

What software can I use?

JASP (jasp-stats.org) offers a free, point-and-click interface for Bayes factors in common designs (t-tests, ANOVA, regression, contingency tables). The BayesFactor package in R provides the same computations with scripting flexibility. For custom or hierarchical models, Stan (mc-stan.org) with bridge sampling via the bridgesampling R package computes marginal likelihoods and thus Bayes factors.

What sample size do I need?

Bayesian design analysis is an alternative to classical power analysis. You simulate studies across a range of plausible effect sizes and determine the sample size (or the maximum sample size for a sequential design) needed to reach a target Bayes factor, such as BF10 above 10, with high probability. Like power analysis, it relies on assumed effect sizes and on simulation, so these assumptions should be justified and reported. Software support for this varies, so check the documentation of the package you use.

Related methods

Sources

  1. Rouder, J. N., Speckman, P. L., Sun, D., Morey, R. D., & Iverson, G. (2009). Bayesian t tests for accepting and rejecting the null hypothesis. Psychonomic Bulletin & Review, 16(2), 225–237.

    Open DOI reference
  2. Wagenmakers, E.-J., Marsman, M., Jamil, T., Ly, A., Verhagen, A. J., Love, J., Selker, R., Gronau, Q. F., Smira, M., Epskamp, S., Matzke, D., Rouder, J. N., & Morey, R. D. (2018). Bayesian inference for psychology. Part I: Theoretical advantages and practical ramifications. Psychonomic Bulletin & Review, 25(1), 35–57.

    Open DOI reference