FreeStatisticalTools.com
Bayesian statistics

Bayesian T-Test Calculator

Quantify the evidence for and against a difference in means. The JZS Bayes factor (Rouder et al., 2009) compares H₁, an effect with a Cauchy prior on Cohen’s δ, against H₀, no effect, and the posterior shows the plausible effect sizes.

Free · No sign-upReplaces JASP · SPSSWorks with your data
Updated · By Bibin Xavier

Data 90 × 12

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 90 rows, 12 variables. Data stays in this browser tab.
IDtext · 90 levelsGrouptext · 3 levelsGendertext · 2 levelsAgenumericHours_StudynumericAnxietynumericMotivationnumericPre_ScorenumericPost_ScorenumericExam_ScorenumericPassednumeric · codedSatisfactionnumeric · coded
S001ControlMale2311.2294.660626712
S002WorkshopFemale233.9283.554705402
S003OnlineFemale1810.132455576603
S004ControlMale2613.6413.552555903
S005WorkshopFemale229.7273.656636504
S006OnlineFemale207.9323.865826502
S007ControlFemale206.328372836103
S008WorkshopMale228293.164726213

Variables and options

Results update automatically when you change an option.

Results

90 rows · example data
Table 1

Group statistics

GroupnMSDSE95% CI
Female5866.1010.381.36[63.37, 68.83]
Male3263.2512.132.14[58.88, 67.62]
Table 2

Bayesian t-test

Hypothesis testBF10BF01ln BF10Evidencetdf
H₁: δ ≠ 0 vs H₀: δ = 00.4182.392-0.872anecdotal evidence for H₀1.17588

Note. Cauchy prior on δ with scale r = 0.707. BF10 > 1 favours H₁; BF01 = 1 / BF10 favours H₀.

Table 3

Posterior of the effect size δ

MedianMean95% credible interval95% HDIP(δ > 0 | data)Sample Cohen’s d
0.2240.226[-0.178, 0.639][-0.180, 0.636]0.8620.259

Note. Posterior under the two-sided H₁. The posterior median is shrunk slightly towards zero by the prior.

Prior and posterior of δ

Bayes factor robustness check

Table 4

Robustness of BF10

PriorrBF10Evidence
Medium0.7070.418anecdotal evidence for H₀
Wide10.319moderate evidence for H₀
Ultrawide1.4140.236moderate evidence for H₀
BF₁₀0.418
Evidenceanecdotal for H₀
Posterior median δ0.2295% CrI [-0.18, 0.64]

Interpretation

For Female vs Male on Post_Score, the Bayes factor is BF10 = 0.418: the data are 2.39 times more likely under H₀ (no effect) than under H₁, which is anecdotal evidence for H₀. The posterior median effect size is δ = 0.22 (95% credible interval [-0.18, 0.64]).

A Bayesian independent-samples t-test with a Cauchy prior (r = 0.707) gave BF10 = 0.418, anecdotal evidence for H₀; posterior median δ = 0.22, 95% CrI [-0.18, 0.64].

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Bayesian T-Test Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/bayesian-t-test/

BibTeX

@software{xavier_bayesianttest_2026,
  author = {Xavier, Bibin},
  title = {Bayesian T-Test Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/bayesian-t-test/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Bayesian T-Test Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is a Bayesian t-test?

A Bayesian t-test compares two hypotheses: H₀, that the mean difference is zero, and H₁, that there is an effect whose standardized size δ follows a Cauchy prior. The Bayes factor BF₁₀ is how much more likely the observed data are under H₁ than under H₀. Unlike a p-value, it can provide evidence for the null hypothesis, and the posterior distribution of δ shows which effect sizes are plausible.

When to use a Bayesian t-test

Use it instead of, or alongside, a classical t-test when you want to state how strongly the data support an effect or the absence of an effect. Unlike a p-value, a Bayes factor can show evidence for the null hypothesis.

Assumptions

  • The same assumptions as the t-test: independent observations and roughly normal data (or differences, for paired designs).
  • The Cauchy prior width r encodes how large effects are expected to be; check robustness to r.

How to set up your data

Independent design: one outcome column and one group column. Paired design: two columns measured on the same cases. One-sample design: one column and a test value.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the dependent variable, grouping variable, group 1 and group 2.
  3. Set the options. Fill in design, prior width on δ (cauchy scale) and alternative hypothesis.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report a Bayesian t-test in APA style

“A Bayesian independent-samples t-test (Cauchy prior r = 0.707) indicated moderate evidence for a difference, BF₁₀ = 4.82; posterior median δ = 0.46, 95% CrI [0.05, 0.88].”

Frequently asked questions

How do I interpret a Bayes factor?

BF₁₀ = 5 means the data are five times more likely under H₁ than H₀. Values of 1–3 are anecdotal, 3–10 moderate, 10–30 strong, 30–100 very strong and above 100 extreme evidence (Lee & Wagenmakers, 2013). BF₀₁ = 1 / BF₁₀ expresses evidence for H₀.

What prior does the Bayesian t-test use?

A Cauchy distribution on the effect size δ with scale r = 0.707 by default (the JZS prior of Rouder et al., 2009), the same default as JASP and the BayesFactor R package. A robustness plot shows how BF₁₀ changes with r.

Can a Bayes factor support the null hypothesis?

Yes. BF₁₀ below 1/3 (BF₀₁ above 3) is moderate evidence that there is no effect, which a non-significant p-value cannot show.

What is the difference between a credible interval and a confidence interval?

A 95% credible interval contains the effect size with 95% probability given the data and prior; a confidence interval is defined by long-run coverage of repeated samples.

Does this match JASP?

Yes. The two-sided JZS Bayes factor matches JASP, the BayesFactor package and pingouin to at least five significant digits.

Related tools

Browse all categories