Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OLX Tech 11 min read Deep dive hardMaster

Speed with Rigor: testing smarter with group sequential design

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.

Assumes: hypothesis testing and p-valuesType I and Type II errorsA/B testing basics

Related posts

  • 10 Lessons Learned From Online Experiments

    Shopify Engineering mediumAdept

    Ten practical lessons from a year of online A/B experiments on Shopify's multi-currency, geolocation and translation features. Randomization units should be independent (user rather than session, to avoid carryover), and simulations are a fast way to check statistical worries such as false-positive inflation when randomization and analysis units differ. A/A tests with redirects surfaced sample ratio mismatch caused by bots and client-side pageview logging, and in another experiment SRM traced to cookie-based qualification logic flipped the result from negative to positive. Other lessons: understand your data pipeline and log generously, peek at results (without stopping early) to catch outliers like a single high-volume store, and slice results by segment because the overall number is only an average.

  • Scaling Reliable Experimentation in a Two-Sided AdTech Marketplace: ZMS Budget Split

    Zalando Engineering mediumAdept

    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). Zalando's ZMS solves this with Budget Split, which partitions each campaign into virtual sub-campaigns proportional to traffic so each variant runs isolated auctions. Orthogonal Concurrency extends the approach to concurrent experiments by splitting budgets into cross-product buckets (e.g., 1A2A, 1A2B, 1B2A, 1B2B). Residual interference from algorithmic campaign steering, shared pre-experiment ML training data, manual ops interventions and right-censoring is still monitored, and experiment volume grew from 8 in 2023 to over 60 in 2025.

  • Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics

    Shopify Engineering mediumAdept

    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. The method defines simulation metrics such as MAPE and the share of months where the sampled metric decreases (1mDO, 2mDO), generates sampled time series under assumed monthly improvement rates, repeats them across iterations, and grid-searches sample size and effect size in Python/pandas. With 10 mean issues, 100 audits per month and a true 5% monthly decrease, a decrease is observed in 83% of months and 97% over two months, giving stakeholders a concrete tradeoff between audit cost and certainty.

  • Test Budget: Time Constrained CI Feedback

    Shopify Engineering mediumAdept

    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. Six criteria (failure rate, average duration, churn, coverage, complexity, random) were compared using Time to First Failure, APFD and a Convergence Index. Historical failure rate performed best, finding 80% of failures after running 60% of the selected suite, while churn and complexity were nearly useless. The analysis suggests stopping at under 70% of the test-selection suite would still catch the first failure in most builds.

  • Building On-call: Continually testing with smoke tests

    incident.io mediumAdept

    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. The suite covers core journeys such as alert ingestion and escalation paging, plus edge cases like malformed user JavaScript in alert parsing. Lessons drawn from building it: have each test begin by tearing down leftover state from earlier runs, set up data through the application's own abstractions rather than direct database or ORM writes, and assert on user-visible timing rather than database rows alone. Running continuous traffic also exposed hidden scaling assumptions, such as migrations that slowed down and batch operations that needed rethinking.

The quest for software engineering knowledge.

Look:
Layout: