Curated Question Bank

Data Scientist Interview Questions (2026)

Data scientist interviews span a wide surface: probability and statistics, machine learning fundamentals, SQL and data manipulation, a product/analytics case study, and behavioral questions. The exact mix depends on whether the role leans toward analytics, ML engineering, or research, so clarifying the role's focus early is itself a good signal.

For the questions below, interviewers care about rigor and communication. Can you reason about a statistical concept precisely, choose the right model for a problem and justify it, write correct SQL, and translate an ambiguous business question into a measurable analysis? Stating assumptions and explaining trade-offs matters as much as the final number.

Practice explaining technical concepts simply, as if to a non-technical stakeholder. Much of the job — and much of the interview — is making a sound analysis legible to people who will act on it.

The Haggle Real-Time Advantage

During a live data science interview, Haggle transcribes the question and can surface the definition, formula, or SQL pattern you need in real time, on your device — useful when nerves make a familiar concept momentarily slip.

Core Technical & Behavioral Questions

1

Explain the bias-variance trade-off.

Recommended Answer Framework

Define both error sources, then connect to model complexity: simple models underfit (high bias), complex models overfit (high variance). Tie to concrete levers — regularization, more data, cross-validation — and total error decomposition.

2

What is p-value, and what does it not tell you?

Recommended Answer Framework

Define it as P(data this extreme | null true). The 'not' is key: it is not the probability the hypothesis is true, and significance ≠ practical importance. Mentioning common misinterpretations is the signal.

3

How would you handle an imbalanced classification dataset?

Recommended Answer Framework

Start with the metric (accuracy is misleading; use precision/recall, F1, AUC-PR). Then techniques: resampling (SMOTE, undersampling), class weights, threshold tuning. Stress evaluating on the real distribution.

4

When would you use random forest vs gradient boosting?

Recommended Answer Framework

Contrast bagging (parallel, variance reduction, robust to overfitting) with boosting (sequential, bias reduction, higher accuracy but more tuning-sensitive). Mention training cost and interpretability trade-offs.

5

Write a SQL query to find the second-highest salary per department.

Recommended Answer Framework

Use a window function: DENSE_RANK() OVER (PARTITION BY dept ORDER BY salary DESC), filter rank = 2. Discuss the tie-handling difference between RANK, DENSE_RANK, and ROW_NUMBER.

6

How do you detect and handle outliers?

Recommended Answer Framework

Distinguish data errors from genuine extremes. Methods: IQR, z-score, domain thresholds, visualization. The judgment call to verbalize — removing real signal can bias the model; investigate before deleting.

7

Design an A/B test for a new recommendation algorithm.

Recommended Answer Framework

Define hypothesis, primary metric, and guardrails. Compute sample size from MDE and power. Address randomization unit, novelty effects, and when to stop. Pre-register the success criterion.

8

Explain how you'd evaluate a model that's performing well offline but poorly in production.

Recommended Answer Framework

Investigate distribution shift, train/serve skew, leakage in offline data, and feedback loops. Propose monitoring and a shadow deployment. The systems thinking is what's being tested.

9

What's the difference between L1 and L2 regularization?

Recommended Answer Framework

L1 (Lasso) induces sparsity and does feature selection; L2 (Ridge) shrinks coefficients smoothly. Explain geometrically why L1's corners zero out weights, and when each is preferable.

10

Tell me about a time your analysis changed a business decision.

Recommended Answer Framework

STAR. Show the question, your method, and crucially the communication that drove action. Quantify the outcome. Data scientists who can't influence decisions don't get hired.

Ready to Take Control of Every High-Stakes Conversation?

Download Haggle for your desktop today. Run 100% offline via local Ollama models or connect your private BYOK API keys with zero latency.