Data Scientist Interview Questions & Answers
40 questions for Data Scientist interviews — 4 easy, 33 medium, 3 hard.
About the Data Scientist role
A data scientist turns business questions into data analysis and predictive models, from pulling data with SQL to building, validating and explaining models. Interviews test Python and SQL coding, statistics and experiment design, core machine learning, and case studies where you frame a problem, pick metrics and communicate results to non-technical stakeholders. Expect a take-home or live coding round plus a project deep dive.
After joining orders with a promotions table, total revenue doubled. What went wrong?
Show answer
What is a confidence interval?
Show answer
What is regularization? Explain L1 vs L2.
Show answer
Explain the basic idea of an ARIMA model.
Show answer
Write Pandas code to read a large CSV in chunks and compute total sales per city.
Show answer
A key metric dropped 8 percent week over week. How do you check whether it is real?
Show answer
You want to test a new pricing algorithm in a two-sided marketplace where buyers and sellers interact. Why is user-level randomisation a problem and what would you do?
Show answer
What is the Global Interpreter Lock (GIL)?
Show answer
How does linear regression work and what are its assumptions?
Show answer
Pandas: compute a 7-day rolling average of daily sales for each store.
Show answer
What is the Central Limit Theorem?
Show answer
What is the difference between a Pandas Series and a DataFrame?
Show answer
L1 vs L2 regularisation?
Show answer
How do you handle missing values?
Show answer
Tell me about a time you had to deliver data under an urgent deadline.
Show answer
What is the difference between semantic, instance and panoptic segmentation?
Show answer
Describe a production incident with a model and how you handled it.
Show answer
What is the difference between hard voting and soft voting in ensembles?
Show answer
What is statistical power and how can you increase it?
Show answer
What is standard deviation and what does it tell you?
Show answer
What is the difference between a star schema and a snowflake schema?
Show answer
How do you evaluate clustering when you have no labels?
Show answer
You assign values to a filtered DataFrame and Pandas shows a SettingWithCopyWarning. What is going on and how do you fix it?
Show answer
The business asks you to pick a decision threshold for a churn model. How do you choose it?
Show answer
Your credit model has good overall AUC but performs much worse for applicants from one region. What do you do?
Show answer
What is the difference between a subquery and a correlated subquery?
Show answer
Tell me about a time you disagreed with a stakeholder about which metric to optimise.
Show answer
Tell me about a time your model did not perform as expected after deployment.
Show answer
What is DBSCAN and when is it better than K-means?
Show answer
What is Naive Bayes and why is it called naive?
Show answer
What is bootstrapping in statistics?
Show answer
Your sales forecast scores well in k-fold cross-validation but fails in production. What could be wrong with the validation?
Show answer
Difference between a shallow copy and a deep copy?
Show answer
Write scikit-learn code to get precision, recall and a confusion matrix at a custom threshold of 0.3.
Show answer
How does a decision tree decide where to split?
Show answer
What are decorators in Python?
Show answer
How do you pivot data in Pandas?
Show answer
Pandas: convert wide monthly columns into a long format table.
Show answer
What is SVM and the kernel trick?
Show answer
Frequently asked questions
What does a Data Scientist do?
A data scientist turns business questions into data analysis and predictive models, from pulling data with SQL to building, validating and explaining models. Interviews test Python and SQL coding, statistics and experiment design, core machine learning, and case studies where you frame a problem, pick metrics and communicate results to non-technical stakeholders. Expect a take-home or live coding round plus a project deep dive.
Which skills are tested in a Data Scientist interview?
Expect questions on Python and Pandas, SQL with window functions, Hypothesis testing and A/B tests, Supervised machine learning, Stakeholder communication. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Data Scientist interview?
Revise Python for Data Science, Statistics and Probability, Machine Learning, SQL for Data Science first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.