Blog
Analysis made easy

Bayesian t-tests and ANOVA

p > .05 is not evidence of no difference. Bayes factors (BF10, BF01) can show it.

Skari team7 min

You compared two groups and got p = .73.

"So can I write that the groups don't differ?"

Unfortunately, a p-value alone can't tell you that. Here is a step-by-step look at the Bayesian t-test and Bayesian ANOVA, which can show evidence that there is no difference.

What a p-value can't tell you

A p-value is how likely data like yours would be if there were no difference.

So p > .05 means "not enough evidence of a difference" — it is not evidence of no difference. From the p-value alone you can't tell whether the sample was too small to find an effect or there really is none.

What a Bayesian t-test is

A Bayesian t-test puts two hypotheses side by side and asks which one explains the data better.

  • H1 — the two group means differ (an effect)
  • H0 — the two group means are equal (no effect)

That ratio is the Bayes factor. So you can put a number not only on evidence for a difference but also on evidence for no difference.

Reading BF10 and BF01

  • BF10 = how many times better H1 explains the data than H0
  • BF01 = the reverse (BF01 = 1 ÷ BF10)

For example, BF10 = 5 means the data are 5 times more likely under "a difference", and BF01 = 5 means they are 5 times more likely under "no difference".

Bayes factorStrength of evidence
1 – 3Anecdotal (too early to tell)
3 – 10Moderate
10 – 30Strong
30 or moreVery strong

BF10 above 1 favours H1; below 1 favours H0. When it favours H0, flip to BF01 and read it on the same scale.

Priors, in plain words

A Bayesian analysis includes a prior: an assumption you set before seeing the data, along the lines of "if there is an effect, it is probably about this big".

For t-tests the usual choice is a Cauchy distribution, with its width set by r.

  • r = 0.707 (medium) — the most widely used default
  • r = 1.0 (wide) — when large effects are also plausible
  • r = 1.414 (ultrawide) — when any effect is expected to be large

The wider the prior, the slightly harder it is to get evidence for a difference. So you also look at a sensitivity analysis across several values of r. If BF10 stays on the same side of 1, the conclusion does not hinge on the prior.

An example

  • Question — do reading comprehension scores differ after reading on paper vs an e-reader?
  • Participants — 100 adults randomly split into two groups of 50
  • Measure — comprehension score (out of 100) after reading the same text

The data are made up for illustration.

Which test to pick

  • Two different groups → independent-samples Bayesian t-test
  • The same people before and after → paired-samples Bayesian t-test
  • A mean against a reference value → one-sample Bayesian t-test
  • Three or more groups → Bayesian ANOVA

Bayesian ANOVA compares "a model where group means differ" with "a model where all group means are equal" and reports BF10 the same way.

Check before you run it

  • Independence — the two groups are different people
  • Normality — scores are not badly skewed
  • Outliers — one or two people are not pulling the mean

The assumptions are the same as for an ordinary t-test. Check any outliers first, and it is worth reading the result next to the classical t-test.

How to read the results

  1. Bayes factor — start with BF10 (or BF01) and the strength of evidence.
  2. Effect size and credible interval — look at the posterior median of the standardized effect size δ and its 95% credible interval. You can read it directly as "a 95% probability that δ lies in this range".
  3. Sensitivity — check that the conclusion holds as r changes.
  4. Classical t-test — report t and p alongside, for reference.

Reading the example result

ItemResult
Meanspaper 74.66 · e-reader 73.94
BF014.50 → moderate evidence for no difference
δ−0.06, 95% credible interval [−0.43, 0.31]
Sensitivityfavours H0 for every r from 0.5 to 1.414
Classical testt(98) = −0.35, p = .730

The data were 4.5 times more likely under "no difference" — something a p-value could never say.

Still, to claim the difference is "negligibly small" with confidence, you may need a larger sample. Report both the direction and the strength of the evidence.

How to write it up

Reading comprehension scores of the paper group (M = 74.66, SD = 11.72) and the e-reader group (M = 73.94, SD = 8.91) were compared with a Bayesian independent-samples t-test (Cauchy prior, r = 0.707). The result, BF₀₁ = 4.50, provided moderate evidence for the hypothesis that the two group means are equal. The posterior median of the effect size δ was −0.06 (95% credible interval [−0.43, 0.31]), and the conclusion held when the prior scale was varied from 0.5 to 1.414 (BF₀₁ = 3.37–8.52). The classical t-test was also non-significant, t(98) = −0.35, p = .730.

Example sentence · the numbers are illustrative

For a Bayesian ANOVA, report BF10, the two models compared and the pairwise comparisons in the same way.

In Skari

In Skari, Comparison → Bayesian Methods holds the Bayesian T-Test and Bayesian ANOVA.

You go through Variables → Settings → Validation → Result. First choose the test type — independent, paired or one-sample — and the columns to compare. In the settings, pick the prior scale (r): medium, wide or ultrawide, each with an explanation of what it means.

After choosing the test type and columns, set the prior scale (r)
After choosing the test type and columns, set the prior scale (r)

Run the analysis and the results come together in a report. BF10 and BF01 with the strength of evidence, the effect size δ and the 95% credible interval sit at the top, followed by a written-out summary and the hypotheses (H0 and H1).

Key figures and summary paragraph — example result (one-sample test of whether 32 cars' mean fuel economy equals 20, BF01 = 5.28)
Key figures and summary paragraph — example result (one-sample test of whether 32 cars' mean fuel economy equals 20, BF01 = 5.28)

See evidence for no difference in your data

Opens Comparison → Bayesian Methods

Open Bayesian T-Test

Next come the Bayes factor table, the effect size δ table and the prior-scale sensitivity for r = 0.5 to 1.414, followed by posterior model probabilities, an evidence-strength reference table and the classical t-test, all in one report.

Bayes factor, effect size δ and prior-scale sensitivity — same example
Bayes factor, effect size δ and prior-scale sensitivity — same example

It also draws prior and posterior distributions and a BF10 robustness curve across r, and the results export to Excel and Word.

In Bayesian ANOVA, choose the outcome and the grouping variable to get BF10 comparing the effect model with the null model, together with pairwise Bayesian t-tests. Add up to two more factors to see inclusion Bayes factors for each effect.

Wrapping up

The heart of Bayesian testing is putting "a difference" and "no difference" on the same scale. Report BF10 and BF01, the prior scale and the credible interval, and you can present a "no difference" result with confidence.

Want the theory behind it?The Academy's Bayesian t-tests and ANOVA chapter covers Bayes factors and priors in depth →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data