Data scientist interview questions and answers
Data science interviews test three things at once: statistical judgment, practical modeling and coding skill, and whether you can turn analysis into decisions. These questions cover all three, with outlines for strong answers.
Statistics and machine learning questions
- Explain the bias-variance trade-off. — What they're looking for: intuition, not just a definition. Strong answer outline: simple models underfit (high bias), complex ones overfit (high variance); describe how you diagnose each with training versus validation error and the tools you use, such as regularization, more data or simpler features.
- How would you handle an imbalanced classification dataset? — What they're looking for: awareness that accuracy can mislead. Strong answer outline: choose metrics like precision, recall or PR-AUC, consider class weights or resampling, tune the decision threshold to the business cost of errors, and validate on a realistic split.
- What is a p-value, and what is it not? — What they're looking for: correct interpretation. Strong answer outline: the probability of seeing results at least as extreme as observed if the null hypothesis were true; it is not the probability the null is true, and it says nothing about effect size.
- Write a SQL query to find each user's most recent order. — What they're looking for: comfort with window functions or joins. Strong answer outline: use ROW_NUMBER() partitioned by user and ordered by order date descending, then filter to row 1; mention ties and indexing.
Behavioral questions
- Tell me about an analysis that changed a decision. — What they're looking for: business impact. Strong answer outline: the question stakeholders asked, how you reframed or answered it, the recommendation, and what the team did differently afterward.
- Describe a model that did not work as expected. — What they're looking for: honesty and learning. Strong answer outline: what failed (data leakage, drift, wrong metric), how you discovered it, what you fixed, and how you now guard against it.
- How do you explain technical results to non-technical people? — What they're looking for: communication. Strong answer outline: lead with the decision and the uncertainty, use one clear chart, avoid jargon, and give a concrete example from your work.
Situational questions
- An A/B test shows a significant lift, but the product manager is skeptical. What do you check? — What they're looking for: experimental rigor. Strong answer outline: sample ratio mismatch, novelty effects, test duration, multiple comparisons, segment consistency and whether the metric matches the goal.
- You have one week to deliver a churn model. How do you scope it? — What they're looking for: pragmatism. Strong answer outline: agree on how predictions will be used, start with a simple baseline, define the evaluation metric up front, and deliver something usable before polishing.
Questions to ask the interviewer
- How do models move from notebooks into production here?
- Which decisions does the data team influence most directly?
- How is the quality of the underlying data owned and monitored?
How to prepare
- Refresh probability, hypothesis testing and experiment design basics.
- Practice SQL with joins, aggregations and window functions until they feel routine.
- Be ready to explain every project on your resume end to end: data, features, model, metric, impact.
- Prepare for take-home assignments by keeping your work reproducible and clearly written up.
- Think about the company's product and which metrics a data scientist there would likely care about.
Sample answer: "Tell me about an analysis that changed a decision"
Use this STAR example as a template and swap in your own project and numbers.
Situation: Our marketing team planned to increase spend on a channel that showed the most sign-ups in our dashboard. Task: I was asked to estimate the return on that extra budget. Action: I joined sign-up data with 90-day retention and found that users from that channel churned much faster than average. I built a simple cohort comparison, checked that the difference held across months, and presented one chart showing retained users per dollar by channel instead of sign-ups per dollar. Result: The team shifted part of the planned budget to a channel with better retention and adopted retained users as the main channel metric. I also set up a recurring report so the comparison stayed current.
Frequently asked questions
Do data scientist interviews include coding?
Most do. Expect SQL and often Python, either live or as a take-home. The focus is usually on data manipulation and clear logic rather than algorithm puzzles.
How technical is the machine learning portion?
It depends on the role. Product analytics roles lean on statistics and experimentation; machine learning roles go deeper into model choice, evaluation and deployment. Read the job description closely.
How should I present a take-home assignment?
Lead with the answer and recommendation, then show your method, assumptions and limitations. Clean, readable code and a short summary matter as much as the model's score.