Published  |  Last updated

Quick Answer: Bayesian vs frequentist statistics answer different questions: a frequentist analysis reports a p-value and an interval, a Bayesian analysis reports the probability of effect sizes given a prior. We ran both on one open-access trial (Table 2 of Barticevic et al., 294 completers, CC BY 4.0) in R 4.3.3. The frequentist result was an odds ratio of 0.62 (95% CI 0.36 to 1.06; chi-squared p = 0.10, Wald p = 0.08); the Bayesian model, with a Normal(0, 1) prior on the log odds ratio, gave a 96% probability that the odds ratio is below 1.1 Same data, same estimate, two different statements. Report the prior and a sensitivity check for the Bayesian result,2 and the interval, not only p, for the frequentist one.3

Bayesian vs Frequentist Statistics: What Each One Answers

The two approaches use the same data and the same likelihood. They differ in what they report and what they need before the analysis. The trial reanalysis we use below puts the contrast this way: the Bayesian parameter is treated as a random variable that starts from a prior distribution and is updated by the data.4 The American Statistical Association adds the frequentist side: p-values do not measure the probability that the studied hypothesis is true, and scientific conclusions should not be based only on whether a p-value passes a threshold.3

Swipe sideways to see every column.

FrequentistBayesian
Question answeredHow surprising are these data if there were no difference?How probable is each effect size, given a prior and these data?
What you reportEstimate, confidence interval, p-valuePosterior median, credible interval, probabilities such as P(OR below 1)
Needs before the analysisA test or modelA test or model, plus a prior and a sensitivity check
Software checkTest assumptionsChain convergence (R-hat), effective sample size, prior sensitivity

One Open-Access Trial, Analysed Both Ways

To keep the comparison honest we used published data rather than simulated data. Barticevic and colleagues randomised 342 people with intermediate-risk drinking in five Chilean primary care centres to a 5-minute brief intervention plus a leaflet (174) or a leaflet alone (168). At 6 months, 294 completed the follow-up AUDIT: 149 in the brief intervention arm and 145 in the leaflet arm.1 The paper is CC BY 4.0, so we reused its Table 2 counts and drew our own figures. The authors later published a Bayesian reanalysis of the same trial.4

The data: a 2 x 2 table

Swipe sideways to see every column.

Arm (6 months)Still at intermediate or higher riskLowered to low riskTotal
Brief intervention plus leaflet30 (20.1%)119 (79.9%)149
Leaflet only42 (29.0%)103 (71.0%)145

The counts are Table 2 of the trial paper.1 The percentages and every number below were computed by Editverse in R. What this case shows: how one borderline result reads under two frameworks. What it does not show: that the brief intervention works or fails. The trial compared two active interventions, the leaflet was given in both arms, and the authors list unblinded participants and health technicians (the providers), and contamination between groups, as limits of the design; outcome adjudicators and follow-up assessors were blinded.1

Frequentist analysis

We ran a chi-squared test, Fisher exact test and a Wald odds ratio on the 2 x 2 table, with R 4.3.3. The trial paper reports a chi-squared of 2.6 with p = 0.1 for this comparison and an adjusted odds ratio of 0.6 (95% CI 0.34 to 1.05).1

Swipe sideways to see every column.

Analysis (unadjusted, Table 2 counts)Result
Odds ratio of still being at risk (Wald)0.62, 95% CI 0.36 to 1.06, z = -1.75, p = 0.080
Chi-squared with continuity correction2.64, p = 0.104
Chi-squared without correction3.10, p = 0.078
Fisher exact testconditional OR 0.619, 95% CI 0.35 to 1.09, p = 0.103
Risk difference, still at risk-8.8 points (95% CI -18.6 to +1.0)

