---
title: "Speed with Rigor: testing smarter with group sequential design"
description: "Group sequential testing (GST) lets A/B experiments be checked at predefined interim stages without the false positive inflation caused by peeking."
url: "https://swe.quest/articles/speed-with-rigor-testing-smarter-with-group-sequential-design-da7a9a6fe71fd881"
canonical: "https://tech.olx.com/speed-with-rigor-testing-smarter-with-group-sequential-design-af962363ce90"
source: "OLX Tech"
published: "2025-08-05"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 11
tags: ["python"]
---

# Speed with Rigor: testing smarter with group sequential design

A post on [OLX Tech](https://swe.quest/sources/olx.md), published 2025-08-05, 11 min read, Deep dive. Original: [https://tech.olx.com/speed-with-rigor-testing-smarter-with-group-sequential-design-af962363ce90](https://tech.olx.com/speed-with-rigor-testing-smarter-with-group-sequential-design-af962363ce90)

## Summary

Group sequential testing (GST) lets A/B experiments be checked at predefined interim stages without the false positive inflation caused by peeking. A simulation shows naive daily checks over 30 days push the false positive rate from 5% to 27.9%. O'Brien-Fleming efficacy boundaries and Pampallona–Tsiatis futility boundaries allow stopping early for a win or for a lack of effect. The tradeoff is a larger maximum sample size, up to about 25% more than a fixed-horizon test at 20 stages, against a lower average sample size (about 79% of fixed horizon for a 5-stage design). The design also depends on accurate traffic estimates for scheduling the interim analyses.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- hypothesis testing and p-values ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- Type I and Type II errors
- A/B testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

group sequential testing, O'Brien-Fleming boundary, Pampallona and Tsiatis, Pocock boundary, A/B testing, OLX

## Related posts

- [10 Lessons Learned From Online Experiments](https://swe.quest/articles/10-lessons-learned-from-online-experiments-ddcc212d6c480867.md): Shopify Engineering · 2021-06-17 · Medium · 12 min read · Analytics & OLAP, Testing, E-commerce
  Ten practical lessons from a year of online A/B experiments on Shopify's multi-currency, geolocation and translation features.
- [Scaling Reliable Experimentation in a Two-Sided AdTech Marketplace: ZMS Budget Split](https://swe.quest/articles/scaling-reliable-experimentation-in-a-two-sided-adtech-marketplace-zms-budget-c68e3c8f0c5c3d70.md): Zalando Engineering · 2026-08-31 · Medium · 5 min read · Ads, System design
  In a two-sided retail media marketplace, A/B test variants that draw from shared advertiser budgets violate SUTVA, because a more efficient treatment drains the budget and depresses control metrics (cannibalization bias).
- [Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics](https://swe.quest/articles/monte-carlo-simulations-separating-signal-from-noise-in-sampled-success-metrics-7237ecec15008958.md): Shopify Engineering · 2023-01-03 · Medium · 11 min read · Analytics & OLAP, Python, Algorithms
  A Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example.
- [Test Budget: Time Constrained CI Feedback](https://swe.quest/articles/test-budget-time-constrained-ci-feedback-1e3be31297da77ec.md): Shopify Engineering · 2022-03-07 · Medium · 10 min read · Testing, CI/CD, Developer productivity
  Shopify's Test Infrastructure team evaluated a "test budget" for its 170,000-test Rails monolith: tests chosen by call-graph test selection are reordered with prioritization heuristics so failures surface early, and execution stops at a fixed time limit.
- [Building On-call: Continually testing with smoke tests](https://swe.quest/articles/building-on-call-continually-testing-with-smoke-tests-7d1cd2c2e1ed63ef.md): incident.io · 2024-08-09 · Medium · 7 min read · Testing, SRE, CI/CD, Resilience
  incident.io runs an end-to-end smoke test suite for its On-call paging product every minute against production and staging, and also on every pull request and deploy using containers on a single machine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
