Tags: statistics experimentation content

Georgiev - Statistical Methods in Online A-B Testing - 2019

Author: Georgi Z. Georgiev
Published: 2019, independently published
Format: Book, ~300pp, paperback and ebook
Read:


The statistics half of the experimentation shelf. Kohavi tells you whether to trust a result; Georgiev tells you what the number means, how to plan for it, and how to look at it early without lying to yourself. Opinionated and frequentist — its positions on one-sided tests and thresholds are contested ones, argued well.



Cover — Statistical Methods in Online A/B Testing, Georgiev, 2019

Why it matters

The only book-length treatment of A/B test inference written for CRO (conversion rate optimisation) practitioners rather than statisticians or platform-builders. The methods A/B testing needed — sequential monitoring, power, error control across many comparisons — had existed in clinical-trial statistics since the 1970s–80s; CRO books barely touched them and blog posts contradicted each other on the basics. This is the bridge.

Georgiev builds the tools he describes (Analytics-Toolkit), so every method is one he has implemented and simulated — and the book is openly frequentist: Bayesian methods get one short section.

How it sits against Kohavi:

Kohavi et al.Georgiev
Core questionIs this result real, or a bug?What does this result license you to do?
Centre of gravityValidity, instrumentation, organisationInference, error control, test design
Implicit readerPlatform team, thousands of tests a yearCRO practitioner, mid traffic, one test at a time
StatisticsA few chapters in Part 5The whole book
Sequential monitoringNot its focusThirty-odd pages, and the author’s own method

They overlap less than the shelf placement suggests. Read together they cover the job; either alone leaves a hole.

The organising idea

A/B testing is risk management. The book’s own framing: “taking business actions while measuring and controlling risk”. A test isn’t a search for truth; it’s a way of deciding whether to ship while keeping the probability and cost of being wrong at a level the business chose.

Most of its distinctive positions fall out of taking that literally:

if a test is a controlled business decision...

  the decision is directional       → the hypothesis should be too
  ("ship if better")                  ONE-SIDED tests are the default

  error rates are business costs    → α and power are SET from the
                                      stakes, not copied from science
                                      RISK–REWARD thresholds

  people will look at the data      → design for looking, with stopping
  and want to act early               rules for wins AND for losers
                                      AGILE / group sequential

  the result feeds a decision       → interpret it by what it rules out
                                      SEVERITY, not "probability B wins"

α (alpha) here is the significance threshold — the false-positive rate you accept when nothing is really happening. Power is the chance the test detects an effect of the size you planned for, if it’s real — Statistical Power.

The philosophical footing is Deborah Mayo’s error statistics, not Georgiev’s own. Section 2.10 is on severity, Mayo’s concept: a claim has passed a severe test if, had the claim been false, the test would very probably have shown it.

In plain terms: a result only counts as evidence for “B is better” if the test would probably have come out differently were B not better. A test too small to tell the difference proves nothing even when it comes out “significant”.

That’s the thread connecting the book’s hostility to underpowered tests, to peeking and to reading Bayesian probabilities as if they settled the question — each is a way of getting a pass from a test that couldn’t have failed you.

Terms worth knowing

Mostly borrowed from clinical trials and carried across into CRO:

TermWhat it means
AGILE A/B testingHis packaging of group-sequential designs for CRO: planned interim looks, stopping early for a win (efficacy) or for a hopeless test (futility), with error rates held — Sequential Testing
Futility stoppingEnding a test early because it has almost no chance of reaching significance. Standard in trials; largely absent from CRO tools before AGILE
MEI — minimum effect of interestThe smallest effect worth finding, a business input to the design. Distinguished from the MDE (minimum detectable effect), which he treats as a property of the test that falls out of its power — Minimum Detectable Effect
Risk–reward analysisChoosing the significance threshold and sample size by weighing costs, expected gains and losses, rather than defaulting to 95% and 80%
Strong superiority testTesting that B beats A by more than a positive margin, not just by more than zero. The mirror image of a non-inferiority test
One-sided by defaultThe claim that most A/B decisions are directional and should be tested that way — One-Tailed vs Two-Tailed Tests

