- Introduced by
- Harold Jeffreys (formal Bayes factor framework)
- Year
- 1935–1961 (Jeffreys); extended by Kass & Raftery 1995, Wagenmakers 2007–2010
- Type
- Quantitative research design
- Family
- Survey / observational design
What does it do?
Bayesian hypothesis testing research is a quantitative design in which competing hypotheses are evaluated by updating prior beliefs with observed data to produce posterior probabilities and Bayes factors.
Unlike frequentist null-hypothesis significance testing, it quantifies the relative evidence for each hypothesis, including the null, and allows evidence to be assessed as data accumulate. Its conclusions depend on the priors and stopping rules specified in advance, so these must be reported.
The intuition behind the method
Imagine you suspect a new teaching intervention helps students. Rather than asking 'Is there an effect assuming no effect exists?' (the frequentist framing), Bayesian hypothesis testing asks 'How much more likely are the data if there is an effect than if there is not?' The answer is a Bayes factor — a ratio of evidence. A Bayes factor of 10 means the data are ten times more probable under the alternative hypothesis than under the null. You can also start with prior knowledge (from earlier studies) and update it sequentially as new data arrive, which reflects how scientific knowledge actually accumulates.
History
Harold Jeffreys developed the Bayes factor as a principled way to compare competing hypotheses, set out in Theory of Probability (3rd ed., 1961), the work cited here. Kass and Raftery later gave guidance on interpreting Bayes factors. From the 2000s and 2010s, Eric-Jan Wagenmakers and colleagues argued that Bayesian tests address key problems of frequentist NHST, including its limited ability to provide evidence for the null and its sensitivity to optional stopping, and promoted tools such as JASP.
When to use it
Use Bayesian hypothesis testing when you need to quantify evidence for both the null and alternative hypotheses, when sequential data collection or interim analyses are planned, when incorporating previous study results as priors is scientifically defensible, or when communicating graded evidence rather than a binary decision is important. It is particularly valuable in psychology, medicine, and social science where effect sizes are small and replication is a concern. Do not use it when prior specification is entirely arbitrary and no sensitivity analysis is feasible, when reviewers or journals require strict frequentist reporting without supplements, or when computing resources do not support posterior sampling for complex hierarchical models.
Limitations and considerations
- Requires explicit prior specification; poorly chosen priors can substantially affect Bayes factors, especially with small samples.
- Computationally more demanding than frequentist tests for complex models; MCMC sampling may be needed.
- Default Bayes factors implemented in software (JASP, BayesFactor R package) rely on specific prior families that may not suit every research question.
- Less familiar to many reviewers and readers, creating communication challenges in applied fields.
- Every Bayes factor is conditional on the specified likelihood, the prior families, and the two hypotheses being compared. It assumes the stated model and independence of observations, and it speaks only to the relative support for the two hypotheses considered, not to the absolute truth of either.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Quantifies evidence for both the null and alternative hypotheses, unlike p-values which only test against the null.
- Evidence can be assessed at interim points, which suits sequential designs; the stopping rule still has to be specified in advance (see pitfalls).
- Allows direct probability statements about hypotheses given the data, which are more intuitive than p-value logic.
- Provides a formal way to bring prior knowledge from earlier studies into the analysis, although the choice of prior then becomes a substantive decision that must be justified.
- Results are interpretable on a continuous evidence scale rather than a binary threshold decision.
Applications
- Psychology and cognitive science experiments testing whether an intervention or priming effect exists versus a null baseline.
- Clinical trials with sequential designs in which interim evidence is monitored, with the stopping rule specified in advance.
- Educational research comparing instructional methods where prior findings from earlier studies can inform the prior distribution.
- Social science survey studies where researchers want to explicitly test and report support for null findings.
- Replication studies where the original effect size is used as an informed prior to assess whether the replication provides consistent evidence.
- Econometric and policy research requiring graded probability statements about competing economic hypotheses.
How it works
How it works
The researcher articulates a null hypothesis (H0, typically no effect or a point null) and at least one alternative hypothesis (H1, specifying the expected direction or range of effects). Both hypotheses must be stated precisely enough to assign probability distributions to their parameters.
Formula
H_0 vs H_1
Prior probability distributions over the parameters of interest are specified for each hypothesis, encoding existing knowledge or theoretical expectations. When prior knowledge is limited, weakly informative or default priors are used; default Bayes factor tests in JASP, for example, rely on default Cauchy priors. The chosen priors must be documented. Sensitivity analysis is recommended: recompute the Bayes factor under a range of prior widths (for example, the default prior together with a narrower and a wider Cauchy scale, or alternative plausible ranges for the effect size), and state whether the qualitative conclusion holds across that range. A conclusion that reverses within a reasonable range of priors should be reported as fragile.
Formula
p(\theta | H)
Data are collected using a study design appropriate to the research question — cross-sectional survey, experiment, observational study, or secondary dataset. Sample size can be planned via power analysis adapted for Bayes factors, or sequential data collection with stopping rules based on evidence thresholds rather than fixed N.
The Bayes factor BF10 is computed as the ratio of the marginal likelihoods of the data under H1 versus H0. BF10 above 1 favours H1 and BF10 below 1 favours H0. Verbal benchmarks such as BF10 above 3, above 10, or above 100 (commonly labelled moderate, strong, and decisive evidence) are widely used guides. They are descriptive conventions rather than decision rules, and their exact wording varies across sources.
Formula
BF_{10} = p(D|H_1) / p(D|H_0)Posterior odds are obtained by multiplying the prior odds by the Bayes factor: p(H1|D)/p(H0|D) = BF10 × p(H1)/p(H0). When only H0 and H1 are under consideration, the posterior probability of H1 is the posterior odds divided by one plus the posterior odds. This yields a direct probability statement about the hypotheses given the data, which is more intuitively interpretable than a p-value.
Formula
\frac{p(H_1 \mid D)}{p(H_0 \mid D)} = BF_{10} \cdot \frac{p(H_1)}{p(H_0)}The researcher reports the Bayes factor, posterior distributions of effect-size parameters, credible intervals, and — critically — the prior specification used. Evidence is interpreted on a continuous scale rather than a binary reject/fail-to-reject framework, and evidence for the null hypothesis can be explicitly quantified.
Common pitfalls
- Treating Bayes factors as equivalent to p-values — they answer different questions; BF10 = 3 does not mean p < 0.05 and the two should not be conflated.
- Ignoring prior sensitivity — reporting only one prior without checking whether conclusions change under reasonable alternative priors undermines credibility.
- Stopping data collection only when the Bayes factor favours H1 — optional stopping does not invalidate the posterior in principle, but the stopping rule should be pre-specified and reported, and its effect on error rates and bias should be assessed by simulation.
- Confusing credible intervals with confidence intervals — a 95% Bayesian credible interval has a direct probability interpretation, while a frequentist confidence interval does not.
- Using Bayesian framing without reporting the prior — any Bayesian analysis is incomplete and non-reproducible without a full specification of priors.
Frequently asked questions
What is a Bayes factor and how do I interpret it?
A Bayes factor BF10 is the ratio of the probability of the observed data under the alternative hypothesis to the probability under the null hypothesis. BF10 = 5 means the data are five times more likely if H1 is true than if H0 is true. Values of BF10 between 1 and 3 are often described as anecdotal evidence for H1, values above 3 as moderate, values above 10 as strong, and values above 100 as decisive. Values below 1 indicate evidence for H0. These verbal labels and cut-offs vary across sources; they are conventions for describing evidence, not decision thresholds.
How is Bayesian hypothesis testing different from frequentist NHST?
Frequentist NHST computes a p-value — the probability of data as extreme as observed assuming H0 is true — and rejects H0 when p falls below a threshold. It cannot quantify evidence for H0, is sensitive to optional stopping, and does not produce probability statements about hypotheses. Bayesian testing directly estimates the relative probability of competing hypotheses given the data, quantifies evidence for H0 as well as H1, and permits sequential updating as new data arrive.
Do I need a large sample for Bayesian hypothesis testing?
Sample size requirements depend on the expected effect size and the desired level of evidence (for example, BF10 above 10). The sample size needed to reach a target Bayes factor under a given prior and assumed effect size is usually estimated by simulation: data are repeatedly generated under the assumed model, the Bayes factor is computed for each dataset, and the proportion of datasets reaching the target is recorded. Some software offers tools for specific tests, but their coverage should be checked before use. When the sample is very small, the Bayes factor can be highly sensitive to the prior choice, so sensitivity analysis is essential.
What software supports Bayesian hypothesis testing?
JASP is the most accessible point-and-click software providing Bayesian t-tests, ANOVAs, correlations, and regression with default Cauchy priors. The BayesFactor package in R offers the same tests with programmable priors. Stan, brms, and PyMC provide full Bayesian modelling for custom models. For simple default analyses, JASP is recommended for researchers without programming experience.
Can I combine Bayesian hypothesis testing with a frequentist analysis in the same paper?
Yes, and many methodologists encourage reporting both. Parallel reporting — presenting the frequentist p-value alongside the Bayes factor — provides readers familiar with either framework a way to interpret the evidence. The important caveat is that the two metrics answer different questions and should not be used to selectively report whichever appears more favourable to the hypothesis.
Related methods
Sources
Jeffreys, H. (1961). Theory of Probability (3rd ed.). Oxford University Press.
ISBN: 978-0198503682Wagenmakers, E.-J. (2010). A practical solution to the pervasive problems of p values. Psychonomic Bulletin and Review, 14(5), 779–804.
Open publication reference