- Introduced by
- Harold Jeffreys (foundational); operationalized by Rouder et al.
- Year
- 2009 (modern form); 1961 (Jeffreys prior framework)
- Type
- Bayesian hypothesis test
- Family
- Classical statistics
What does it do?
The Bayesian independent samples t-test quantifies evidence for or against a mean difference between two independent groups using a Bayes factor rather than a p-value.
Rooted in Jeffreys's probability framework and popularized by Rouder et al. (2009), it places a Cauchy prior on the standardized effect size and returns continuous evidence for both the null and alternative hypotheses.
The intuition behind the method
Instead of asking 'Is this difference big enough to reject the null?', the Bayesian version asks 'How much more likely are the data under the hypothesis that the groups differ than under the hypothesis they are the same?' A Bayes factor of 10 means the data are ten times more likely if the groups truly differ; a Bayes factor of 0.1 means the data are ten times more likely if the null is true. This framing allows you to accumulate evidence in favor of the null — something classical p-values cannot do.
History
The theoretical foundations are linked to Harold Jeffreys's Theory of Probability and his work on objective priors for hypothesis testing. Rouder and colleagues presented the Bayesian t-test in its modern form in 2009, using a Cauchy prior on the standardized effect size.
When to use it
Use the Bayesian independent samples t-test when comparing the means of two independent groups on a continuous outcome and you want to quantify evidence rather than make a binary reject/not-reject decision. It is especially valuable when you need to accumulate evidence across studies, when you expect the effect may be absent, or when sample sizes are too small to trust asymptotic p-values. Avoid it when you have no basis for specifying a prior — in that case, explicitly justify the default Cauchy prior or report results for a range of r values. It is not a substitute for careful data collection; small noisy studies will produce inconclusive Bayes factors rather than clear decisions.
Limitations and considerations
- The Bayes factor depends on the chosen prior; different priors yield different results.
- Interpretation of Bayes factor thresholds is heuristic and less standardized than the alpha = 0.05 convention.
- Computationally more involved than the classical t-test, though software (JASP, BayesFactor R package) automates it.
- Assumes independent observations and approximate normality of the outcome within each group.
- The default model assumes equal population variances in the two groups; unequal-variance versions depend on the software used.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Provides continuous, graded evidence for both the null and the alternative hypothesis.
- Evidence can be updated as data accumulate, because BF10 is based on the likelihood of the data. Optional stopping and selective reporting can still distort conclusions in practice, so state the stopping rule in advance (see pitfalls).
- Yields a posterior distribution over the effect size, enabling richer inference than a point estimate.
- Can support the null hypothesis explicitly, unlike classical p-values.
- The Cauchy prior is placed on the standardized effect size, so the prior scale r is expressed in units of the within-group standard deviation rather than raw outcome units.
Applications
- Experimental psychology and cognitive science studies in which a null effect (for example, no priming) is itself a theoretically meaningful prediction.
- Replication studies that ask whether a new two-group comparison supports or disconfirms an earlier finding.
- Pre-registered studies in which the prior scale and decision thresholds are fixed before data collection.
- Meta-analytic contexts in which Bayes factors from separate studies are compared or combined.
How it works
How it works
The null hypothesis fixes the standardized effect size delta to zero, while the alternative allows delta to vary according to a prior distribution. The default model assumes two independent groups, approximately normal outcomes within each group, and a common population variance. The nuisance variance is given a standard noninformative prior. Both hypotheses are compared directly using the data.
Formula
H_0:\ \delta = 0 \quad H_1:\ \delta \sim \mathrm{Cauchy}(0, r)A Cauchy distribution centered at zero is placed on the standardized effect size delta. The scale parameter r is chosen by the analyst and controls how far from zero the prior expects effects to fall. The value r = sqrt(2)/2 is a commonly used software default (for example in JASP); it is symmetric about zero and spreads prior mass over small to large effects. Report the value you use and check how sensitive the result is to it.
Formula
\delta \sim \mathrm{Cauchy}(0,\, r),\quad r = \tfrac{\sqrt{2}}{2} \text{ (default)}The Bayes factor BF10 is the ratio of the marginal likelihoods of the data under H1 and H0. It is computed by integrating the likelihood over the prior for H1 and dividing by the likelihood under H0. Values above 1 favor H1; values below 1 favor H0.
Formula
BF_{10} = \frac{p(\mathbf{x} \mid H_1)}{p(\mathbf{x} \mid H_0)}After observing the data, the posterior distribution over delta combines the prior with the observed likelihood. It describes the updated belief about the true effect size and can be summarized with credible intervals.
Formula
p(\delta \mid \mathbf{x}) \propto p(\mathbf{x} \mid \delta)\, p(\delta)Bayes factors are read on a continuous scale. As heuristic conventions (in the spirit of Jeffreys-style scales), BF10 > 3 is often described as moderate evidence for H1 and BF10 < 1/3 as moderate evidence for H0. Values between 1/3 and 3 are weak or inconclusive. These are not sharp cutoffs; report the Bayes factor itself as a graded measure of evidence rather than a binary decision.
Formula
BF_{10} > 3 \Rightarrow \text{moderate evidence for } H_1;\quad BF_{10} < \tfrac{1}{3} \Rightarrow \text{evidence for } H_0Common pitfalls
- Using the default Cauchy prior without reporting its scale or checking sensitivity to alternative r values.
- Treating BF10 > 3 as a sharp decision boundary equivalent to p < 0.05.
- Confusing the Bayes factor with the posterior probability of H0 being true — they are different quantities.
- Running the analysis repeatedly until BF10 crosses a threshold without pre-registering the stopping rule.
- Ignoring the posterior distribution and reporting only the Bayes factor, discarding rich effect-size information.
Frequently asked questions
How do I choose the prior scale r?
The value r = sqrt(2)/2 (approximately 0.707) is a common software default for a medium prior effect. Use r = 1 for a wider prior expecting larger effects, or r = 0.5 for a narrower prior expecting smaller ones. Always report the chosen r and ideally run a sensitivity analysis across multiple values.
How does BF10 differ from a p-value?
A p-value only quantifies evidence against the null; it cannot support the null. BF10 is symmetric: large values favor H1, small values favor H0. BF10 is based on the likelihood of the observed data, but optional stopping and selective reporting can still mislead, so report the stopping rule and all analyses.
Can I use this test without knowing Bayesian statistics?
Yes. Software such as JASP computes and displays BF10 automatically. However, understanding what the prior represents and how to interpret the Bayes factor scale is important for honest reporting.
What if my data violate normality?
The test assumes approximately normal outcomes within each group. For clearly non-normal or ordinal data, consider a rank-based alternative such as the Mann-Whitney U test (see the related page), and check whether your conclusions change under a sensitivity analysis.
Is there a Welch correction in the Bayesian version?
The default model assumes equal variances. Whether a heteroscedastic (Welch-type) Bayesian version is available depends on the software you use. Check the documentation of your tool, and state the variance assumption you used when you report the Bayes factor.
Related methods
Sources
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 referenceJeffreys, H. (1961). Theory of Probability (3rd ed.). Oxford University Press.
ISBN: 978-0198503682