Flight log / Transmission 031
Bayesian vs. frequentist A/B testing for marketers
Same test, same data, two verdicts. In the hypothetical below, 40 vs. 52 conversions on 1,000 visitors each is "not significant" to one method and "about 90% likely better" to the other, and both are telling the truth.
> Frequentist A/B testing asks how surprising your data would be if the variants were identical, and reports a p-value. Bayesian A/B testing asks how likely each variant is to be better given the data, and reports a probability plus the expected cost of choosing wrong. Neither is magic. Stopping rules and decision thresholds matter more than the label.
Statisticians have been arguing about this for about a century, and they're not close to done. You don't need to pick a side in that fight. You need to know what the number on your testing dashboard actually means, and which reading fits the call you have to make on Thursday.
No calculus below. One worked example, small enough to check on a napkin.
// 01 · the briefingWhat's the difference between Bayesian and frequentist testing?
The two schools disagree about what "probability" means.
- Frequentist: probability is a long-run frequency. The true conversion rate is fixed; your data is the random part. The method imagines rerunning your test thousands of times and asks how often you'd see a result this extreme by chance.
- Bayesian: probability is a degree of belief. You start with a prior (what you believed before), add data, and get a posterior (what you believe now). The conversion rate itself gets a probability distribution.
Hence the different-looking dashboards. A frequentist result is a statement about your data, assuming no difference. A Bayesian result is a statement about the variants themselves.
Frequentist stats needs a DeLorean: it reasons about thousands of reruns of a test you'll only run once. Bayesian stats just asks what you believe today. Neither is cheating. They're answering different questions.
What does a p-value actually tell you?
The American Statistical Association's 2016 statement defines a p-value, informally, as the probability under a specified statistical model that a summary of the data would be equal to or more extreme than what you observed.
In A/B terms: if the two pages truly convert the same, how often would random noise produce a gap at least this big? A p-value of 0.03 means about 3% of the time.
Now the part dashboards skip. The same ASA statement says p-values do not measure the probability that the studied hypothesis is true, and do not measure the size or importance of an effect. So "p = 0.05" is not "95% chance B is better." It's the most common misreading in testing, and most dashboards practically invite it.
Frequentist results usually ship with a confidence interval. A 95% interval comes from a procedure that would capture the true value in 95% of repeated experiments. That's a claim about the method's track record, not a promise about the one interval on your screen.
// 03 · telemetryWhat does a Bayesian A/B test tell you?
A Bayesian readout gives you three numbers that sound like the questions marketers actually ask:
- Probability to beat control. "There's an 88% chance B converts better than A."
- Credible interval. "There's a 95% probability the true lift is between X and Y." This one does mean what it sounds like, given the model and prior.
- Expected loss. If you pick B and you're wrong, how much conversion rate do you give up on average?
Expected loss is the underrated one. Chris Stucchio's widely cited 2014 decision rule sets a "threshold of caring": if the expected loss of choosing a variant falls below a difference you wouldn't care about, you choose it. That turns statistics into a business decision with a stated tolerance for error.
The catch is the prior. With a neutral (flat) prior and a decent amount of data, it barely moves the answer. With a strong prior, it can move it a lot. And a prior chosen after you've seen the data is just grading your own homework.
// 04 · versusBayesian vs. frequentist A/B testing: side by side
| Frequentist | Bayesian | |
|---|---|---|
| Question answered | How surprising is this data if there's no difference? | How likely is B better, and by how much? |
| Main output | p-value, confidence interval | Probability to beat control, credible interval, expected loss |
| Prior belief | Not used | Required, explicit |
| Sample size | Fixed in advance (or a planned sequential design) | Flexible, but early stopping still carries risk |
| Error guarantee | Controls false positive rate when run as designed | Controls expected loss, not false positive rate |
| Easy to explain? | Easy to misexplain | Closer to how people talk about risk |
| Main weakness | Breaks under peeking; "not significant" gets read as "no effect" | Prior can be misused; probability numbers look more certain than they are |
A worked example with simple numbers
Hypothetical: say a small SaaS team splits traffic to a demo page evenly. After 1,000 visitors each:
| Variant | Visitors | Conversions | Rate |
|---|---|---|---|
| A (control) | 1,000 | 40 | 4.0% |
| B (new headline) | 1,000 | 52 | 5.2% |
The observed lift is 30% relative, 1.2 percentage points absolute. Now the two readings.
The frequentist reading
A standard two-proportion z-test (pooled, no continuity correction) gives a two-sided p-value of about 0.20. That's well above the usual 0.05 bar, so the result is "not statistically significant." The 95% confidence interval for the difference runs from about -0.6 to +3.0 percentage points. It includes zero.
Translation: if the pages were identical, a gap at least this big would still show up about 1 time in 5. You can't rule out "no difference."
The Bayesian reading
With a flat prior (Beta(1,1), meaning no opinion going in), the posterior says, rounded:
- Probability B beats A: about 90%.
- 95% credible interval for the difference: about -0.6 to +3.1 percentage points. Nearly identical to the confidence interval.
- Expected loss if you choose B: about 0.05 percentage points. Expected loss if you stay with A: about 1.2 points.
Translation: B is probably better, the size of the lift is very uncertain, and if B turns out worse, you'd lose very little on average.
So which verdict is right?
Both. Same data, and with a flat prior the intervals are nearly twins. What differs is the question. The frequentist reading protects you from declaring a winner on noise. The Bayesian reading tells you how to bet if you have to decide now.
If B is a headline swap you can reverse in five minutes, a 90% chance of being better with tiny expected loss is a reasonable bet. If B means rebuilding the page template, get more data. For context, a classic fixed-sample design built to detect a 20% relative lift from a 4% baseline (two-sided, 95% confidence, 80% power) needs about 10,300 visitors per variant, roughly ten times this sample. See how long to run an A/B test.
"Not significant" means "not proven," not "no effect." "90% likely" means "probably," not "done." Both get oversold in the same meeting.
Can you peek at a Bayesian A/B test?
You'll hear that Bayesian tests are immune to peeking. Half true. The posterior is a valid summary of your beliefs whenever you look. But stop the moment it crosses a threshold and you still raise the odds of shipping something that doesn't help.
David Robinson simulated this in 2015: for a change that actually hurt performance, stopping early on a Bayesian rule led to switching to the worse variant in 11.8% of cases, versus 2.5% without early stopping. For comparison, Evan Miller's frequentist simulation, a deliberate worst case that checks significance after every observation up to 150, pushed a nominal 5% false positive rate to 26.1%.
The fix is identical in both camps: write the stopping rule before launch, then obey it. More on the human side of this in landing page testing without lying to yourself.
// 07 · go / no-goWhen should marketers use Bayesian or frequentist testing?
| Situation | Lean toward | Why |
|---|---|---|
| High-traffic page, costly or hard-to-reverse change | Frequentist, fixed horizon | You can afford the sample, and false positive control matters |
| Low-traffic B2B page, cheap reversible change | Bayesian with expected loss | You'll decide anyway; quantify the risk of the decision |
| Stakeholders keep misreading p-values | Bayesian reporting | Probability to beat control is closer to the question they're asking |
| You must check results mid-test | Planned sequential frequentist, or Bayesian with a pre-set rule | Both handle interim looks if planned in advance |
| Many variants, goal is to earn conversions while testing | Neither alone; consider a bandit | See multi-armed bandits |
The pattern that shows up in most B2B accounts is the second row: modest traffic, decisions that can't wait six months, and changes that are easy to roll back. That's where Bayesian framing earns its keep, as long as nobody treats 90% as a guarantee.
// 08 · payloadHow should you report A/B test results to stakeholders?
Whichever method you run, report the same four things, so nobody has to do live statistics translation in the meeting:
- The observed difference, absolute and relative. "B converted at 5.2% vs. 4.0%, a 1.2 point (30%) lift."
- The uncertainty range. "The true difference is plausibly anywhere from slightly negative to about 3 points."
- The decision rule you set before launch. "We said we'd ship at 95% confidence" or "we said we'd ship when expected loss fell below 0.1 points."
- The decision and its reversibility. "Shipping B, monitoring weekly, easy to roll back."
Leading with the range instead of a verdict does more for your testing program's credibility than any choice of method. People forgive a test that came back uncertain. They don't forgive a "winner" that quietly evaporates next quarter.
Where this breaks
- Neither fixes bad data. Broken tracking, uneven traffic splits, novelty effects and bot traffic poison both methods equally.
- Low traffic is low information. Bayesian output always gives you a number. With little data, that number comes with a very wide interval. Read the interval, not just the headline probability.
- Priors can be gamed. Use a neutral or documented prior, set before the test.
- Many variants inflate "probability to be best." With five arms, one will look best by luck. Hold the bar higher as arms increase.
The method matters less than the rule you wrote down before launch. A Bayesian who moves the goalposts and a frequentist who peeks end up in the same place: shipping noise.
Something's warming up on the launch pad.
We're building something for people who read posts like this. Early access opens in waves.
Early access, by invitation.
FAQ
What is Bayesian A/B testing?
Bayesian A/B testing combines a prior belief about conversion rates with observed data to produce a probability distribution for each variant. It reports results such as the probability that the variant beats control and the expected loss of choosing it.
What is the difference between Bayesian and frequentist A/B testing?
Frequentist testing asks how surprising the data would be if there were no real difference, and reports a p-value. Bayesian testing asks how likely each variant is to be better given the data, and reports a probability. They answer different questions from the same data.
Does a p-value of 0.05 mean there is a 95% chance the variant is better?
No. The American Statistical Association states that p-values do not measure the probability that the studied hypothesis is true. A p-value measures how compatible the data are with a model of no difference.
Can you stop a Bayesian A/B test whenever you want?
Not without cost. Bayesian results stay interpretable when you check often, but stopping early still raises the chance of shipping a change that does not help. In one simulation by David Robinson, optional stopping raised that rate from 2.5% to 11.8%.
Which is better for low-traffic B2B landing pages?
Bayesian methods are often more practical because they express results as probabilities and expected losses you can act on with limited data. They do not create information that is not there, so wide uncertainty remains wide.
Receipts
- American Statistical Association: Statement on statistical significance and p-values (2016)
- Chris Stucchio: Easy evaluation of decision rules in Bayesian A/B testing (2014)
- Variance Explained: Is Bayesian A/B testing immune to peeking? Not exactly (David Robinson, 2015)
- Evan Miller: How not to run an A/B test