Small Sample, Large Variance: How We Built A/B Groups with a Genetic Algorithm

Anastasia Shulakova, Georgy Geymbukh3 Jun 2026

Problem

Avito support analysts had to check that a rebuilt admin interface does not worsen average handling time (AHT) before a 100% rollout. The interface is switched on per specialist, so the unit is the employee, and groups of 20 to 150 people are typical. AHT is a noisy ratio metric driven by channel, case complexity and experience. A random split on such samples often leaves imbalance, inflates the false positive rate and gives a high MDE.

Example from the article: in historical A/A simulations, a random split with a t-test and the delta method gave a false positive rate of 5.8–6.5% against a target α.

Solution in brief

Describe each employee by a profile of pre-period covariates, then find the split with a genetic algorithm that minimizes imbalance on the profile and penalizes uneven group sizes. After the test, check balance with SMD, adjust the sample by pre-registered rules if people dropped out, and estimate the effect with CUPED.

Questions this case answers
  • How to assign a small number of heterogeneous units to test and control so that random assignment does not leave a large imbalance and an inflated false positive rate
  • How to prove non-inferiority of a change measured by a noisy ratio metric when only dozens of independent units are available
  • How to split a few dozen employees into test and control so that the groups are balanced on the target metric and on the whole work profile?
  • How to test a new internal interface for non-inferiority on average handling time when the unit of treatment is the specialist and the sample is small?

Tools and methods

  • Genetic algorithm — searches test/control splits with a fitness function and a stratified start.
  • Clustering and stratified assignment — builds the starting population, each cluster split about 50/50.
  • Standardized mean difference (SMD) — measures covariate balance after the test.
  • CUPED with ratio-metric linearization — cuts the variance of the AHT estimate.
  • Delta method, bootstrap, A/A simulations — valid inference for ratio metrics and false positive checks.
Continue reading — it's free

Google or a one-time email code. No password.