Skip to main content
Data Scientist

What do data scientist interviews ask?

A data scientist interview tests whether you can turn a messy question into a model or analysis a decision-maker can trust. Expect statistics and probability, machine learning concepts such as overfitting and evaluation, SQL and Python on a dataset, and a case study where you frame a problem from scratch. Interviewers watch for whether you check your data and assumptions before you reach for a model, and whether you can say what a result does and does not show.

Data Scientist interview questions, by round

20 questions across 4 rounds.

Recruiter and background screen

Establishes which parts of the data science workflow you have actually done, from collecting data to presenting a result.

  1. Walk me through a data project from the question to the final result. What did you do yourself?
  2. Why data science rather than data analysis or machine learning engineering?
  3. What was the messiest dataset you have worked with, and how did you handle it?
  4. Which tools do you reach for first for exploring a new dataset, and why?

Statistics and probability

Checks that you can reason about uncertainty, which every later question depends on.

  1. Explain a p-value to someone who has never studied statistics.
  2. You flip a fair coin until you see heads. What is the expected number of flips?
  3. What is the difference between a confidence interval and a prediction interval?
  4. What is the central limit theorem, and why does it matter for testing a mean?
  5. A test for a rare disease is accurate for most people but the disease is rare. Why can a positive result still be probably wrong?
  6. What assumptions does linear regression make, and how would you check them?

Machine learning and modeling

Tests whether you can choose, evaluate and explain a model rather than only run one.

  1. What is overfitting, and how do you detect and reduce it?
  2. Your classifier has high accuracy but the positive class is rare. Why is accuracy misleading, and what would you use?
  3. How does regularization work, and what is the difference between L1 and L2?
  4. When would you prefer a simple model such as logistic regression over a gradient boosted one?
  5. What is data leakage? Give an example of how it can enter a project.

SQL, Python and case study

A hands-on task on data, then an open problem that tests how you frame a question and communicate a recommendation.

  1. Write a query to find the second highest salary in each department.
  2. In pandas, how would you find the customers who made a purchase in two consecutive months?
  3. How would you decide whether a new feature actually increased how often people reorder?
  4. A company wants to predict which customers will cancel. How do you frame the problem, and what would you do first?
  5. How do you explain a model’s prediction to a manager who distrusts it?

Sample answers

Illustrative answers written for this guide, not transcripts of real candidates.

Your classifier has high accuracy but the positive class is rare. Why is accuracy misleading, and what would you use?

If almost every example is negative, a model that always predicts negative is right nearly every time and learns nothing useful. So accuracy rewards the wrong thing. I would look at precision and recall for the positive class instead: precision tells me, of the cases I flagged, how many were real, and recall tells me how many real cases I caught. Which matters more depends on the cost. In fraud detection a missed case is costly, so I would favor recall and accept more false alarms for a human to review. I would also look at a precision-recall curve to pick a threshold, and compare against the dumb baseline of always predicting negative. If the data is very imbalanced, I would try class weights or resampling, and keep my validation set at the real class mix so the numbers reflect what we will see.

Why it scores: Technical: chooses metrics that fit an imbalanced problem and ties the choice to the cost of each error. Problem-Solving: compares against a baseline and keeps validation realistic. Communication: explains precision and recall in plain words.

What is data leakage? Give an example of how it can enter a project.

Data leakage is when information the model would not have at prediction time gets into training, so the evaluation looks better than the real result. A common example is predicting whether a customer will cancel and including a column like "cancellation reason", which is only filled in after they cancel. The model looks excellent and is useless. A quieter example is scaling or filling missing values using the whole dataset before splitting into train and test, so test information leaks into training. For time data it is splitting at random instead of by time, which lets the model learn from the future. I guard against it by splitting first and fitting every step on the training part only, using time-based splits when time matters and being suspicious of any result that looks too good.

Why it scores: Technical: gives one obvious and two subtle examples, including the preprocessing and time-split cases. Problem-Solving: states how to prevent it and treats a too-good result as a warning sign.

How would you decide whether a new feature actually increased how often people reorder?

