Interview questions

Data Scientist Interview Questions & Answers

Fifteen questions a hiring manager actually asks a Data Scientist — scoring and behavioral — each with why they ask it and a strong, specific sample answer. Plus how to prepare, the red flags that sink candidates, and the questions to ask back.

By Renata Solberg, Director of Interview Coaching · Updated June 27, 2026 · ~12 min read

Short version: A data scientist interview tests five things — scoring judgment (do you pick the right model, metric, and validation, not just the trendiest one), statistical rigor (experiment design, significance, sampling), coding and SQL (can you actually wrangle and query data), product sense (do you connect a model to a business decision), and communication (can you explain a result to a PM who doesn't know what AUC means). Expect a recruiter screen, a technical/ML round, a SQL or coding exercise, a take-home or case, and a behavioral panel. Below are 15 real questions with sample answers — and if you'd rather have a strategist run mock interviews with you, that's exactly what our Executive interview prep does.

What a data scientist interview tests & how the rounds work

A data scientist interview is not a quiz on whether you can name the latest model architecture — it's a test of whether you'd make sound calls with real, messy data and limited time. Interviewers probe five things, and nearly every question maps to one: scoring judgment, meaning you choose the model, the evaluation metric, and the validation scheme that fit the problem rather than reaching for the most complex option; statistical rigor, because a data scientist who misreads an A/B test or ignores sampling bias ships confident nonsense; coding and SQL fluency, since most of the job is getting and shaping data before any modeling happens; product sense, because a model nobody can act on is wasted work; and communication, because you'll spend more time explaining results to non-technical partners than training models.

The process usually runs in four or five stages, lighter at a startup and longer at a large tech company:

  • Recruiter or HR screen (25–30 min). Motivation, background, the kinds of problems you've modeled, and a gut-check that the projects on your résumé are genuinely yours — high on fit, light on technical depth.
  • Technical / ML round. Live questions on model evaluation, overfitting, the bias-variance tradeoff, regularization, and how you'd frame a vague problem as a modeling task. They want to hear the reasoning, not memorized definitions.
  • SQL & coding exercise. Joins, window functions, and aggregations in SQL, plus Python — usually pandas data manipulation and sometimes an algorithm or a from-scratch metric. They watch whether you sanity-check your output.
  • Take-home or case study (often). A dataset to explore and model, or a business case like "how would you build a churn model," judged on framing, validation, and whether you tie it back to a decision — not just the score.
  • Behavioral / hiring-manager panel. STAR questions on ambiguous problems, a model that failed, influencing without authority, and explaining a finding to a non-technical stakeholder — usually with the manager or a partner PM.

The questions below are grouped the way they're tested: scoring and technical first, then behavioral. For the behavioral ones, use the STAR method — Situation, Task, Action, Result — so you tell a tight, specific story instead of speaking in generalities.

Machine-learning & technical questions

Model evaluation

1. How do you evaluate a classification model, and why is accuracy often the wrong metric?

Why they ask: The most revealing ML question there is. They want to know you pick a metric from the business cost of errors, not by habit — and that you understand the confusion matrix cold.

"I start by asking what error costs the business, because the metric has to match the decision the model drives. Accuracy is misleading whenever classes are imbalanced or the two error types cost differently — if one percent of transactions are fraud, a model that predicts 'never fraud' scores 99% accuracy and is useless. So I reason about the confusion matrix directly: precision is how many of my positive predictions were right; recall is how many of the real positives I caught. For fraud or disease screening I weight recall because a miss is expensive; for flagging accounts for human review I weight precision because false alarms burn someone's time. I use F1 for a single balanced number and PR-AUC over ROC-AUC when positives are rare. Then I pick the operating threshold deliberately off the precision-recall curve — the threshold is a business decision, not a default 0.5."

Core ML theory

2. Explain the bias-variance tradeoff and how you diagnose where a model sits on it.

Why they ask: It's the concept that underlies every model-tuning decision. They want to see you connect theory to a concrete diagnostic, not recite a textbook line.

"Bias is error from a model too simple to capture the pattern — it underfits, wrong on both training and test. Variance is error from a model so flexible it memorizes noise — it overfits, great on training and poor on holdout. They trade off, so the goal is the sweet spot. I diagnose it by comparing training versus validation error: both high and close means high bias, so I add features, reduce regularization, or use a more expressive model; low training but high validation means high variance, so I add data, add regularization, or simplify. I'll plot a learning curve — error versus training-set size — because it tells me whether more data will even help before I go collect it. That one plot has saved me from gathering data that wouldn't have moved the metric."

Overfitting

3. How do you detect and prevent overfitting?

Why they ask: Overfitting is the most common way a model that "works" in a notebook fails in the real world. They want a layered, practical answer — and to see if you mention leakage.

"I detect it when validation lags training by a real margin, or when performance drops on a later time period. Prevention is layered: an honest split with cross-validation (a time-based split for temporal data so I never train on the future); regularization — L1/L2, dropout, tree depth and min-samples limits; more or cleaner data; early stopping; and feature discipline. The subtlest killer is target leakage — a feature that secretly encodes the answer, like a 'refund_issued' flag used to predict refunds. Before I trust any strong result, I audit every feature for whether it would actually be available at prediction time. A result that looks too good usually is, and leakage is the first thing I check."

Experiment design

4. Walk me through how you'd design an A/B test to evaluate a new recommendation model.

Why they ask: Shipping a model means proving it helps. They want rigor — power, randomization, guardrails, and the discipline not to peek.

"I start from the decision: what metric must move to ship, and the smallest effect worth detecting. That plus the baseline and variance drives a power calculation for sample size and duration. I define one primary metric — say revenue per session — plus guardrails like latency and unsubscribe rate so a 'win' that hurts the experience gets caught. I randomize at the user level, not session, to avoid contamination, and check the groups are balanced. I run the full pre-committed duration to avoid peeking bias, which inflates false positives if you stop the second you see significance. Then I judge on both statistical and practical significance — a 0.1% lift that's significant on ten million users may not be worth the engineering — and check the effect holds across key segments before recommending we ship."

Statistics

5. What is a p-value, and what does a 95% confidence interval actually mean?

Why they ask: A fast filter. Many candidates use these terms daily and still define them wrong — the precise definition signals real statistical literacy.

"A p-value is the probability of observing data at least as extreme as what we saw if the null hypothesis were true. It is not the probability the null is true, and not the probability our result happened by chance — that misreading causes a lot of bad calls. A small p-value means the data would be surprising under the null, so we reject it. A 95% confidence interval means that if we repeated the experiment many times and built an interval each time, about 95% of those intervals would contain the true parameter — it's a statement about the procedure, not a 95% probability the truth is in this one interval. In practice I pair significance with effect size and the interval's width, because a 'significant' result with a huge interval isn't something I'd bet a roadmap on."

Algorithms

6. When would you choose a tree-based model over logistic regression, and what are the tradeoffs?

Why they ask: Model selection judgment. They want to hear you weigh accuracy, interpretability, and the data's shape — not just say "gradient boosting always wins."

"For most structured, tabular problems I reach for a gradient-boosted tree like XGBoost or LightGBM: it captures non-linearities and feature interactions automatically, handles mixed feature types, is robust to monotonic transforms and outliers, and usually wins on raw accuracy. I choose logistic regression when I need a transparent, well-calibrated model I can explain coefficient by coefficient — regulated settings like credit or healthcare — or when data is scarce and a simple linear model generalizes better. The tradeoffs: trees can overfit without depth and regularization tuning, are heavier to serve, and are harder to explain (so I'd lean on SHAP values); logistic regression needs me to engineer interactions and non-linearity by hand. I match the choice to whether the priority is squeezing out accuracy or defending every prediction."

Feature engineering

7. How do you approach feature engineering, and how do you handle missing data?

Why they ask: Features usually beat fancier models. They want to see disciplined, leakage-aware thinking — and that you treat missingness as signal, not noise to silently fill.

"Feature engineering is where most of the lift comes from, so I start from domain understanding rather than throwing transforms at the wall — for churn, things like recency, frequency, trend in usage, and support-ticket counts. I encode categoricals sensibly (one-hot for low cardinality, target or frequency encoding for high, fit on the training fold only to avoid leakage), scale where the model needs it, and create ratios and time-windowed aggregates. For missing data, I first ask why it's missing, because missingness is often informative — I'll add a 'was_missing' indicator and then impute (median for skewed numerics, a separate category for categoricals), or use a model like a gradient-boosted tree that handles missing natively. I always fit imputers on training data only and apply them to validation, never the reverse, or I've leaked."

Imbalanced data

8. How do you handle a severely imbalanced dataset?

Why they ask: Fraud, churn, and anomaly detection are all rare-event problems. They want to hear you fix the metric and the data without leaking.

"First I refuse to optimize accuracy and switch to precision, recall, F1, and PR-AUC, setting the threshold from the precision-recall curve by error cost. Then I address imbalance at two levels. On data: oversample the minority (often SMOTE to synthesize plausible examples) or undersample the majority — applied only to the training fold so I don't leak into validation. On the algorithm: class weights so the loss penalizes minority errors more, which most libraries support directly. Critically, I evaluate on the original, untouched distribution, never the rebalanced set, because I care about the real world. And I keep asking whether the rare class is even predictable from my features — sometimes the honest answer is I need better signal, not a cleverer sampler."

Productionizing ML

9. Once a model is trained, how do you get it into production and keep it healthy?

Why they ask: A model in a notebook delivers zero value. Senior data scientists own the path to production and the monitoring after — and this question separates them from the rest.

"Getting it live means packaging the model behind a prediction service or batch job and, crucially, making sure the features are computed identically in training and serving — training-serving skew is one of the most common production failures. I shadow-deploy or A/B the model before it drives real decisions. Then I treat monitoring as part of the deliverable: I watch input drift (are the live feature distributions shifting from training), prediction drift, and the actual business metric, with alerts so degradation pages us instead of surfacing as a stakeholder complaint. I plan for retraining on a cadence or trigger, version models and data so I can roll back, and keep a clear baseline to compare against. A model isn't done when the notebook looks good — it's done when it holds up on live data I'm watching."

Causal reasoning

10. A stakeholder says "users who use feature X churn less, so let's push everyone to feature X." What's your response?

Why they ask: The correlation-versus-causation trap, dressed as a business request. They want to see you push back constructively and propose how to actually find out.

"I'd agree the correlation is interesting and then gently separate it from causation, because acting on the wrong one wastes a quarter. The likely confounder is engagement: highly engaged users both adopt feature X and churn less, so X may be a marker of engagement rather than a cause of retention. Pushing X on disengaged users might do nothing. To actually test it I'd propose a randomized experiment — encourage a random subset to use X and measure the causal effect on churn. If an experiment isn't feasible, I'd use a quasi-experimental approach like matching on engagement and other covariates, or an instrumental-variable angle, while being honest about the assumptions. The framing I bring is: a correlation tells us where to look; only a controlled comparison tells us whether to act."

Behavioral questions (use STAR)

For each of these, structure your story as Situation → Task → Action → Result. Keep the Situation short, spend most of your words on the Action, and always land a concrete, ideally quantified Result. For more depth see our guide to behavioral interview questions.

Behavioral · Rigor

11. Tell me about a time a model performed well in development but failed in production.

Why they ask: Almost every real data scientist has lived this. They want to hear you diagnose root cause — skew, drift, leakage — and build a safeguard, not just patch it.

S/T: "On a churn model my offline AUC was strong, but live the precision on flagged accounts was far below what validation promised, and I had to fix it before the retention team abandoned the scores. A: I traced it to two causes — training-serving skew, where one feature was computed differently in the offline pipeline than the live feature service, and population drift, since the training data predated a product change. I aligned the feature computation behind one shared transformation library, retrained on recent data, and added monitoring on input and prediction distributions so drift would page us. R: Production precision came back in line with validation, and the monitoring caught the next drift weeks before it would have mattered. My takeaway: a model is done when it holds up on live data you're watching, not when the notebook looks good."

Behavioral · Ambiguity

12. Describe a time you turned a vague business question into a concrete data science problem.

Why they ask: Real problems arrive as "can we reduce churn?" not as a labeled dataset. They want to see you scope, define a target, and align before modeling.

S/T: "Leadership asked me to 'help us reduce churn' with no definition of churn, target, or success metric. A: I started by defining churn precisely with the product team — 30 days of zero core activity for our usage-based product — then framed it as a supervised problem: predict which active users will churn in the next 30 days so the retention team can intervene. I clarified the action the model would drive (a targeted outreach list), which set the metric — precision at the top of the ranked list, since the team could only contact so many people. I built a baseline first, validated on a time-based split, and reviewed early results with stakeholders before investing further. R: The scoped model gave the team a weekly ranked list, and the intervention on the top decile measurably reduced churn in that segment — because we'd agreed on the question before I trained anything."

Behavioral · Communication

13. Tell me about a time you had to explain a technical result to a non-technical stakeholder.

Why they ask: Influence depends on translation. A brilliant analysis nobody acts on is wasted, and they need to know you can make a result land for a PM or an exec.

S/T: "I'd built a model and a PM wanted to ship it everywhere based on the headline number, but the model was only reliable for a specific segment. A: Instead of talking about AUC and precision, I reframed it in his terms: 'For new users, this is a confident, accurate prediction we can act on; for long-tenured users, it's barely better than a coin flip, so acting on those scores would waste outreach.' I showed a simple chart of accuracy by segment rather than a metrics table, and proposed we launch to the segment where it worked and keep improving the rest. R: He understood the limitation immediately, we shipped to the reliable segment, avoided wasting budget on bad predictions, and he started looping me in earlier on roadmap calls because the analysis was decision-ready, not just technically correct."

Behavioral · Influence

14. Tell me about a time your analysis contradicted what leadership wanted to hear.

Why they ask: The integrity test. They want someone who delivers the inconvenient truth with evidence and tact, rather than bending the analysis to fit the expected answer.

S/T: "Leadership was set on launching a feature they were sure would lift engagement, and my analysis of the experiment showed no significant effect — and a small negative hit to a guardrail metric. A: I didn't soften the result, but I led with the evidence and the limits of certainty: I showed the confidence interval spanning zero, confirmed the test had enough power to detect the effect they expected, and ruled out a bug with an A/A check so the null result couldn't be dismissed. Then I made it constructive — I segmented the data and found one sub-group where it did help, and proposed a scoped relaunch there. R: Rather than a costly full rollout that wouldn't have moved the metric, we shipped to the segment that benefited, and leadership trusted the next read more because I'd been straight with them on this one."

Behavioral · Motivation

15. Why data science — and why this role specifically?

Why they ask: Fit and genuine interest. A specific, researched answer beats "I love working with data," and signals you understand what this team actually does.

"I like that data science is where messy reality gets turned into a decision — the satisfying part isn't the model, it's watching a ranked list or an experiment readout actually change what a team does. I'm drawn to this role specifically because you're solving a recommendation problem at real scale, which means the work is end-to-end: framing the problem, building the model, running the experiment, and owning it in production rather than handing off a notebook. I also noticed you've invested in a proper feature platform and experimentation tooling, which tells me rigor is valued here and I'd spend my time on modeling and impact rather than fighting infrastructure. That's the environment where I do my best work."

Pattern to notice: every strong answer above does the same thing — it shows command of the technique and the judgment behind it, ties the choice to a business decision, and refuses to trust a result without checking for leakage, drift, or confounding. Interviewers reward the data scientist who picks the right metric and validates honestly, not the one who name-drops the most algorithms.

How to prepare for a data scientist interview

Preparation for a data scientist interview is concrete and rehearsable. Don't just re-read theory — practice reasoning out loud, and have both your projects and your code ready.

  • Make the ML fundamentals automatic. Be able to explain model evaluation and the confusion matrix, the bias-variance tradeoff, overfitting and regularization, cross-validation, and leakage without hesitating. These come up in nearly every loop.
  • Drill SQL and pandas. Joins, window functions, aggregations, and dedup in SQL; group-bys, merges, and reshaping in pandas. Many loops include a timed exercise, and fumbling a join undercuts everything else.
  • Prepare 5–6 STAR stories. Cover an ambiguous problem you scoped, a model that failed in production, a result you explained to a non-technical partner, a time your analysis contradicted leadership, and an experiment you designed. One strong, quantified story can flex across several questions.
  • Know your own projects cold. Be ready to defend every modeling choice — why that model, that metric, that validation split — and to explain any number you quantified. "How did you know it wasn't leakage?" is a question you should welcome.
  • Rehearse experiment design out loud. Power, randomization unit, primary metric versus guardrails, peeking bias, and practical versus statistical significance. A/B reasoning shows up in almost every product-facing data science role.
  • Research the company's data problems. Know whether they're a recommendations, fraud, forecasting, or experimentation shop, and tailor your examples to that. Mentioning their likely metric and constraints is a strong signal.
  • Do at least one full mock interview. Saying answers in your head isn't the same as defending a threshold choice or a validation split to someone who pushes back. A live run surfaces the gaps — which is exactly what Marqee's Executive strategists do before your real interviews.

Common mistakes & red flags

Optimizing accuracy on imbalanced data. Defaulting to accuracy when fraud or churn is rare signals you haven't internalized that the metric must match the cost of errors. Reach for precision, recall, and PR-AUC.
Ignoring data leakage. Reporting a suspiciously strong result without checking whether a feature would actually exist at prediction time is the fastest way to lose a senior interviewer's trust. Audit your features.
Reaching for the fanciest model. Proposing deep learning for a small tabular dataset where a regularized gradient-boosted tree wins shows poor judgment. Match the model to the problem, not to the hype.
Confusing correlation with causation. Recommending a business action off an observational correlation, with no nod to confounders or experiments, is disqualifying for a role meant to inform decisions.
Misdefining a p-value or confidence interval. Saying a p-value is "the probability the result is due to chance" tells an interviewer your stats are shaky. Get the precise definitions right.
Stopping at the model. Treating the job as done when the notebook scores well — with no answer on serving, skew, or monitoring — reads as junior. Own the path to production.

Smart questions to ask the interviewer

Asking nothing is a red flag; asking sharp, role-specific questions signals seniority and helps you screen the team. Pick a few that fit the round, and lean on our full guide to questions to ask the interviewer.

  • What does the path from a trained model to production look like here — is there a feature platform and experimentation tooling, or does that fall on the data scientist?
  • How are data science projects scoped and prioritized, and how often does work get killed because the data doesn't support it?
  • What's the split between modeling, analysis, and stakeholder work in a typical month for this role?
  • How do you measure the impact of a model once it's live — and what happens when one underperforms in production?
  • How is this role's success measured in the first six months, and what would I likely own end to end versus support?
  • Where does the team feel the most pain right now — data quality, experiment velocity, deployment, or stakeholder alignment?

Don't walk in cold — have a strategist run mock interviews with you.

Reading sample answers is a start. Our Executive-tier strategists run full mock interviews tailored to your target data science roles, pressure-test your modeling, metric, and experiment-design answers, and prep you for your real ones — so you show up rehearsed, not rattled.

See Executive interview prep →How Marqee works

Frequently asked questions

A mix: scoring questions on model evaluation and metrics, overfitting and regularization, the bias-variance tradeoff, feature engineering, imbalanced data, and getting models into production; statistics on experiment design, p-values, and confidence intervals; a SQL and Python/pandas coding exercise; often a take-home or case study; and behavioral STAR questions about ambiguous problems, a model that failed, explaining results to non-technical partners, and delivering an inconvenient finding to leadership.

Machine-learning judgment — choosing the right model, evaluation metric, and validation scheme, and spotting leakage; statistics and experiment design — power, randomization, significance, and reading an A/B test correctly; and coding — SQL joins, window functions, and aggregations plus Python and pandas data manipulation. Many loops also probe product sense (connecting a model to a business decision) and how you'd ship and monitor a model in production.

A data analyst interview leans on SQL, dashboards, A/B test reading, and clear communication of findings. A data scientist interview goes deeper into modeling — model selection and evaluation, overfitting and the bias-variance tradeoff, feature engineering, imbalanced data, and putting models into production — plus more statistical rigor on experiment design. If you're prepping for the analyst version, see our data analyst interview questions.

Yes. Interview prep is part of our Executive-tier Career Concierge: a strategist runs full mock interviews tailored to your target data science roles, pressure-tests your modeling, metric, and experiment-design answers, and preps you for the specific companies you're facing. These free Q&A guides are the self-serve start; the done-for-you version is a real person rehearsing with you. See interview prep or our general interview questions guide.

Have a strategist prep you for the real thing

Sample answers get you thinking. They don't rehearse you, push back when you fumble a validation split or a threshold choice, or tailor your prep to the exact company and panel you're facing — and they don't get you the interview in the first place. That's where Marqee comes in. We're a Career Concierge: a real person runs your search, tailors your résumé to each data scientist posting, reaches the hiring manager directly, and finds a referral inside the company so you skip the pile. And at the Executive tier, your strategist runs full mock interviews and preps you for your real ones, so you walk in rehearsed.

Free guides first — then put a human in your corner.

Use these Q&A guides to prep yourself, or let an Executive strategist run mock interviews and manage your whole search end to end.

Get Executive interview prep →See how Marqee works

Keep exploring