Marketing wants to send a discount only to customers it will actually persuade. How would you build and validate that targeting model?
What the interviewer wants to hear
- The goal is uplift (treatment effect), not purchase probability
- Needs randomised data with treated and control customers
- Use uplift methods such as two-model, T-learner or causal forests
- Evaluate with uplift or Qini curves on held-out randomised data
- Confirm with a new test comparing targeting against random
Model answer
The trap is to target people with a high purchase probability, because many of them would buy anyway and the discount just loses margin. What we want is uplift: how much the discount raises the chance of buying for each customer. To learn that we need randomised data, so I would run an experiment where a random subset gets the discount. Then I can fit uplift models, for example a T-learner with one model for treated and one for control, or a causal forest, and estimate each customer effect. Evaluation is tricky because we never see both outcomes for one person, so I use uplift or Qini curves on held-out randomised data, checking that the top-scored groups show the largest treated-minus-control difference. Finally I would run a confirmation test comparing model targeting with random targeting, measured on incremental profit after discount costs.
Can you answer it under time pressure?
Take a timed hard round and get scored on every answer.
More hard Data Scientist questions
- An A/B test shows a significant 3% increase in conversion but a significant 2% drop in average order value. What do you do?
- Leadership wants to know the effect of a loyalty programme that launched for everyone last year, with no experiment. How do you estimate it?
- Build a daily demand forecast for 5,000 products across 200 stores. How would you approach it?
- Why are A/B tests tricky in a two-sided marketplace like a ride-hailing app, and how would you handle it?
- Daily active users dropped 8% overnight. How do you investigate?
- A model that looked strong offline performs much worse a month after launch. How do you investigate?
- When would you use survival analysis instead of a binary churn classifier, and how would you set it up?
- You must estimate the effect of a feature that users chose to adopt, using propensity score methods. What can go wrong and how do you guard against it?
- The business wants to know how demand responds to price for thousands of products. How would you estimate price elasticity?