Beyond A/B Testing: Designing Experiments When the Space Is Too Large to Explore

Emanuel Fitta28 Sep 2026

Problem

Experiments with several levers, each taking several values, have too many combinations to run. With 4 factors at 5 levels there are 625; with 5 factors at 5 levels, 3,125. Regulation, operations and customer experience then forbid some combinations, so the usual fractional factorial recipes no longer apply cleanly. More traffic does not rescue a badly chosen subset: some effects can no longer be separated.

Example from the article: Nubank's collections team needed training data for a next-best-action model. Customers pass through up to four time windows, with one of five actions in each (Reminders, Bureau Warning, Credit Card Block Warning, Credit Card Block Action, No action). That gives 625 sequences, and business rules left 175.

Solution in brief

State the linear model you want to estimate, list the feasible candidate combinations, and let a D-optimal search (Fedorov's exchange algorithm) pick the runs. Compare D-efficiency with and without each restriction to see its cost. Prune the candidate set only if the criterion says it does not hurt.

Questions this case answers
  • How to select a subset of treatment combinations that keeps target effects estimable when the full factorial is too large and some combinations are forbidden
  • How to quantify the statistical cost of operational constraints on an experiment design before agreeing to them
  • How to choose which treatment combinations to run when a full factorial is too large
  • How to design a multi-factor experiment when business rules forbid some combinations

Tools and methods

  • D-optimal design — chooses runs that maximize det(X'X) for a stated model
  • Fedorov's exchange algorithm — greedy swap search over a feasible candidate set
  • AlgDesign (optFederov()) — R implementation of the exchange algorithm
  • PyOptEx — Python D-optimal design generation (coordinate exchange)
  • D-efficiency — compares a constrained design with an unconstrained benchmark
Continue reading — it's free

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