Data Scientist Interview Question

Walk me through how you would build a churn model for a subscription product from scratch.

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Define churn and the prediction horizon first, since the label determines everything else. Build a point in time feature set from behavior before the cutoff, split by time, start with a regularized logistic or gradient boosted baseline, and evaluate with precision at whatever retention capacity exists. Then design the intervention alongside the model, because a score nobody acts on has no value.

Why interviewers ask this

Open ended design questions are about ordering and judgment, not algorithms. Interviewers want to hear label definition and horizon before modeling, point in time correctness for features, a temporal split, and a plan for how the score gets used. Candidates who lead with model choice usually skip the parts that decide whether the project succeeds or quietly dies.

How to structure your answer

  • Nail the label and the prediction horizon before anything else.
  • Describe point in time feature construction and the observation cutoff.
  • Split by time and name a simple baseline first.
  • Evaluate against the size of the intervention the business can run.
  • Close on how the score turns into an action.

Example answer

Spoken example, first person

I start with the label, because churn is not obvious. For a monthly subscription it might be failed to renew at the next billing date; for a usage product it might be no activity for thirty days. I also fix the horizon: are we predicting churn in the next thirty days or the next quarter? Those are different models with different interventions. Then I build features as of a cutoff date, using only behavior before it, so engagement trend, support tickets, payment failures, seat count changes, tenure. Point in time correctness is the part I am most careful about. I split by time, training on earlier cohorts and validating on later ones. Baseline is regularized logistic regression so I have something interpretable, then gradient boosting to see how much headroom exists. For evaluation I ask the retention team how many customers they can contact a week and report precision in that top slice rather than overall AUC. And I insist on designing the intervention with them, ideally with a holdout, because otherwise in six months nobody can tell whether the model saved a single customer.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you measure whether the retention campaign actually worked?
  • What if the intervention itself changes who churns, breaking your training data?
  • How often would you retrain, and what would trigger it?

Related data scientist questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot