Likely buyers or the people a send changes: two ways to choose who gets an e-mail
On two randomized tests, each fifth of the customers was scored by a model fitted on the other four fifths.
The data
The e-mail test. The MineThatData E-Mail Analytics and Data Mining Challenge dataset, published by Kevin Hillstrom for open analysis: 64,000 customers who bought in the past twelve months, split at random into thirds. One third got an e-mail of men's merchandise, one an e-mail of women's merchandise, one nothing. The two weeks after were tracked: visits, purchases, spend. Known before the send: months since the last purchase, last year's spend, whether they bought men's or women's products, zip code type, new customer, and channel. The file is downloaded from the author's site and checked by its fingerprint; it is not copied here.
The ad test. The Criteo Uplift Prediction Dataset, version 2.1, from Criteo AI Lab (Diemert, Betlei, Renaudin and Amini, A Large Scale Benchmark for Uplift Modeling, AdKDD), under CC BY-NC-SA 4.0 and used here for a non-commercial study. 13,979,592 users from randomized incrementality tests, 85% shown ads, with 12 anonymous features, a visit and a conversion. The publisher sub-sampled it so the true effect cannot be read from it. A keyed hash of each row's number keeps one row in four: 3,494,359 users. Not copied here.
The models and the lists
- Likely buyers (propensity): the chance of a purchase with no send, fitted on the no-send group. Logistic regression, and boosted trees.
- Likely buyers after a send (response): the same, fitted on the sent group.
- Uplift, two models: the response score minus the propensity score.
- Uplift, one model of the effect: boosted trees on a transformed outcome whose average is the effect of the send.
- Last year's spend: a rule, no model.
Five-fold cross-fitting: within each group, customers are shuffled with a fixed seed and dealt into five parts. Each model is fitted on four parts and scores the fifth, so every score comes from a model that never saw that customer. Logistic regression at C = 1.0; boosted trees with 200 rounds at a learning rate of 0.05, at most 15 leaves, at least 100 customers per leaf on the e-mail test and 1000 on the ad test. The main comparison, fixed before any fit, was the logistic propensity model against the logistic two-model uplift, on the men's e-mail, at the top 30%. The women's e-mail was reported beside it, never pooled.
The measures
- Effect in a group: the share who bought after the send minus the share who bought without it, with a 95% Newcombe interval.
- Unsent over mailed: the share buying without the send divided by the share buying after it. Read as the share who would have bought anyway, it assumes the send never stopped a purchase.
- Added purchases at 30%: the effect among the top 30% of a list, times 0.3, per 1,000 customers on the list.
- Share of all added: that figure divided by the same for everyone. Added after the results.
- Intervals: 1,000 bootstrap resamples on the e-mail test and 200 on the ad test, each customer weighted by a random Poisson count, the scores held fixed. Refits on other splits measure the models' own noise.
Predictions, declared before any model was fitted
8 of 9 held. The design, protocol and these predictions were committed before the first fit. Several were close to safe bets, and the last is labelled one.
- The propensity model ranks buyers: held. Hillstrom, no-send arm: the logistic propensity model's AUC for purchase is at least 0.60 and its 95% interval's lower end is above 0.50.
- The model beats the past-spend rule: held. Hillstrom, no-send arm: the logistic propensity model's AUC exceeds the past-spend rule's by at least 0.02.
- The propensity model is calibrated: held. Hillstrom, no-send arm: the logistic propensity model's Brier skill against the base rate is above 0, and in the top tenth of predicted chance the observed purchase rate is within a factor of 1.5 of the mean predicted chance.
- Would-have-bought-anyway purchases gather at the top: held. Hillstrom, Mens e-mail: the share of sent customers' purchases that would have happened anyway (rate not sent / rate sent) is higher in the logistic propensity model's top 30% than in its bottom 70%. Scored on the point estimate, as declared; its interval crosses zero.
- The e-mail still changes most at the top: held. Hillstrom, Mens e-mail: the effect of the e-mail in points (rate sent minus rate not sent) is larger in the logistic propensity model's top 30% than in its bottom 70%. Scored on the point estimate, as declared; its interval crosses zero.
- On 42,613 customers the uplift model does not beat the propensity model: held. Hillstrom, Mens e-mail: at the top 30%, the logistic two-model uplift's extra purchases per 1,000 customers minus the logistic propensity model's has a 95% interval that includes 0.
- On the large test the uplift model wins: missed. Criteo sample, conversion: at the top 30%, the logistic two-model uplift's extra conversions per 1,000 users minus the logistic propensity model's is above 0 with a 95% interval above 0.
- Gradient boosting adds nothing on the small test: held. Hillstrom, no-send arm: the gradient boosting propensity model's AUC is not more than 0.02 above the logistic model's.
- A nearly free e-mail goes to everyone: held. Hillstrom, Mens e-mail, margin 40%: at US$0.01 a send, sending to everyone nets at least as much as the best targeted share under every ranking. A safe bet: close to true by construction when a send costs almost nothing.
A further analysis, declared after these results and before its code, asked how large a holdout the check needs, what each sending policy nets with an interval, and whether the spend rule does as well as the model. Its four predictions were scored in the order declared. The declaration itself is not in the download.
- Prediction 1: missed. The interval's half-width shrinks with the square root of the test's size, for both e-mails.
- Prediction 2: held. A 10-point reading needs at least 150,000 customers a side for the women's e-mail, at most 60,000 for the men's.
- Prediction 3: held. The spend rule's share minus the model's has an interval containing zero for both e-mails.
- Prediction 4: missed. At US$0.25 a send, mailing the women's e-mail to everyone loses money beyond its interval; the men's does not.
A cost cut-off on the propensity score, also declared after these results and before its code, measured the score at which a send pays at an assumed margin and cost, and what the send added above it. Its three predictions were scored in the order declared, and that declaration is not in the download either.
- Prediction 1: held. At US$0.25 a send, 20% to 70% of each e-mail's customers are at or above the cut-off.
- Prediction 2: held. At US$0.25, the women's e-mail's added margin per customer above the cut-off is below US$0.25.
- Prediction 3: held. At US$0.25, the men's e-mail's added margin per customer above the cut-off has an interval containing US$0.25.
The same cut-off, and one set on the margin an uplift model predicts a send adds, were then run as mailing policies against mailing everyone and last year's spend, declared before their code and computed after the results. Its three predictions were scored in the order declared; that declaration is not in the download either.
- Prediction 1: held. Women's e-mail at US$0.25: the propensity cut-off nets more per 1,000 than mailing everyone, with an interval for the difference that contains zero.
- Prediction 2: held. Men's e-mail at US$0.25: the propensity cut-off's net minus mailing everyone's has an interval that contains zero.
- Prediction 3: held. Women's e-mail at US$0.25: the added-margin cut-off nets more per 1,000 than the propensity cut-off.
Terms
- Propensity-to-buy score
- A model's chance that a customer buys, here with no e-mail. In statistics a propensity score is the chance of being sent; that is not this.
- Uplift model
- A model of how much a send raises a customer's chance of buying.
- Holdout
- A random group kept out of a send, so the gap shows what the send caused.
- Added purchases
- Purchases after the send minus those the holdout shows would have happened anyway.
- AUC
- The chance a buyer ranks above a non-buyer: 0.5 is a coin flip, 1 is perfect.
- Calibration
- Whether predicted chances match what happened.
- Qini curve
- Added purchases against the share of the list sent, highest score first.
Reproduce it
How to run itThe designThe protocolThe predictions as declaredThe predictions scoredE-mail test resultsAd test resultsAdded after the resultsThe models (Python)The measures (Python)The further analysis (Python)Its resultsThe cost cut-off (Python)Its resultsThe cut-offs as mailing policies (Python)Their resultsSources and fingerprints
The summaryThe ad test, 3.5 million usersAll resultsMethod and checks