Reproduces exactly when: the trial paper’s chi-squared of 2.6 and p of 0.1 reproduce exactly when the 2 x 2 test uses the continuity correction, which is the default of chisq.test() in R. Without the correction the result is 3.10 and p = 0.078. We checked this with an independent recomputation in Python (SciPy 1.18.1, NumPy 2.5.3), which returned the same values. The unadjusted odds ratio of 0.62 also matches the value printed in Table 2.1 The paper’s adjusted odds ratio of 0.60 comes from a mixed-effects model with covariates, so it cannot be reproduced from the 2 x 2 counts; the p-value implied by its published interval is 0.076 by a Wald calculation, against 0.07 printed in the paper.1

Bayesian analysis: priors, software and results

We fitted a logistic model, logit P(still at risk) = a + b × brief intervention, so that exp(b) is the odds ratio. Priors: b ~ Normal(0, 1), the same prior the authors used for their model coefficients,4 and a ~ Normal(0, 22) for the baseline log odds. Software: R 4.3.3 with a random-walk Metropolis sampler written by Editverse (4 chains of 22,000 iterations, first 2,000 discarded, 80,000 retained draws) and the coda package 0.19.4.1 for diagnostics. We also computed the exact posterior on a 1,400 by 1,400 grid, and a second model with independent Beta(1, 1) priors on the risk in each arm.

Swipe sideways to see every column.

Bayesian resultBeta(1, 1) per armLogistic, Normal(0, 1) prior
Posterior median OR (95% credible interval)0.62 (0.36 to 1.06)0.63 (0.38 to 1.06)
P(OR below 1)96.0%95.9%
P(OR below 0.8)82.3%81.2%
P(OR below 0.6)44.6%41.9%
Risk difference, median (95% credible interval)-8.7 points (-18.5 to +1.0)not modelled
P(risk at least 5 points lower)77.3%not modelled
Density curve of the posterior odds ratio for still being at risk, brief intervention versus leaflet, with 96 percent of the area below 1, above a frequentist 95 percent interval of 0.36 to 1.06 and chi-squared p of 0.10
The same 2 x 2 table read two ways. Counts from Barticevic et al. 2021 Table 2 (CC BY 4.0); posterior and interval computed by Editverse in R.

The Bayesian result says the odds ratio is below 1 with a probability of about 96%; the frequentist result says the data are not extreme enough to reject no difference at the 0.05 level. These do not conflict, because they answer different questions. The two are numerically close here: one minus the one-sided Wald p-value is 96.0%, and a very wide prior returns 96.4%, because the data dominate the prior. The Bayesian figure is not a rescaled two-sided p-value, though, and it also answers questions p cannot: the probability that the odds ratio is below 0.8 is 81%.

A Bayes factor gives a third view. With the BayesFactor package (version 0.9.12-4.8, independent-multinomial model with rows fixed and default prior concentration 1), the Bayes factor for an association between arm and outcome was 0.58, or 1.72 to 1 for no association. A value this close to 1 means the table does not discriminate strongly between the two hypotheses. It uses a different prior and asks a different question from the odds ratio posterior above.

Does the prior change the answer?

We repeated the logistic analysis with five Normal priors on the log odds ratio, from a skeptical standard deviation of 0.35 to a near-flat 10.

Swipe sideways to see every column.

Prior on log ORPosterior median OR (95% CrI)P(OR below 1)
Normal(0, 0.35), skeptical0.74 (0.48 to 1.12)92.3%
Normal(0, 0.5)0.69 (0.43 to 1.09)94.3%
Normal(0, 1), as in the reanalysis0.63 (0.38 to 1.06)95.9%
Normal(0, 2)0.62 (0.36 to 1.05)96.3%
Normal(0, 10), near-flat0.61 (0.35 to 1.04)96.4%
Plot of the posterior median odds ratio and 95 percent credible interval under five priors, with the probability that the odds ratio is below 1 between 92 and 96 percent, and the frequentist Wald interval
Prior sensitivity. Table 2 counts from Barticevic et al. 2021 (CC BY 4.0); exact grid posteriors computed by Editverse in R.

