Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data

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

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

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.

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.

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.

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.

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