AGILE is a packaging of existing methods, not new statistics — the pieces it combines, and what each does:

Pocock 1977               fixed interim looks, the SAME
                          threshold at every look
O'Brien & Fleming 1979    fixed looks, a VERY strict threshold
                          early, relaxing to near-normal at the end
Lan & DeMets 1983         alpha-SPENDING functions — the error
                          budget spent as a function of how much
                          data you have, so looks needn't be
                          scheduled exactly
Kim & DeMets 1987         a family of spending functions between
                          the two shapes above — AGILE's default
Pampallona et al. 2001    BETA-spending — the same idea applied to
                          the false-negative rate, which is what
                          makes principled futility stopping possible
Fan & DeMets 2006         estimation after a sequential stop,
                          so the reported lift isn't inflated

What AGILE adds is the selection, the defaults and the translation into CRO terms — the methods above are what to look up.

The three positions worth being able to explain

One-sided tests — where the vault disagrees

His argument: a test should match the claim it supports. “B is better than A” is a directional claim, so the hypothesis should be directional: a one-sided test, which counts only a surprising result in the stated direction as evidence. A two-sided test — counting a surprise in either direction — is right only when you “would act the same way, or draw the same conclusions” for a difference either way, which in a ship/don’t-ship decision you almost never would.

Three claims, from his blog post on the topic and Chapter 5:

  • A one-sided test doesn’t inflate the false-positive rate for the directional claim. He calls the idea “utterly ridiculous”. A two-sided 95% test is two one-sided 97.5% tests glued together — so using it to claim “B is better” spends half your error budget on a direction you weren’t claiming
  • Two-sided costs traffic for nothing. His figure: 20–60% more sample for the same effect, the gap growing as the threshold loosens
  • Report one-sided intervals — “B is at least +x%” — or two one-sided intervals back to back

Worked, on the vault’s running example (F3 in Guide - Running an Experiment: 4.0% baseline, 10% relative lift, 80% power, 95%):

p₁ = 0.040   p₂ = 0.044   p̄ = 0.042
2p̄(1−p̄) = 2 × 0.042 × 0.958 = 0.080472
(p₂−p₁)²  = 0.004²         = 0.000016
0.080472 ÷ 0.000016         = 5,029.5

TWO-SIDED   Z = 1.96 + 0.84 = 2.80    2.80² = 7.840   × 5,029.5 = 39,431 per arm
ONE-SIDED   Z = 1.645 + 0.84 = 2.485  2.485² = 6.175  × 5,029.5 = 31,058 per arm

39,431 ÷ 31,058 = 1.27   → two-sided needs 27% more traffic

27% sits inside his 20–60% range. In plain terms: for the same ability to catch a 10% lift, asking “is B different?” costs about a quarter more visitors than asking “is B better?” — about an extra week on F3’s traffic.

The vault’s position is the opposite — One-Tailed vs Two-Tailed Tests calls one-tailed “almost always wrong” here, and the guide plans F3 two-sided. Where the two actually disagree is narrower than it looks:

GeorgievThe vault
Switching to one-sided after seeing the dataP-hackingP-hacking
One-sided chosen up front for “B is better”CorrectA bad trade
Detecting harmA separate question — run the other one-sided test, or read the intervalNeeds the two-sided test, or a significant 4% drop reads as “no result”
The traffic savingReal, 20–60%Real, ~21%, not worth it

The real disagreement is about harm. The vault’s worry is a reporting failure — a one-sided p of 0.99 written up as “inconclusive”. Georgiev’s answer is that harm is a different hypothesis with its own test, and an honest interval shows it regardless. Both are defensible; neither is a maths error. What should be agreed is the vault’s own convention — one-sided at 2.5% — which keeps the direction and drops the free significance, and which Georgiev would regard as paying two-sided prices for a one-sided question.

AGILE — what “20–80% faster” means

The white paper’s headline claim: tests that “reach conclusions 20% to 80% faster than traditional methods”. That’s an average, and the average hides the mechanism. A group-sequential design makes the maximum sample larger and the expected sample smaller.

