A store in 60-dimensional space: making A/B tests more precise and reliable

Kostya Gusev3 Nov 2022

Problem

Retail teams that change assortment, prices or shelf layout in physical stores need A/B tests, but a store is a noisy unit. In the article's example, 50 pilot and 50 control stores gave +3% on total sales over one month and -1% over six weeks. Monthly measurement gives 12 observations a year, and carelessly picked stores differ before the test. Goods reach shelves late or not at all, so the pilot assortment is only partly in place.

Example from the article: M.Video-Eldorado tested its assortment-planning service on revenue: pilot shelves filled per its recommendations, control unchanged.

Solution in brief

Use matched pairs, not random assignment: pair each pilot store with the most similar control store (closest 60-day sales vector, or a bootstrap plus t-test A/A check). Choose measurement granularity and test length by injecting the expected effect (for example 5%) into historical sales and checking how soon a t-test detects it. Confirm the estimate with a bootstrap confidence interval and run the pilot with dashboards.

Questions this case answers
  • How to design a controlled experiment on a small number of physical units whose outcome is a noisy daily metric and where the change reaches the units with delays
  • How to choose the measurement granularity and test duration so that a few-percent effect is detectable with few units
  • How to pick matched control stores for an offline retail pilot
  • How to estimate the duration of a store-level A/B test before launching it

Tools and methods

  • A/A test — checks pilot and control stores did not differ before the test
  • Vector distance matching — nearest store by 60-day sales vector becomes the control
  • Bootstrap — more observations and a confidence interval
  • Student's t-test — detects the effect and sizes the test by effect injection
  • Dashboards — track revenue, margin, receipts and matrix fill
Continue reading — it's free

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