Skip to main content
Back to Experimentation

Experimentation · Cheat Sheet

Beyond the Basic A/B

Tip: Use your browser's print function (Ctrl+P / Cmd+P) to save as PDF for offline study.

Cheatsheet: Advanced

Factorials

TermPlain words
Factorial designTest all combinations of several factors at once (headline × image × price)
Main effectA factor's average effect across the other factors' levels
InteractionThe factor's effect depends on another factor — the whole ≠ sum of parts
Hidden replicationEvery subject informs every factor's estimate — cheaper than separate tests

Oehlert: use factorials — a win either way. Interaction present → one-at-a-time is misleading (and can't see the best cell). Interaction absent → factorial is more efficient than separate tests.

Worked 2×2 reference

Old imageNew image
Old headline4.0%4.4%
New headline4.6%6.0%

Headline main effect +1.1pp; image +0.9pp; headline worth +0.6pp with old image but +1.6pp with new → interaction of +1.0pp. One-at-a-time never observes the 6.0% cell.

Interaction plots

  • Parallel lines = no interaction (effects add)
  • Diverging/crossing = interaction; crossing = helps segment X, hurts segment Y (chick-weight pattern) → think targeting, not ship/kill
  • Judge non-parallelism against noise via the ANOVA (analysis of variance) interaction test — never by eye
  • Pure interaction (two catalysts: each alone inert, together vigorous) defeats one-at-a-time testing entirely
  • ANOVA = omnibus + decomposition (between- vs within-group variation, split into mains + interactions); a significant F is not a cherry-picking license

Bandits

A/B testBandit
GoalProve (error-controlled verdict)Optimize (earn while learning)
AllocationFixed to horizonShifts toward winners
Best forPermanent, high-stakes ship calls3+ arms, perishable decisions (headlines, promos)
Effect estimatesUnbiased, poweredDistorted by adaptive allocation — don't dual-purpose
  • Epsilon-greedy: exploit best-so-far with prob 1−ε, explore randomly with prob ε (epsilon — the fraction of traffic set aside for random exploration); ε=0 can lock onto an early-lucky loser
  • Thompson sampling: route traffic by each arm's probability of being best; exploration fades automatically as certainty grows

When the standard A/B breaks

SituationWhy it breaksEscape designWatch out for
Marketplaces, social, shared inventoryTreatment leaks to control (interference)Cluster / geo randomizationn = number of clusters (40 cities = n 40)
Same, when clusters are fewNot enough geosSwitchbacks (randomize time blocks)Carryover — use washout gaps; ≈ crossover designs
Tiny samples (8 warehouses, 12 accounts)Large-sample approximations failPermutation / Fisher exact testsPower is still tiny; exact ≠ powerful
Long-horizon outcomes (LTV = lifetime value, annual retention)Forced onto fast proxiesValidate proxies; long-term holdoutsCAST redux: fixing the surrogate while harming the real outcome
Factor only applies at coarse grain (warehouse layout) + user-grain factorsTwo different error scalesSplit-plot designs (Oehlert)Naive user-grain analysis repeats the unit error

Escalation rule

Standard playbook (powered 2-arm, fixed horizon, pre-registered metric): run it yourself. High-stakes + non-standard design (marketplace interference, carryover-prone switchbacks, split-plot structure): bring in an experimentation specialist before data collection — design errors, unlike analysis errors, cannot be fixed afterward.

Cross-track pointers

  • Potential outcomes, matching, DiD, IV, and everything for when you can't randomize → Causal Inference track
  • General inference logic (distributions, estimation, the p-value in full) → Statistics track

Aligned to the Oehlert’s A First Course in Design and Analysis of Experiments and Bruce & Bruce’s Practical Statistics · last reviewed 2026-07-08.

Make this cheat sheet yours

Personalize this sheet — focus it however you study, or build one from the exact questions you keep getting wrong.

Sign up free to create a personalized cheat sheet.