Omid Golchin · Decision tools
A/B Test Decision Tool
Enter your results. Get a decision you can defend, with the checks experienced analysts run first.
It answers: whether to ship the new version, keep testing or stop, from the visitors and conversions of an A/B test; and, before a test, how long it needs to run.
- Pick the situation closest to yours in "Start from a common situation", or keep the clear win already filled in.
- Type your own counts in the strip: visitors and conversions for A and B, and the smallest lift worth acting on. Say how many times you looked at the results. Planning a test instead? Open Plan a test.
- Read the decision beside the chart and the checks under it. Before you rely on it, check when to use this tool, and when not.
Enter the counts for A and B in the strip below, say what lift matters to you, and read the decision beside the chart. Also here: Plan a test works out how long to run one · Fill from my notes reads a pasted report for you · Copy link saves your numbers in the address · the sections at the bottom show both statistical reads and every formula.
How big is the difference?
Where each version's true rate plausibly lies
Verdict
……
Decision settings for experienced users; the defaults are standard and safe to leave
Both reads in full classic test, Bayesian read
Classic read
Bayesian read
How the verdict is decided rules, formulas, sources
Ship the leading version only when all four hold: the traffic split matches the plan; the chance it is better clears your bar; the expected loss if it is not better is small next to the smallest lift worth acting on; and the classic evidence agrees (p below the significance level, using the always-valid p-value if you checked more than once). Requiring both reads to agree keeps the verdict from resting on one method's blind spot.
Stop: no meaningful difference when the 90% interval for the difference sits inside ± the smallest lift worth acting on. This is an equivalence test (two one-sided tests; Schuirmann 1987): absence of a difference is shown, not assumed.
Keep testing otherwise, with the visitors still needed to detect your smallest worthwhile lift at 80% power.
Traffic split check (sample ratio mismatch): a chi-square test of the visitor counts against your planned split; flagged at p < 0.001 (Kohavi, Tang & Xu, Trustworthy Online Controlled Experiments, 2020, ch. 21).
Always-valid p-value: the mixture sequential probability ratio test (Johari, Koomen, Pekelis & Walsh, "Always valid inference", Operations Research, 2022), with the mixing scale set to your smallest worthwhile lift. It stays valid however often you look. In this repository's simulation (5,000 tests where A and B are identical, checked up to 40 times) it raised a false alarm in 1.8% of tests; a plain p-value did so in 29% of the same tests.
Bayesian read: Beta-binomial posteriors for each rate (Gelman et al., Bayesian Data Analysis, 3rd ed.); expected loss is the average conversion rate you give up if you pick the version that is in fact worse.
Want the experiments behind this tool (what peeking does to classic and Bayesian rules, the Cookie Cats test read both ways, whether language models read A/B results correctly)? See Research notes.
Enter today's rate and daily traffic, say the smallest lift worth detecting, and get visitors per version and whole weeks to run. Also here: Copy plan gives a paragraph for your team · once the test has run, switch to Analyze my test.
Plan
…
What a longer test buys you
Smallest lift you can reliably detect (at your power and significance level) for each test length, at your traffic. Gains flatten quickly: halving the detectable lift takes four times the visitors.
How the plan is computed formula, sources
Visitors per version from the standard two-proportion formula (Fleiss, Levin & Paik, Statistical Methods for Rates and Proportions, 3rd ed., 2003). With more than two versions, each new version is compared with the original and the significance level is split across those comparisons (Bonferroni), so every comparison needs more visitors.
Run length is rounded up to whole weeks, because weekday and weekend visitors often behave differently and a test that ends mid-week over-represents some days.
The plan assumes you read the result once, at the end. If you will check as you go, enter the number of checks in Analyze my test: it switches to the always-valid p-value, which stays honest under repeated looks but needs more data to call a winner.
Glossary every term the "?" buttons explain, gathered in one place
When to use it, and when not assumptions, limits, alternatives
Use it to decide a finished or running A/B test on a yes-or-no outcome per visitor (signed up, bought, clicked, came back), to catch the common ways a test goes wrong (a broken split, peeking, too little data), or to size a test before it starts.
It assumes the following. Each line says what happens to the answer when your case breaks the assumption.
| Assumption | If yours differs |
|---|---|
| The outcome is yes or no for each visitor: converted or not. | Revenue per visitor, order value or time on site are averages with long tails. Use a t-test or a bootstrap on the per-visitor values instead. |
| Visitors are assigned at random, and the unit you count is the unit you assigned. | If you assign users but count page views or sessions, the counts are not independent and the intervals come out too narrow. Count users, or use the delta method for ratio metrics. |
| Each visitor sees one version, and one visitor's version does not affect another's. | In marketplaces, social products or shared pricing, groups interfere. Those need cluster or switchback designs. |
| Behaviour is stable over the test, apart from weekday patterns. | A new design often gets a novelty bump or a learning dip. Run whole weeks, and look at whether the lift fades over time before you trust it. |
| You report every look at the results. | If you peeked more often than you enter, the evidence is weaker than the tool shows. |
| Two versions in Analyze. | For three or more versions, compare each with A and use the planner's correction for several versions, or a multi-arm method. |
Do not use it to choose the winner of a test that is allocating traffic adaptively (a bandit), for metrics that are not yes-or-no, or as a substitute for checking that the tracking itself is right.
Where this tool comes from the problem and data it was built on, and how it was generalised
The tool comes out of a set of experiments kept in this repository (results/summary.md):
- Peeking breaks both kinds of rule. In 5,000 simulated tests with identical versions, checked up to 40 times, a plain p-value declared a false winner in 29.1% and a Bayesian expected-loss rule in 85.0%. So the tool asks how many times you looked, uses an always-valid p-value when you looked more than once, and ships only when the Bayesian and classic reads agree.
- A real test, read both ways. In Cookie Cats, a public mobile-game test, moving the first gate from level 30 to 40 lowered 7-day retention by 0.82 points; both reads agree. It is one of the situations.
- Adaptive allocation (Thompson sampling) earned more conversions during a simulated test but reached a confident, correct read less often (52.5% against 65.2%). The tool reads fixed-split tests only.
How it was generalised. The experiments fixed their rates, sample sizes and number of looks. The tool takes your counts, looks, test length and the smallest lift worth acting on, and adds the checks that catch broken tests: the traffic split, too few conversions, part weeks and "no meaningful difference". The experiments also checked whether language models can read an A/B result; that part did not become part of the tool, and its AI fill only reads your notes into the form.