The strongest skeptical prior moves the probability of benefit from 96% to 92% and the interval still reaches above 1 under every prior. Reporting this table is what the Bayesian Analysis Reporting Guidelines call a sensitivity analysis; in a review of 70 epidemiology articles using Bayesian analysis that the guidelines cite, 66 did not report one.2

Convergence checks

The guidelines advise running at least three separate chains and checking that they overlap using the potential scale reduction factor (R-hat), then checking the effective sample size (ESS) for stable credible-interval limits.2 We ran four chains from dispersed starting values. Every credible interval on this page is equal-tailed (the 2.5th to 97.5th percentiles of the posterior), not a highest-density interval. The guidelines recommend an ESS of at least 10,000 for stable highest-density-interval limits and note that it can be lower for equal-tailed limits.2 Our ESS for the log odds ratio, 6,761, is below 10,000; the equal-tailed limits from the sampler agree with the exact grid posterior to within 0.01.

Swipe sideways to see every column.

ParameterR-hat (point, upper 95%)Effective sample size
Log odds ratio (b)1.000, 1.0006,761
Baseline log odds (a)1.001, 1.0027,282
Trace plots of four MCMC chains for the odds ratio and a density comparison showing the MCMC draws matching the exact grid posterior
Sampler check. Counts from Barticevic et al. 2021 (CC BY 4.0); random-walk Metropolis and grid posterior computed by Editverse in R.

Acceptance rates were between 30% and 31%. The pooled draws gave a probability of 96.1% for an odds ratio below 1, against 95.9% from the exact grid: the sampler agrees with the exact posterior to within sampling error. The code below reproduces the frequentist tests and the Beta-binomial posterior.

tab <- matrix(c(30, 119, 42, 103), 2, byrow = TRUE)   # rows: brief intervention, leaflet; columns: still at risk, lowered risk
chisq.test(tab)                                      # Yates-corrected: X-squared = 2.64, p = 0.104
fisher.test(tab)                                     # Fisher exact: p = 0.103
s1 <- rbeta(4e6, 30 + 1, 119 + 1)                    # Beta(1, 1) prior, brief intervention arm
s0 <- rbeta(4e6, 42 + 1, 103 + 1)                    # Beta(1, 1) prior, leaflet arm
mean((s1 / (1 - s1)) / (s0 / (1 - s0)) < 1)          # posterior P(OR < 1), about 0.96

How the numbers compare with the published Bayesian reanalysis

The authors fitted a mixed-effects Bayesian model to the patient-level data, adjusting for age, sex, education and health centre, with Normal(0, 1) priors, in R with RStan 2.21.0 (four chains, 50,000 iterations, 25,000 warm-up).4 We only have the summary counts and the published adjusted odds ratio, so we cannot reproduce their model. Two summary-level approximations are close but not identical.

Swipe sideways to see every column.

QuantityPublished reanalysisOur logistic model, Table 2 countsOur normal approximation to the published adjusted OR 0.60 (0.34 to 1.05)
P(OR below 1)96%96%96%
P(OR below 0.8)84%81%82%
P(OR below 0.6)48%42%44%
Posterior OR, mean or medianmean 0.63median 0.63median 0.62, mean 0.65

The probability of benefit matches to the nearest percent; the thresholds at 0.8 and 0.6 differ by 2 to 6 points, which we attribute to the covariates and the centre effect in their model, an explanation we could not test without the patient-level data. We therefore do not claim to reproduce their table. The normal approximation uses the standard error implied by the published interval, 0.288 on the log scale.

Computed by Editverse in R

  • Percentages at risk: 30 of 149 is 20.1% and 42 of 145 is 29.0%; the difference is -8.8 points.
  • Wald standard error of the log odds ratio: 0.274.
  • Posterior summaries, prior sensitivity, R-hat, ESS and the Bayes factor, all from the Table 2 counts.
  • All figures were drawn by Editverse in R; they are not copies of the paper’s figures.

