---
title: "Outlier Handling at Scale in Experimentation"
description: "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."
url: "https://swe.quest/articles/outlier-handling-at-scale-in-experimentation-5fa7d6aa3bffa1e6"
canonical: "https://booking.ai/outlier-handling-at-scale-in-experimentation-a8bb140e1ab8"
source: "Booking.com Data Science"
published: "2026-07-01"
difficulty: "hard"
kind: "Research"
reading_minutes: 5
tags: ["analytics"]
---

# Outlier Handling at Scale in Experimentation

A post on [Booking.com Data Science](https://swe.quest/sources/booking-ai.md), published 2026-07-01, 5 min read, Research. Original: [https://booking.ai/outlier-handling-at-scale-in-experimentation-a8bb140e1ab8](https://booking.ai/outlier-handling-at-scale-in-experimentation-a8bb140e1ab8)

## Summary

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.

Written by swe.quest, not by the author.

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

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- A/B testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- hypothesis testing and p-values ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- average treatment effect

## Keywords

Booking.com, winsorization, permutation test, A/A testing, Kolmogorov-Smirnov test, Huber loss

## 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.
- [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.
- [When Can You Ship on Offline Evals Alone?](https://swe.quest/articles/when-can-you-ship-on-offline-evals-alone-7dcb77ec604a6e78.md): Spotify Engineering · 2026-11-19 · Hard · 11 min read · Evaluation, LLMs, Machine learning
  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.
- [A problem well-defined is half solved: Measuring Hypothesis Quality at Booking.com](https://swe.quest/articles/a-problem-well-defined-is-half-solved-measuring-hypothesis-quality-at-booking-9836b456705b430e.md): Booking.com Data Science · 2026-09-29 · Easy · 7 min read · LLMs, Developer productivity, Analytics & OLAP
  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.
- [Building better AI benchmarks: How many raters are enough?](https://swe.quest/articles/building-better-ai-benchmarks-how-many-raters-are-enough-d6f3c4139160edcf.md): Google Research · 2026-03-31 · Easy · 6 min read · Evaluation, Machine learning
  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.

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)
