Skip to content

Frequentist vs Bayesian A/B testing: which method should you use?

Stuart Brameld

Stuart Brameld

Founder
Updated
Contents

Frequentist or Bayesian is the first setting many A/B testing tools ask you to choose, and the one most marketers guess at. The good news: for most marketing tests, the choice matters less than the vendors’ blog posts suggest. What matters is knowing what each method tells you, and the one claim about Bayesian testing that isn’t true.

Table of contents

Frequentist vs Bayesian in one paragraph

A frequentist A/B test asks: if this change made no difference, how surprising would my result be? It answers with a p-value. A Bayesian A/B test asks: given what I believed before and what I’ve now seen, how likely is it that the variant is better? It answers with a probability to win. Both are calculated from the same visitor and conversion counts.

AspectFrequentistBayesian
Question it answersHow surprising is this result if there’s no real effect?How likely is it that B beats A?
Main outputP-value and confidence intervalProbability to win and credible interval
Prior knowledgeNot usedUsed, though most tools default to a flat prior that lets the data speak
DecisionSignificant or not at a chosen threshold, such as 95%Act when the probability to win passes a chosen threshold
Easiest toCompare across tests and toolsExplain to a stakeholder

For a short explainer, watch Cassie Kozyrkov’s Frequentist vs Bayesian Statistics Explained.

How each reads the same test

Say a landing page test ends with 10,000 visitors in each variant: control converts 450 and the variant 500.

A frequentist read runs a two-proportion test and gets a p-value of about 0.09. At 95% confidence that is not significant, so you don’t declare a winner.

A Bayesian read with a flat prior gives the variant roughly a 95% probability of beating control. At a 95% threshold that is borderline; at 90% it’s a winner.

Same data, different framing. The Bayesian number is easier to say in a meeting. The frequentist number reminds you that a 4.5% to 5.0% difference on this much traffic could still be noise. Neither is wrong, but you should pick the threshold before the test starts, not after you’ve seen which one says yes.

The peeking myth

The most common claim made for Bayesian testing is that you can check results whenever you like and stop as soon as the variant looks good. You can’t, at least not for free.

David Robinson simulated exactly this. Stopping Bayesian tests early raised the rate of accepting changes that made things worse, just as peeking does with a p-value.

“Bayesian A/B testing is not “immune” to peeking and early-stopping. Just like frequentist methods, peeking makes it more likely you’ll falsely stop a test.”

David Robinson, Is Bayesian A/B Testing Immune to Peeking? Not Exactly

If you want to watch results as they come in and stop early, the fix is sequential testing, not a switch to Bayesian. Sequential methods adjust the maths so that looking early keeps its promised error rate. Optimizely’s Stats Engine, Convert, VWO’s enhanced SmartStats, PostHog and GrowthBook all offer a form of it. Without it, decide your sample size in advance and read the result once.

Which is easier to understand?

Bayesian supporters say “there’s a 92% chance B is better” is what marketers actually want to know, and that’s fair. It is easier to put on a slide.

The other side of the argument is that frequentist results are easier to compare. A p-value means the same thing in every tool. A Bayesian probability depends on the prior, which many closed tools don’t show you.

“This separation of data and its error statistics on one hand, and the decision whether it should be accepted as good evidence in support of or in refutation of a hypothesis is what makes frequentist statistics generally easier to understand, communicate and compare, when put side to side with their Bayesian counterparts.”

Georgi Georgiev, founder of Analytics Toolkit and author of Statistical Methods in Online A/B Testing

Which A/B testing tools use which method

Most tools now offer more than one method, and their defaults differ. This is what each vendor’s documentation says.

ToolDefault methodOther options
OptimizelySequential (Stats Engine, frequentist with false discovery rate control)Fixed-horizon frequentist and Bayesian
VWOBayesian (SmartStats) with sequential testing correction
AB TastyBayesianFrequentist analysis mode
ConvertChosen per projectFrequentist (t-tests), Bayesian and sequential
PostHogChosen per experimentBayesian, and frequentist with optional sequential testing
GrowthBookBayesianFrequentist with optional sequential testing

“We default to Bayesian statistics because they provide a more intuitive framework for decision making for most customers, but we provide ample tools to select between both approaches based on your experimentation needs.”

GrowthBook, statistics documentation

If you check results outside your testing tool, use a calculator that matches its method. Our guide to A/B test calculators shows which free calculators do frequentist, Bayesian or both.

How to choose

  • Use your tool’s default unless you have a reason not to, and keep it the same across tests so your results stay comparable.
  • Pick Bayesian if your stakeholders need a probability to win, and you can see or set the prior.
  • Pick frequentist if you compare results across tools or report to people who expect p-values.
  • Turn on sequential testing if your team will look at results before the planned end date. Most teams will.
  • Set the threshold before launch, whichever method you use.

Two checks matter more than the method. First, make sure the test has enough traffic to detect a realistic lift before you launch it. Second, check for sample ratio mismatch before you read any result: a broken traffic split invalidates frequentist and Bayesian results alike.

About Growth Method

Choosing a statistical method is one decision in a campaign; knowing which campaigns worked is the point.

Growth Method is the practical way to use AI in marketing. Our agents suggest campaigns from your own data, then help you plan, launch and analyse them against your growth goals, with no AI vendor lock-in, security taken care of and humans in the loop. At the analyse step, the AI checks whether a result can be trusted before it gives a verdict.

We are on-track to deliver a 43% increase in inbound leads this year. There is no doubt the adoption of Growth Method is the primary driver behind these results.

Laura Perrott, Colt Technology Services

Get started and spend less time arguing about statistics and more time running campaigns.

Keep reading