Skip to content

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

Booking.com Data Science 5 min read Research hardMaster

Outlier Handling at Scale in Experimentation

Extreme but legitimate values in A/B test metrics inflate variance and distort false positive rates, so Booking.com uses A/A permutation tests as a diagnostic: when the outliers are a problem, the p-value distribution stops being uniform. Simulations show failure tracks the ratio of the maximum value to the 99.9th percentile. Winsorization, using either relative percentile caps or absolute business-defined caps, restores validity and power without per-experiment manual work. Thresholds are chosen across many experiments by keeping only those that pass the permutation test, then picking one where the standard deviation has dropped meaningfully but the mean has barely shifted. Known limits include masking real tail effects, sensitivity to experiment duration, and a bias-variance tradeoff that is hard to measure.

Assumes: A/B testinghypothesis testing and p-valuesaverage treatment effect

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.

  • 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.

  • When Can You Ship on Offline Evals Alone?

    Spotify Engineering hardMaster

    Shipping AI changes on offline evals alone, without A/B tests, can bound the risk of harming online metrics only under strong assumptions: a homogeneous, exchangeable corpus of paired offline/online effects, known measurement error, and LLM-judge bias that doesn't depend on the treatment arm. Ignoring measurement noise badly attenuates the observed offline-online correlation (24% naive R² vs 60% true in the worked example), and pooling heterogeneous experiments can produce Simpson's-paradox false surrogacy. The proposed decision gate ships or kills only on sufficiently strong eval effects, with thresholds that scale with surrogate strength, routes the middle to A/B tests, and keeps a random audit pool to detect drift. Spotify still pairs offline evals with online experiments.

  • A problem well-defined is half solved: Measuring Hypothesis Quality at Booking.com

    Booking.com Data Science easyNovice

    Booking.com scores A/B test hypotheses with an LLM-based checker that marks five pillars as present or missing: prior evidence, the change, target audience, expected user response, and observable metrics. The result is an advisory 0–3 Hypothesis Quality Score. The checker sits in the experiment creation form and returns feedback in about 10 seconds. It is backed by a Quality Tab, a dashboard for embedded experimentation ambassadors, and a structured hypothesis template. Since launch, the share of product experiments with an "Excellent" hypothesis rose from 62% to about 88%, driven mostly by 13–14 point gains in stated user responses and metrics. The team deliberately avoids auto-rewrites and treats the score as an operational signal, not a measure of decision quality.

  • Building better AI benchmarks: How many raters are enough?

    Google Research easyNovice

    For human-rated AI benchmarks, the trade-off between number of items (N) and raters per item (K) determines whether model comparisons are reproducible, and the common practice of 1–5 raters per item is often insufficient; reliable results frequently need more than 10. Using a simulator built on real subjective datasets (Toxicity, DICES, D3code, Jobs) and sweeping N from 100 to 50,000 and K from 1 to 500, the researchers found the optimal split depends on the metric: accuracy against a majority vote favors more items, while metrics capturing the full distribution of human opinion (e.g., total variation) favor more raters. With the right ratio, highly reproducible results are achievable with roughly 1,000 total annotations, whereas the wrong balance stays unreliable even with a larger budget. The simulator is open-sourced.

The quest for software engineering knowledge.

Look:
Layout: