KatInterview

Safe deployment strategy for adaptive experimentation

Machine LearningModel answer
HardModel answerMachine Learningbanditsbayesian-inferenceexperimentation

Last updated

Design a Bayesian bandit with delayed feedback, churn protection, and rollback rules; compare regret to fixed-split testing under real-world constraints.

You're building an adaptive allocation system to test three product variants. Conversions arrive with delay, and you must protect a churn metric.

Your task:

a) Bandit design. Specify a Thompson Sampling implementation: choice of prior and likelihood, how you'll account for conversion delays (users exposed recently haven't had time to convert yet), and how you'll adapt when conversion rates drift over time.

b) Safety constraints. Explain how you'll ensure every variant remains measurable, the churn guardrail keeps statistical power, and no variant is unfairly starved of traffic.

c) Stopping and rollback. Define the criteria for declaring a winner and the escalation ladder when a variant harms the churn metric.

d) Business trade-off. Three million users arrive over four weeks. Variant A (control) converts at 5.0%, B at 5.3%, and C at 5.5%. Estimate how many conversions you gain or lose compared to a static equal split, and explain how weekly seasonality changes both the regret calculation and your inference.

Hints

Hint 1

For delayed conversions, think about how much of the outcome window has elapsed for each user—treat partial information probabilistically rather than ignoring it or assuming failure.

Hint 2

Churn is a constraint, not just another reward. Consider filtering samples or adjusting the objective before choosing an arm.

Hint 3

Seasonality makes allocation correlate with time-of-week, biasing naive comparisons. You'll need propensity weighting or stratification to get clean estimates.