Replay Lab
A real Flagsmith Experimentation A/B test whose users are real recorded shoppers: 2.69M impressions replayed with the Li et al. (2011) method.
Result: ship smart
Lift (Flagsmith)
+70.8%
95% interval
+28.9% … +112.6%
Clicks · random vs smart
101 vs 172
Identities per arm
24,791 / 24,719
Both pre-registered rules passed: Flagsmith's ci_low > 0, and our 10-minute block bootstrap (+32.1% … +123.7%) excludes 0. Flagsmith's counts matched our local log exactly. A/A false-positive rate 2.7%, sample-ratio p = 0.84.
Does replay predict reality?
The shop also ran a learning algorithm live that week. Its true CTR was 0.571%; our replay predicted 0.608%, which is 6.5% off, inside the pre-registered ±10% target.
How it works
- Pre-register: the hypothesis, metric and decision rule are frozen in git tag
preregbefore any click is read (the code enforces it). - Replay: for each recorded row, Flagsmith assigns a variant of the multivariate flag
rec_strategy(random vs smart). If that variant would have shown the item the shopper really saw, we sendtrack_exposure_event, plustrack_event("rec_click")if they really clicked. - Analyse: Flagsmith computes the lift and interval; we reconcile its counts with a local mirror, cross-check with a block bootstrap, an A/A test and an SRM test, then apply the rule once.
- Ship: Complete via the Flagsmith API with the winner;
flagsmith evalconfirms every identity getssmart.
Data: Open Bandit Dataset (Saito et al.), CC BY 4.0. One shop, one week, an identity is an impression, not a person; see LIMITATIONS.md in the repo.