I would run an experiment if I can. Randomly split users into those who get the feature and those who do not, and compare reorder behavior over the same period. Before running it I would decide the main measure, say the share of users who reorder within a month, how long to run it so I am not stopping when the result looks good, and a guard measure such as complaints or order cancellations. If I cannot randomize, I would compare users who adopted the feature with similar users who did not, but I would say clearly that people who choose a feature may already be more loyal, so the comparison can overstate the effect. I would report the size of the difference with its uncertainty, not only whether it was significant, and say what decision I would make with it.

Why it scores: Problem-Solving: sets the measure and stopping rule before looking at data. Technical: names selection bias when there is no randomization. Communication: reports an effect size with uncertainty and ties it to a decision.

Walk me through a data project from the question to the final result. What did you do yourself?

For a class project I wanted to predict which bike-share stations would run out of bikes by the evening. I collected a public trips dataset and joined weather data. The first thing I found was that about a week of data was missing for one station, so I excluded it and said so in my write-up instead of filling it. I started with a simple baseline, the average for that hour and day, then a gradient boosted model, and split by date so I was not testing on the future I had trained on. The model beat the baseline modestly, and weather mattered less than I expected. I presented a ranked list of stations to watch and was clear about where it was weak, such as holidays. I did the collection, cleaning, modeling and the write-up myself; a teammate built the map.

Why it scores: Behavioral: clear about personal contribution. Problem-Solving: starts with a baseline and splits by time. Communication: reports a modest result honestly and names its weak spots.

What a Data Scientist answer is scored on

Problem-Solving
Framing an open question, checking the data before modeling, starting from a baseline and spotting how a result could be misleading.
Code Quality
SQL and Python that is correct on edge cases such as ties and missing values, readable, and organized so the analysis can be rerun.
Technical
Statistics, model evaluation, leakage and overfitting, and choosing a method that fits the data and the decision.
Communication
Explaining a finding and its uncertainty to a non-technical person and making a recommendation, not just reporting a number.
Behavioral
Honesty about what you did and what the result does not show, and working with stakeholders who disagree with the answer.

These are the five dimensions every interview rolls up to. The full rubric and its measured limits are on the scoring page.

How a Lifelike Data Scientist interview is scored

How a Lifelike Data Scientist interview is scored: a live voice interview, graded on the rubric for its type with an overall score out of 100, calibrated and banded into YES, MAYBE or NO, then rolled up onto the Profile Card across five dimensions (Technical, Problem-Solving, Communication, Code Quality, Behavioral).
The same rubric grades every Lifelike interview. See the full rubric

What the report shows you

Sample report Performance snapshot: strengths and improvement actions, each quoting the exact sentence from the interview it came from, tagged with its question number.
Sample report, synthetic data. Every strength and gap quotes the moment it came from.

How to prepare

  • Be able to explain p-values, confidence intervals and Bayes rule in two sentences each, using words a non-statistician would follow.
  • For every model you have built, state the baseline, the metric you chose and why, and how you split the data.
  • Practise SQL window functions and pandas group-bys on a dataset with ties, nulls and duplicates.
  • Work through two case studies aloud: frame the question, list what data you need, pick a first simple approach, then say how you would know it worked.
  • Prepare one project where the result was modest or negative and be ready to talk about it plainly.

Data Scientist interviews: common questions

How is a data scientist interview different from a data analyst interview?

Both use SQL and statistics. A data scientist interview goes further into modeling, evaluation and sometimes prediction, while a data analyst interview focuses more on metrics and reporting. See the data analyst guide for the second.

Do I need deep learning for an entry-level data scientist role?

Usually not. Most early-career interviews focus on statistics, classical models and clean evaluation. If the role is an ML one, the related machine learning engineer page covers more of that ground.

What if I do not know the answer to a statistics question?

Say what you do know, reason from a simple case and state your assumption. Interviewers prefer a candidate who works the problem out loud over one who guesses.

How do I practise this interview?

Run a mock interview for the Data Scientist role and answer out loud. The feedback report scores each answer on the five dimensions above and shows the transcript beside the score.