Data Scientist Interview Question

Your model scored 0.88 AUC offline but is performing noticeably worse in production. How do you debug that?

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

Quick answer

Work through the gap in order: verify the production metric is computed the same way, check for training and serving skew, then check for leakage in the offline setup, then check for distribution shift. Skew and leakage are far more common than genuine drift in the first weeks after launch. Log the served feature vectors and rescore them offline to isolate where the numbers diverge.

Why interviewers ask this

This is the most realistic thing a data scientist does, and the interviewer wants an ordered process rather than a list of possible causes. The signal is in the sequencing: rule out measurement and plumbing before reaching for concept drift, because new hires almost always blame drift first. Logging served features to reproduce the score offline is the detail that proves you have shipped something.

How to structure your answer

  • Confirm the two metrics are measuring the same thing first.
  • Check training and serving skew by rescoring logged feature vectors.
  • Then look for leakage in the offline pipeline.
  • Only after that, test for distribution and concept drift.
  • Say what you would do meanwhile to limit the damage.

Example answer

Spoken example, first person

First I check that I am comparing like with like. Offline AUC is often computed on a labeled snapshot with a different population and a different label delay than production, and half the time the gap is partly that. Next I look for training serving skew, which in my experience is the most common cause. I log the actual feature vectors the service used, rescore them with the offline model, and compare to what production emitted. If they differ, the bug is in the serving pipeline, not the model, and it is usually something dull like a category mapping to unknown or a timezone difference shifting a rolling window. If the scores match, I suspect leakage offline, meaning some feature was computed after the label was known. The tell is a feature with implausibly high importance. Only then do I test for drift, comparing feature distributions and the base rate between training and now. Meanwhile I would not leave it bleeding: fall back to the previous model or a rules baseline for the affected slice, and tell stakeholders the number moved before they find it themselves.

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 monitor for this automatically rather than finding out late?
  • What statistic would you use to detect feature drift?
  • How do you handle a model whose labels only arrive sixty days later?

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