What to Report When You Use Either Approach

The Bayesian Analysis Reporting Guidelines list six ordered steps preceded by a preamble.2 The table maps them to what this page reported; the section names are our paraphrases of the guideline steps and the mapping is our reading.

Swipe sideways to see every column.

BARG sectionWhat we reported here
PreambleWhy Bayesian: to state the probability of effect sizes for a borderline result.
Explaining the modelLogistic model, Normal(0, 1) prior on the log odds ratio, Normal(0, 22) on the baseline.
Reporting details of the computationSoftware and versions, 4 chains, 22,000 iterations, 2,000 discarded, R-hat and ESS.
Describing the posterior distributionMedian, 95% credible interval and threshold probabilities.
Reporting any decisionsNone. We make no clinical decision from one trial.
Reporting sensitivity analysisFive priors from skeptical to near-flat.
Making it reproducibleData from a published table and the code shown above.

Which Should You Use? A Decision Guide

These are Editverse suggestions drawn from this case and the sources above, not rules.

Swipe sideways to see every column.

SituationReasonable default
A regulator or journal expects a standard testFrequentist, with the interval and effect size reported, not only p.
You need the probability that the effect exceeds a size that mattersBayesian, with the prior and a sensitivity analysis reported.
A drug or biologic trial submitted to the FDARead the January 2026 draft guidance on Bayesian methodology, which focuses on Bayesian methods for primary inference, and agree the approach with the regulator.5
A borderline result such as p = 0.10Report both, as above, and state what each one answers.

Need the Analysis Run or Checked? Consult Editverse

Editverse subject-matter experts work to COPE, ICMJE and GPP 2022 guidance, with institutional and country-specific ethics followed.

Editverse logo

Editverse

Statistical Analysis

Have the data and need the analysis run and reported?

You send: your data, your research questions and your preferred software.

You get: analysis in SPSS, R/RStudio or STATA with annotated code, complete output files, an output interpretation guide and publication-ready tables.

When: Standard turnaround is 4-6 business days.

SPSS/R/STATA Statistical Analysis · $400

Analyse my data →

Editverse logo

Editverse

Manuscript Writing

Analysis finished and the paper still unwritten?

You send: your research outline or draft structure, raw data, figures and tables, and key references.

You get: a publication-ready manuscript written by PhD-qualified subject matter experts, with statistical review and journal selection.

When: Standard 15 days, or express delivery in 1-3 days.

Manuscript Writing Services · $1,500

Write my paper →

Editverse logo

Editverse

Journal Selection

Not sure which journal fits your paper?

You send: your manuscript.

You get: a ranked list of 5-10 recommended journals with the rationale for each recommendation.

When: Turnaround is 3-5 business days.

Scientific Journal Selection Services · $115

Get my journal shortlist →

Free Research Tools from Editverse

Frequently Asked Questions

What is the difference between Bayesian and frequentist statistics?

A frequentist analysis reports a p-value and a confidence interval for the data in hand, for example p = 0.10 for the brief intervention trial analysed here. A Bayesian analysis starts from a prior distribution, updates it with the data and reports a posterior distribution, for example a 96% probability that the odds ratio is below 1. The authors of the trial reanalysis describe the Bayesian parameter as a random variable whose inference starts from a prior and is updated by the data.

Is a p-value the probability that my hypothesis is true?

No. The American Statistical Association states that p-values do not measure the probability that the studied hypothesis is true, and that conclusions should not be based only on whether a p-value passes a threshold. A chi-squared p-value of 0.10 for the trial analysed here is therefore not a 10% probability that the intervention works.

What did the frequentist analysis of the trial show?

On the published 2 x 2 table (30 of 149 against 42 of 145 still at risk) the odds ratio was 0.62 with a 95% confidence interval of 0.36 to 1.06. The chi-squared test with continuity correction gave 2.64 and p = 0.10, which matches the trial paper, and the Fisher exact p-value was 0.10. The trial authors concluded that the intervention was not associated with a greater reduction in risky drinking than the leaflet.

