Problem
Wayfair sends millions of daily sales emails. Each email can bring an order or an unsubscribe, which has an opportunity cost. The previous model could not estimate revenue and unsubscribe cost together. It was trained in Jupyter notebooks, retrained by hand and built on random data from 2019, while fresher data gave at least a 4% lift in exploratory analysis. The team needed a per-customer decision that weighs both outcomes and retrains often for every region and brand.
Example from the article: customers in the top score bins get 7 emails per week, those in the lowest bins get 1.
Solution in brief
Models predict the probability that a customer buys, unsubscribes or does nothing after a daily email. Combined with expected revenue and unsubscribe cost, these give one net value score. Customers are ranked by it and mapped to send frequencies, and a parameterized pipeline retrains the models on random-frequency data.
Questions this case answers
- How to choose the contact frequency per customer when each contact can both earn revenue and permanently lose the customer's consent
- How to keep a propensity model from decaying when its training data comes from a past policy and customer behavior keeps changing
- How to decide per customer how often to send a daily marketing email when sending also risks an unsubscribe?
- How to turn purchase and unsubscribe probabilities into a send decision with a revenue-versus-unsubscribe trade-off?
Tools and methods
- Expected-value scoring — purchase and unsubscribe probabilities times revenue and cost give a net value
- Random forest classifier (Spark ML) — three classes: attributed purchase, unsubscribe, neither
- Feature selection — correlation, forest importance and step-wise selection leave 500+ features
- Random holdout group — 4 weeks of random-frequency sends give unbiased retraining data
- Backtesting and A/B test — historical simulation, then a 4-week online test
- Apache Spark and BigQuery — seed tables, features and training
Google or a one-time email code. No password.
