Problem
A bank markets service packages to hundreds of thousands of small and medium business clients and has several discount variants (arms) to choose from. Which variant works is unknown at the start. Sequential A/B tests are slow and costly, and conversion is low: in one example about 220 of 100,000 clients respond. A wasted offer costs money and a little client trust.
Example from the article: a discount on a service package with arms labeled 1, 2 and 3 months, where the baseline conversion is 0.22% and the team wants more conversions without testing each variant one after another.
Solution in brief
Cluster the clients, train a per-cluster classifier that predicts the chance of accepting each arm, and add a reward model for client profitability. Use these to build a simulator, then run a contextual bandit (UCB policy) against it. The bandit shifts traffic to better offers as data arrives and uses client features to personalize.
Questions this case answers
- How to allocate traffic among competing offers adaptively when conversion is rare and sequential A/B tests are too slow and costly
- How to evaluate a contextual bandit offline when only one arm's outcome per customer was ever observed
- How to choose which service-package offer to show each small-business client when only about 0.2% respond?
- How to test a bandit offline when the client's response to the arms it picks was never observed?
Tools and methods
- K-Means (Spark) — 15 clusters of clients so each cluster has enough positives to train on
- SMOTENC oversampling — raises the positive class from about 1% to 5% before cross-validation
- Random Forest (autobinary) — per-cluster classifier of arm acceptance
- Contextual bandits (space_bandits) — Linear, NeuralLinear and Neural variants; UCB policy compared with a random policy
- Reward model — estimates client profitability, multiplies simulated acceptance
Google or a one-time email code. No password.