The two classic boundary shapes, for four equally spaced looks at overall α = 5% two-sided (standard textbook values; the z-score is how many standard errors the result sits from zero):

look   share of data   POCOCK z (p)        O'BRIEN–FLEMING z (p)
1      25%             2.361  (0.018)      4.048  (0.00005)
2      50%             2.361  (0.018)      2.862  (0.004)
3      75%             2.361  (0.018)      2.337  (0.019)
4      100%            2.361  (0.018)      2.024  (0.043)   ← almost the fixed 1.96

Pocock spends evenly, so it stops early often but pays at the end. O’Brien–Fleming demands near-certainty early and is almost a normal test at the finish — which is why AGILE’s default sits close to it.

Applied to F3 (fixed design: 39,431 per arm). Simulated over 200,000 runs — these are this note’s calculation, not the book’s:

                          O'BRIEN–FLEMING           POCOCK
max sample needed         1.022× → 40,298           1.202× → 47,396

AVERAGE SAMPLE AT STOP
true lift = 2× the MDE    ~20,300   (−48%)          –
true lift = the MDE       ~32,700   (−17%)          ~31,800  (−19%)
no real effect            ~40,000   (+1.5%)         ~46,300  (+17%)

Notice the last row. With efficacy stopping only, a test of a change that does nothing runs to the end — and costs more than the fixed design. Kohavi’s numbers say most ideas are flat or negative — Win Rate and Expected Value. So the saving on the typical test comes from futility stopping, which cuts off losers and nulls early, not from catching winners early. That’s why the beta-spending component is the part of AGILE worth understanding, and the part most retellings skip.

In plain terms: you’re allowed to look four times, but the early bar is so high that only a big effect clears it. Big effects finish in half the time; tests that are going nowhere are stopped for futility; the tests in between run about as long as they would have anyway.

It’s counterintuitive that a design can need more traffic at the maximum and still be called faster. Both are true: the cap rises a little, the average falls a lot, and which one you experience depends on the effect you didn’t know in advance.

Where it differs from the vault: Guide - Running an Experiment says “stop for harm, never for success”. That’s right for the fixed-horizon test the guide runs. Georgiev’s whole method is stopping for success — legitimately, because the boundaries were pre-specified and paid for. Same principle, different design; Stopping Rules already lists group sequential as the sanctioned route. He also argues, in a 2022 post that the Larsen review cites, that group-sequential designs are more efficient than fully sequential “always-valid” ones for the way A/B tests are actually checked — a counterweight to Always-Valid Inference, which the vault presents as the flexible option.

Thresholds from risk–reward, not from 0.05

The argument: 95% significance and 80% power are conventions inherited from science, where a false discovery is the main cost. In business, not testing and testing too long also cost money — exposure to a losing variant, delay to a winning one. So the threshold should be set per test from the stakes.

What goes in, per his glossary and Chapter 11:

  • traffic, and the baseline of the primary metric
  • revenue at stake, and the cost of building and of reverting
  • a distribution of expected effect sizes — what past tests suggest the lift is likely to be
  • out: a significance threshold, a sample size, and a risk/reward ratio; below 1, even an optimally designed test does worse than shipping without one

His glossary’s range: something like 0.001 for an expensive, hard-to-reverse change; 0.1 for a cheap, reversible one. Chapter 11 has a section titled Testing with 50% confidence threshold? — the question mark is his.

In plain terms: how sure you need to be should depend on what being wrong costs. A one-line copy change you can revert tomorrow doesn’t need the same evidence as a checkout replatform.

No worked example here, deliberately: the model needs a prior distribution of effect sizes, and inventing one would be inventing the answer. Note the irony he’d have to answer — that distribution is a prior in all but name, from an author who distrusts Bayesian priors in analysis. His defence is that it’s used for planning, never to interpret the result. The vault’s Statistical Significance note agrees 0.05 is arbitrary; the guide still uses it, which is the conventional choice he argues against.

