Only about 2% of data science applicants at top tech companies receive an offer. The gap between those who make it and those who don't usually isn't domain knowledge — it's interview preparation. Most candidates can explain what a p-value is. Far fewer can explain why a low p-value doesn't mean your result matters, or walk through their reasoning live under pressure.
This guide covers the data science interview questions you'll actually face, organized by category, with the answers interviewers are looking for — not just technically correct, but the kind of response that signals you think like a practitioner.
What Data Science Interview Questions Look Like in 2026
Data science interviews have converged on a fairly predictable structure at most companies. Expect four to six rounds covering statistics and probability, SQL and data wrangling, machine learning concepts, coding in Python, a take-home or live case study, and one or two behavioral rounds. Startups compress this; FAANG expands it. Either way, the material overlaps heavily.
The biggest shift in the last two years: interviewers have moved away from trivia-style "define gradient descent" questions toward scenario questions that reveal whether you can apply concepts. "A stakeholder says your model is biased — what do you do?" is now more common than "What is the bias-variance tradeoff?"
Data Science Interview Questions: Statistics and Probability
Statistics questions separate candidates who took a stats course from those who actually use stats. These are the ones that trip people up most often.
Common statistics questions
- What's the difference between Type I and Type II errors, and which is worse? — The correct answer depends on context. Type I is a false positive (rejecting a true null). Type II is a false negative (failing to reject a false null). In medical testing, a Type II error (missing a disease) is usually worse. In spam filtering, a Type I error (blocking legitimate email) might be worse. Interviewers want to hear that framing, not a definition in isolation.
- Explain p-values to a non-technical stakeholder. — A p-value is the probability of seeing your result (or something more extreme) if there were no real effect. It doesn't tell you the probability your hypothesis is true. This distinction matters and interviewers notice when candidates conflate the two.
- You run an A/B test and get p=0.04. The business wants to ship the change. What do you do? — This is a judgment question. Good answers mention checking statistical power before the test, looking at effect size (not just significance), whether the test ran long enough to avoid novelty effects, and whether multiple comparisons inflated the false-positive rate.
- What's the Central Limit Theorem and why does it matter for A/B testing? — The CLT states that sample means approximate a normal distribution as sample size grows, regardless of the underlying distribution. It's why we can use z-tests and t-tests on real-world data that isn't normally distributed.
- When would you use a Bayesian approach instead of frequentist? — When you have meaningful prior information, when sample sizes are small, or when you need to report probability intervals ("there's a 90% chance the true lift is between 2% and 8%") rather than binary reject/fail-to-reject decisions.
Data Science Interview Questions: SQL and Data Manipulation
SQL is non-negotiable. Even roles titled "ML Engineer" or "AI Specialist" include SQL rounds because real data lives in databases and needs cleaning before any model touches it. Expect both write-it-from-scratch problems and read-and-debug problems.
Common SQL interview questions
- Write a query to find the second-highest salary in an employee table. — A classic. Acceptable approaches include
LIMIT 1 OFFSET 1with anORDER BY DESC, usingDENSE_RANK(), or a subquery withMAX(salary) WHERE salary < (SELECT MAX(salary)...). Interviewers often add a follow-up: "What if there are ties?" Use window functions. - What's the difference between
WHEREandHAVING? —WHEREfilters rows before aggregation;HAVINGfilters after. You can't use an aggregate function likeCOUNT()in aWHEREclause. - Explain the difference between
INNER JOIN,LEFT JOIN, andFULL OUTER JOIN. — Most candidates know the definitions. Stand out by discussing when you'd choose each: LEFT JOIN to find records with no match (users with no purchases), FULL OUTER JOIN to identify mismatches in two datasets being reconciled. - Given a table of user events with timestamps, write a query to find users who logged in on two consecutive days. — This requires self-joins or window functions (
LAG/LEAD). Window function approach is cleaner and interviewers at larger companies expect it.
Data Science Interview Questions: Machine Learning
ML questions in data science interviews focus more on intuition and practical application than on mathematical proofs. You should be able to explain models to a product manager, not just implement them.
Common machine learning questions
- Your model performs great on training data but poorly on test data. What's happening, and what do you do? — Overfitting. Solutions: regularization (L1/L2), reducing model complexity, adding training data, dropout (for neural nets), cross-validation to detect it earlier. Mention that you'd look at the learning curves to diagnose the extent.
- How do you handle imbalanced classes (e.g., fraud detection where 99% of transactions are legitimate)? — Several valid approaches: resampling (SMOTE for oversampling, random undersampling), using appropriate metrics (precision-recall, F1, AUC-ROC rather than accuracy), adjusting class weights in the loss function, threshold tuning on the output probability.
- Explain how gradient boosting works. — Trees are built sequentially, each correcting the residual errors of the previous. Strong answer: distinguish this from bagging (Random Forest), mention that XGBoost/LightGBM are implementations, and note where each performs better (boosting tends to win on structured tabular data).
- What metrics would you use to evaluate a regression model vs. a classification model? — Regression: RMSE, MAE, R². Classification: precision, recall, F1, AUC-ROC, log loss. Mention context: if false positives are costly, prioritize precision; if false negatives are costly, prioritize recall.
- A model you built six months ago has started making worse predictions. What might be causing this? — Data drift (the distribution of inputs has shifted) or concept drift (the relationship between inputs and the target has changed). Good answers mention monitoring strategies: tracking prediction distributions over time, setting up alerts on input feature statistics, scheduled retraining pipelines.
Data Science Interview Questions: Python and Coding
Python rounds test whether you can manipulate data programmatically without looking up documentation every five minutes. Pandas, NumPy, and basic algorithmic thinking are the core.
Common Python interview questions
- Given a DataFrame with missing values, describe your approach to handling them. — First understand why they're missing (MCAR, MAR, MNAR). Options: drop rows/columns (if few and random), impute with mean/median/mode, forward/backward fill for time series, model-based imputation, or flag as a separate category for categorical variables. Mention that imputing the target variable is never appropriate.
- Write a function to find all duplicates in a list. — This is a basic algorithmic screen. Optimal: use a dictionary or
Counterfor O(n) time. Sorting first is O(n log n). Interviewers watch whether you think about edge cases (empty list, all duplicates, no duplicates). - How would you merge two DataFrames on multiple keys? —
pd.merge(df1, df2, on=['key1', 'key2'], how='inner'). Expect follow-ups about handling duplicate column names (suffixesparameter) and performance on large datasets.
Behavioral Data Science Interview Questions
Technical skills get you the interview. Behavioral questions determine whether you get the offer. Interviewers are testing communication, stakeholder management, and how you handle ambiguity — the day-to-day reality of data science roles.
- "Tell me about a time your analysis led to a decision you disagreed with." — Shows whether you can influence without authority and accept outcomes gracefully. Describe the situation, what you communicated, and what you'd do differently.
- "How do you explain a complex model to a non-technical executive?" — Focus on analogies, business impact, and limitations. Avoid jargon. Good candidates mention they adapt their explanation to what the decision-maker actually needs to know.
- "Describe a project where your initial approach failed." — Interviewers want intellectual honesty and learning agility. Be specific about what failed, why, and how you pivoted.
Top Courses to Prepare for Data Science Interviews
Knowing what interviewers ask is half the battle. Building the underlying skills to answer confidently takes structured practice. These courses cover the core areas most directly.
Executive Data Science Specialization
A Johns Hopkins specialization that covers the full data science pipeline — framing questions, building teams, communicating results. Particularly useful for behavioral and case-study rounds where you need to show strategic thinking, not just technical execution.
Database Design and Basic SQL in PostgreSQL
SQL is tested in nearly every data science interview. This Coursera course covers both schema design and query writing in PostgreSQL, which maps directly to the JOIN, aggregation, and window function questions you'll face on-screen.
Introduction to Data Analysis using Microsoft Excel
A strong foundation in data analysis concepts — cleaning, summarizing, and visualizing data — that builds the intuition behind what you're later automating with Python and SQL. Useful for candidates coming from non-technical backgrounds who need to close gaps quickly.
Introduction to Data Analytics
IBM's analytics course covers the analytics workflow end-to-end: data collection, wrangling, exploratory analysis, and visualization. Solid preparation for the take-home case study round, where the process you follow matters as much as the output.
Applied Plotting, Charting and Data Representation in Python
Visualization questions appear in interviews more often than candidates expect. This University of Michigan course builds Python-based charting skills and, more importantly, the judgment to choose the right chart for the right insight — which is what interviewers actually test.
COVID-19 Data Analysis Using Python
A practical, project-based course that works through a real dataset using pandas and matplotlib. Excellent for building the applied Python skills — data loading, cleaning, aggregation — that show up in technical screens.
FAQ: Data Science Interview Questions
How many rounds does a typical data science interview have?
Most mid-to-large companies run four to six rounds: an initial screen (30 min, resume + basic concepts), a SQL/Python technical round, a statistics or ML concepts round, a case study or take-home, and one or two behavioral rounds with hiring managers. Startups often compress to two or three rounds. Expect the full suite at companies like Google, Amazon, Meta, Apple, and Microsoft.
What SQL skills do I actually need for data science interviews?
At minimum: SELECT, WHERE, GROUP BY, HAVING, all JOIN types, subqueries, and aggregate functions (COUNT, SUM, AVG, MIN, MAX). For roles at companies with large datasets: window functions (ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD, SUM OVER PARTITION), CTEs, and query optimization basics. FAANG-level roles will test window functions heavily.
Do I need to know deep learning for a data science interview?
Depends on the role. General data scientist roles at non-AI companies focus on classical ML, statistics, and SQL — deep learning rarely comes up. ML engineer and AI specialist roles expect neural network fundamentals: backpropagation, CNNs, RNNs, transformers at a conceptual level. Check the job description for mentions of "deep learning," "NLP," or "computer vision."
How should I practice SQL for data science interviews?
LeetCode's SQL track (sort by difficulty, start Easy, then Medium) covers the patterns that appear most often. Mode Analytics' SQL tutorial is good for window functions specifically. After drilling individual queries, practice on HackerRank's SQL challenges for timed pressure. Aim for 50+ problems before your interview.
What's the most common reason candidates fail data science interviews?
Two patterns dominate: (1) inability to explain their reasoning out loud while coding — interviewers need to follow your thinking, not just see a correct answer appear — and (2) weak statistics fundamentals. Candidates who can code but can't explain why they'd use a Mann-Whitney U test instead of a t-test often get filtered at the statistics round.
How long does it take to prepare for a data science interview?
For candidates with a working knowledge of Python and statistics: six to eight weeks of focused preparation covering SQL (daily practice), ML review, and mock interviews is typical. For career switchers building from scratch, a structured course sequence followed by two to three months of interview-specific practice is more realistic.
Bottom Line
The data science interview questions that matter most in 2026 are the applied ones: scenario-based statistics, SQL window functions, ML troubleshooting, and behavioral questions about how you work with stakeholders. Pure trivia is mostly gone from serious interview loops.
The clearest path to preparation: close your SQL gaps first (it's the most consistent filter across companies), then work through ML fundamentals with emphasis on the intuition behind each method, not just the mechanics. If you have a case study round coming up, the Introduction to Data Analytics course gives you a repeatable framework for structuring your analysis under time pressure.
Practice explaining your reasoning out loud — even when working through problems alone. That habit is what separates candidates who know the answers from candidates who get the offer.