Problem
Teams that run many A/B tests want to ship faster, but a fixed-horizon test must wait for its full sample size. Stopping as soon as a small sample shows a significant uplift produces many false positives. At GetYourGuide, experiments are evaluated once a day on aggregated data, so the team needed a method that fits batch evaluation, controls both error types and shortens tests.
Example from the article: a binary test where each visitor counts 1 if they became a customer and 0 if they left without buying, or a continuous test where the value is revenue per visitor, including 0 for non-customers.
Solution in brief
Basemath is GetYourGuide's open-source Python package for group sequential testing. It fixes a maximum sample size up front from , and the minimum detectable effect (MDE), then checks each daily batch against a rising futility line. If the treatment falls to or below the line, the test stops for futility. If it stays above until the maximum sample size, the null is rejected.
Questions this case answers
- How to shorten randomized experiments that are evaluated in periodic batches while keeping false-positive and false-negative rates bounded
- How to stop A/B tests earlier without inflating false positives when results are checked daily?
- How to run a sequential test on daily aggregated data with a fixed maximum sample size?
- How to decide, batch by batch, whether to keep collecting data, stop for futility or declare a win?
Tools and methods
- basemath-analysis — open-source Python package that runs the test on batch data and returns a decision code
- Group sequential testing — evaluates aggregated data in batches instead of sample by sample
- Futility boundary — a line that grows with the sample size; crossing it stops the test early
- Power analysis — , and MDE determine the maximum required sample size
Google or a one-time email code. No password.