← geetpurohit.com

Who Should You Persuade?

Most models predict who will convert. That is the wrong question for a marketing budget. What you actually want is who converts only because you reached them, the incremental lift, not the raw likelihood. This is an uplift model: it estimates the causal effect of sending an email on each customer, using T-learner and X-learner meta-learners validated with the Qini curve. It runs on a real randomized experiment, the Hillstrom email dataset of 64,000 customers.

Python Causal Inference T-Learner X-Learner Qini / AUUC scikit-learn

Score a customer

Describe a customer and the model estimates their visit probability with and without the email, entirely in your browser. The gap between the two is the uplift: the part the email actually caused.

-
-
-
visits if emailed
-
visits if not
=
-
uplift (causal)
The four kinds of customer
Persuadablesconvert only if emailed. Target these.
Sure Thingsconvert anyway. Emailing is wasted spend.
Lost Causeswill not convert either way.
Sleeping Dogsemailing makes them less likely. Leave alone.

Uplift modeling exists to find the top-left box. Targeting by raw likelihood keeps paying to reach Sure Things and, worse, pokes Sleeping Dogs.

Does the model actually rank uplift?

-
Average lift email vs no email
-
Qini T-learner
-
Qini X-learner challenger
-
Customers randomized trial
Qini curve
Qini curve: incremental visits captured vs. fraction targeted. Above the diagonal means the model beats targeting at random.
Actual lift by predicted-uplift decile
Actual visit lift by predicted-uplift decile. Monotonic and rising means the ranking is real, not noise.
Distribution of predicted uplift
Predicted uplift across all customers. Some are genuinely persuadable, some barely move, a few are negative.
Treated vs control visit rate
The raw experiment: emailing lifts the average visit rate. Uplift modeling turns that average into a per-customer decision.

How it works

  1. A real experiment. Customers were randomly assigned to receive an email or not, so a simple difference in visit rates is already an unbiased causal effect. Randomization is what makes the uplift identifiable.
  2. T-learner. Two models are fit: one on the treated group, one on the control group. The predicted uplift for a customer is the difference between what each model says, P(visit | emailed) minus P(visit | not emailed).
  3. X-learner. A stronger challenger that imputes each customer's individual treatment effect and models it directly, which helps when the treated and control groups are unbalanced. Reported alongside as a Qini benchmark.
  4. Qini curve. Accuracy is meaningless here (you never see both outcomes for one person). Instead the model is judged on whether ranking customers by predicted uplift captures more incremental visits per email than random, which is exactly what a Qini curve measures.
  5. Decision. Each customer lands in one of four quadrants. The budget goes to Persuadables, and Sleeping Dogs get left alone.