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?
What the interviewer wants to hear
- Unmeasured confounders are not fixed by propensity scores
- Only pre-treatment covariates should be used, not post-treatment ones
- Check overlap and trim extreme scores
- Check covariate balance after matching or weighting
- Run sensitivity analysis and negative controls
Model answer
Propensity methods only adjust for confounders we measure, so the biggest risk is unmeasured ones like motivation, which drives both adoption and retention. I would list likely confounders with the product team and include pre-treatment behaviour such as usage in the weeks before adoption, which is a strong proxy for motivation. I must avoid post-treatment variables, because adjusting for things the feature itself changes removes part of the real effect or adds bias. Next I check overlap: if many adopters have propensities near one, there are no comparable non-adopters, so I trim and state the population the estimate applies to. After matching or weighting I check balance with standardised mean differences below about 0.1. Finally I run a sensitivity analysis to see how strong a hidden confounder would need to be to remove the effect, and use a negative control outcome the feature should not affect.
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?
- Marketing wants to send a discount only to customers it will actually persuade. How would you build and validate that targeting model?
- 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?
- The business wants to know how demand responds to price for thousands of products. How would you estimate price elasticity?