What did the Bayesian analysis of the same trial show?

With a Normal(0, 1) prior on the log odds ratio, the posterior median odds ratio was 0.63 with a 95% credible interval of 0.38 to 1.06. The probability that the odds ratio is below 1 was 96%, below 0.8 was 81% and below 0.6 was 42%. That is a statement about the size of the effect, which a p-value does not give.

Does the choice of prior change the result?

The reading stayed the same, but the numbers did move. Five Normal priors on the log odds ratio, with standard deviations from 0.35 to 10, gave a probability of an odds ratio below 1 between 92% and 96%, and posterior medians between 0.61 and 0.74. A sensitivity analysis to the prior is one of the items the Bayesian Analysis Reporting Guidelines ask authors to report.

How do I know a Bayesian MCMC analysis has converged?

The Bayesian Analysis Reporting Guidelines describe running at least three separate chains and checking that they overlap, measured by R-hat, and checking the effective sample size for stable credible intervals. Our sampler used four chains of 22,000 iterations with 2,000 discarded, gave R-hat of 1.000 for the log odds ratio and an effective sample size of about 6,800, and matched an exact grid posterior.

Can I use a Bayesian analysis for a regulatory submission?

It depends on the regulator and the product. In January 2026 the US Food and Drug Administration issued a draft guidance, Use of Bayesian Methodology in Clinical Trials of Drug and Biological Products, whose main focus is the use of Bayesian methods to support primary inference in clinical trials. A draft guidance is non-binding, so check the current version and agree the approach with the regulator before the trial starts.

Should I use Bayesian or frequentist statistics?

Choose by the question. If a journal or regulator expects a test and an interval, use a frequentist analysis and report the interval, not only p. If you need the probability that an effect exceeds a size that matters, use a Bayesian analysis and report the prior, the software and a sensitivity check. When a result is borderline, as in this trial, reporting both is the most transparent option (Editverse suggestion).

References

  1. Barticevic NA, Poblete F, Zuzulich SM, et al. A health technician-delivered brief intervention linked to AUDIT for reduction of alcohol use in Chilean primary care: a randomized controlled trial. Addict Sci Clin Pract. 2021;16:39. doi:10.1186/s13722-021-00248-4. Open access, CC BY 4.0; counts reused, figures drawn and derived numbers computed by Editverse in R. pubmed.ncbi.nlm.nih.gov/34130748/
  2. Kruschke JK. Bayesian Analysis Reporting Guidelines. Nat Hum Behav. 2021;5(10):1282-1291. doi:10.1038/s41562-021-01177-7. Open access, CC BY 4.0. pubmed.ncbi.nlm.nih.gov/34400814/
  3. Wasserstein RL, Lazar NA. The ASA’s statement on p-values: context, process, and purpose. Am Stat. 2016;70(2):129-133. doi:10.1080/00031305.2016.1154108. The six principles were read in the ASA release of 7 March 2016 at amstat.org. www.amstat.org/asa/files/pdfs/p-valuestatement.pdf
  4. Barticevic NA, Poblete F, Bradshaw L, Bendtsen M. Effectiveness of a health technician-delivered brief intervention for alcohol: a Bayesian reanalysis of a clinical trial. BMC Res Notes. 2022;15:182. doi:10.1186/s13104-022-06071-7. Open access, CC BY 4.0. pubmed.ncbi.nlm.nih.gov/35578369/
  5. U.S. Food and Drug Administration, CBER and CDER. Use of Bayesian Methodology in Clinical Trials of Drug and Biological Products. Draft guidance, January 2026. Non-binding recommendations; page read 31 October 2026. www.fda.gov/regulatory-information/search-fda-guidance-documents/use-bayesian-methodology-clinical-trials-drug-and-biological-products

Editverse Research Team | Updated October 2026