Claims worth knowing

  • “20–80% faster” — AGILE versus fixed designs, from his own simulations. An average over effect sizes — see above for what it hides
  • “20–60% more sample” for two-sided over one-sided at the same threshold
  • Section 6.6, “Testing the perfect shade of blue” — the Google 41-shades story, in the chapter on many-variant tests [CHECK: what the book draws from it before quoting]

Factorial designs — testing every combination of several changes at once — are argued not to be worth their complexity online (Section 6.5). The Larsen review cites him and Kohavi together for that position, so it’s one of the few places the two books explicitly agree — Multivariate Tests.

How it’s built

Fourteen chapters, with a sharper dependency order than the table of contents admits:

FOUNDATIONS — read in order, the book's best part
 1  Using statistics in business          counterfactuals, causality
 2  Estimating uncertainty                p-values, CIs, misreadings, severity
 3  Statistical assumptions               model adequacy, A/A tests
 4  Power and sample size                 MEI vs MDE, underpowered tests

THE PRACTITIONER CHAPTERS — dip in
 5  Types of hypotheses                   one-sided, strong superiority,
                                          non-inferiority
 6  More than one variant                 A/B/n corrections, factorial designs
 7  Segments and multiple KPIs            Šidák correction
 8  Continuous data                       revenue-type metrics
 9  Percentage change                     CIs and p-values for relative lift

HIS OWN TERRITORY — where it's distinctive
10  Sequential testing                    the AGILE chapter in all but name
11  Optimal thresholds and sample sizes   risk–reward

ODDS AND ENDS
12  External validity                     concurrent tests, generalising
13  Miscellaneous                         allocation, holdouts, bandits,
                                          Bayesian methods — briefly
14  Communicating results

Chapters 1–4 are the book for someone less confident with statistics. They build p-values and intervals from scratch and spend real space on what they don’t mean — P-Values, Confidence Intervals.

Chapter 9 is the underrated one. The naive way to put an interval on a percentage lift is to compute it for the absolute difference and divide by the baseline. That ignores that the baseline is itself an estimate, with its own noise, so the interval comes out wrong. Small chapter, common bug — the same family of problem as Ratio Metrics.

Chapter 7, on segments and multiple KPIs (key performance indicators), uses the Šidák correction: a slightly less conservative cousin of Bonferroni for keeping the family-wise error rate (the chance of at least one false positive across a set of tests) at α — Bonferroni and False Discovery Rate, The Multiple Comparisons Problem.

Chapters 10–11 are where it says something no other book does and where its commercial interest sits.

Verdict

  • Rigorous where CRO writing is careless. Error rates, power, multiplicity and stopping are treated properly, sourced to the statistical literature and backed by simulation
  • One author, one school, one product line. The positions on one-sided tests, thresholds and Bayesian tools are contested ones, presented as settled. A reader can’t tell from the book alone where the field disagrees
  • Bayesian methods get about five pages. By design — but a reader using a Bayesian tool gets the case against it rather than how to read it well — Probability to Beat Control
  • Validity is out of scope. No chapter on Sample Ratio Mismatch, variance reduction or instrumentation — the things Kohavi says break results first [CHECK: whether SRM is covered inside Ch 3’s model-adequacy sections]
  • 2019. The statistics don’t date, but its picture of what vendors’ tools do does

Good for: Chapters 1–5 as the clearest book-length account of frequentist A/B statistics aimed at practitioners; Chapter 10 as the accessible route into group-sequential designs; Chapter 9 for a bug most tools ship. A better read than Kohavi and a narrower one — it teaches, where Kohavi catalogues, but only the statistics.

Where this vault covers it

The concepts are filed by domain, and several sit on the other side of his arguments:

The one-paragraph take

“It’s the statistics book for A/B testing — Kohavi tells you whether to believe a result, Georgiev tells you what it means and how to design for it. The frame is risk management: the hypothesis should match the decision, which is why he argues for one-sided tests, and the threshold should match the stakes rather than defaulting to 95%. His AGILE method is group-sequential designs from clinical trials — Pocock, O’Brien–Fleming, Lan–DeMets — with futility stopping, which is where the traffic saving actually comes from. Rigorous and well-simulated, but it’s one school of thought presented as settled.”