Data science interview questions test five core areas: statistics and probability, SQL and data wrangling, machine learning concepts, Python or R coding, and business case analysis. Most interview loops at Indian tech companies run three to five rounds. Preparing round by round — statistics first, then SQL, then ML theory, then business cases — is the fastest path to an offer.
Data science interview questions typically span five areas: statistics and probability, SQL and data wrangling, machine learning concepts, coding in Python or R, and business or product case studies. Most interview loops at Indian tech companies like Flipkart, Swiggy, and Meesho, or at global firms hiring in Bengaluru and Hyderabad, run three to five rounds. Knowing which questions land in which round is the fastest way to prepare without wasting time on the wrong topics.
- Statistics first: p-values, hypothesis testing, and probability distributions appear in nearly every first-round screen.
- SQL is non-negotiable: even senior roles test window functions and multi-table joins; expect at least one live coding question.
- ML theory beats ML code in most interviews; interviewers care more about when to use a model than how to implement it from scratch.
- Business cases separate average from strong candidates; practise framing a metric, not just solving a puzzle.
- According to LinkedIn’s 2024 Jobs on the Rise report, data-related roles ranked among the top ten fastest-growing jobs in India, so competition is real and preparation depth matters.
Statistics and Probability Questions
Statistics questions almost always open a data science interview. Interviewers use them as a filter because weak statistical intuition predicts weak modelling decisions downstream. The good news is that the same ten or so concepts appear repeatedly across data science interview questions at every level.
Data Science Interview Questions on Hypothesis Testing and p-Values
What is a p-value, and what does it tell you? A p-value is the probability of observing your data, or something more extreme, assuming the null hypothesis is true. It does not tell you the probability that the null hypothesis is true. Candidates who confuse these two statements get flagged immediately.
Explain Type I and Type II errors with a real example. A Type I error is a false positive. In a fraud detection system, it means flagging a legitimate transaction as fraud. A Type II error is a false negative, meaning real fraud slips through. Which error costs more depends entirely on business context, and saying so shows maturity.
What is the Central Limit Theorem and why does it matter? The CLT states that the sampling distribution of the mean approaches a normal distribution as sample size grows, regardless of the population’s original distribution. This underpins A/B testing, confidence intervals, and most parametric tests used in product analytics.
If you want a deeper grounding in hypothesis framing before your interview, the 3.0 University guide on formulation of hypothesis walks through null and alternative hypotheses step by step.
Probability Questions That Trip Candidates Up
Interviewers at product companies like PhonePe or Razorpay often ask conditional probability questions disguised as business problems. “Given that a user opened the app, what is the probability they made a purchase?” is really a Bayes’ theorem question.
The formula is: P(A|B) = P(B|A) x P(A) / P(B). Write it out, plug in numbers from the question, and explain each term as you go. Interviewers reward clear verbal reasoning far more than a silent rush to an answer.
| Concept | Estimated Frequency in Interviews | What Interviewers Test | Common Mistake |
|---|---|---|---|
| p-value | ~90% of first-round screens (Naukri JobSpeak 2023) | Correct interpretation, not just definition | Saying it is the probability the null is true |
| Confidence Interval | ~75% of statistics rounds | What “95% confident” actually means | Saying there is a 95% chance the true value is in the interval |
| Normal Distribution | ~70% of statistics rounds | When to assume it and when not to | Assuming all data is normal by default |
| Bayes’ Theorem | ~60% of product company interviews | Applying it to a realistic scenario | Mixing up P(A|B) and P(B|A) |
| CLT | ~65% of analytics and data science rounds | Why it enables A/B testing | Thinking CLT applies to individual observations |
SQL and Data Wrangling Questions
SQL is tested in virtually every data science interview in India. A 2023 Naukri JobSpeak analysis found SQL listed as a required skill in over 68% of data science job postings on the platform. Skipping SQL prep is simply not an option.
SQL Data Science Interview Questions That Appear Most Often
Write a query to find the second-highest salary from an employee table. The cleanest answer uses a window function:
SELECT salary FROM (SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) AS rnk FROM employees) ranked WHERE rnk = 2;
Many candidates use a subquery with MAX and NOT IN, which works but breaks on ties. Using DENSE_RANK shows you understand edge cases, and interviewers notice that.
Explain the difference between INNER JOIN, LEFT JOIN, and FULL OUTER JOIN. An INNER JOIN returns only rows that match in both tables. A LEFT JOIN returns all rows from the left table and matching rows from the right, filling NULLs where there is no match. FULL OUTER JOIN returns everything from both tables. In a product analytics context, LEFT JOINs are the most common because you always want all users even if they have no events yet.
Window Functions: The SQL Skill That Separates Data Science Candidates
Window functions, specifically ROW_NUMBER, RANK, DENSE_RANK, LAG, and LEAD, appear in mid-to-senior level data science interview questions regularly. A typical question: “For each user, find the time between their first and second purchase.” You would use LAG() partitioned by user_id, ordered by purchase_date.
Practise these on real datasets. HackerRank and Mode Analytics both have free SQL environments with realistic tables. If you are also preparing for analyst roles, the 3.0 University data analyst interview questions guide covers SQL in an analytics-specific context worth reading alongside this one.
Python and Pandas Data Wrangling Interview Questions
You will often get a short Pandas task: “Given a DataFrame of transactions, compute the 7-day rolling average revenue per user.” The interviewer is not checking if you memorise syntax. They are watching whether you think about groupby before rolling, whether you handle NaN values, and whether you can explain your logic out loud.
A practical tip from real hiring loops: always ask if the data is sorted before applying a rolling window. Unsorted data gives wrong results silently, and catching that earns you points.
Machine Learning Interview Questions for Data Scientists
ML rounds at most Indian product and consulting firms focus on conceptual depth, not from-scratch implementation. You are expected to know when to use which algorithm, how to evaluate it, and what can go wrong in production. Topics like overfitting vs underfitting, the bias-variance tradeoff, feature engineering, cross-validation, and dimensionality reduction with PCA appear consistently across data science interview questions at mid and senior levels.
Regression and Classification Fundamentals
What is the difference between L1 and L2 regularisation? L1 (Lasso) adds the absolute value of coefficients to the loss function and can shrink some coefficients to exactly zero, effectively doing feature selection. L2 (Ridge) adds the square of coefficients and shrinks them toward zero but rarely to exactly zero. Use Lasso when you suspect many features are irrelevant; use Ridge when most features contribute something.
How do you handle class imbalance? This comes up constantly in Indian fintech and healthcare interviews. Useful answers include: oversampling the minority class with SMOTE, undersampling the majority, adjusting class weights in the model, or choosing precision-recall AUC over standard accuracy as your evaluation metric. Always tie the answer back to what false positives and false negatives cost the business.
Bias-Variance Tradeoff and Overfitting Questions
Interviewers frequently ask: “How do you know if your model is overfitting?” A strong answer covers the gap between training and validation accuracy, the role of cross-validation in detecting overfitting, and regularisation or early stopping as remedies. Mentioning that you would use k-fold cross-validation rather than a single train-test split signals real-world experience.
Model Evaluation Questions
When would you choose AUC-ROC over F1 score? AUC-ROC is better when you want to evaluate model performance across all classification thresholds. F1 is better when you care about a specific threshold, especially with imbalanced classes. Neither is universally better; the right answer depends on the deployment context.
According to a 2024 Glassdoor India analysis of data scientist interview experiences, model evaluation and feature engineering questions appeared in over 70% of reported interview rounds at top-tier tech companies. Knowing the “why” behind each metric is what gets you past this stage.
If you are still deciding whether a data scientist or data analyst path fits you better, the comparison at data analyst vs data scientist on 3.0 University is worth ten minutes of your time before you finalise your prep plan.
Common ML Mistakes Interviewers Watch For
- Leaking test data into training by scaling before splitting the dataset
- Evaluating a fraud model on accuracy alone when 99% of transactions are legitimate
- Choosing a complex neural network for a small, structured dataset when a gradient boosted tree would outperform it
- Failing to mention cross-validation when asked how you would evaluate a model
- Confusing dimensionality reduction (PCA) with feature selection when explaining how to handle high-dimensional data
Business Case and Product Questions
Business case questions are where technically strong candidates lose offers. These questions test whether you can connect data to decisions, not just run analyses in isolation. They are among the most important data science interview questions to practise out loud.
How to Structure a Business Case Answer
A reliable framework: clarify the goal, define the metric, identify the data sources, propose the analysis, state the expected output, and flag assumptions or risks. Interviewers at companies like Zomato or HDFC Bank are not looking for a perfect answer. They are watching whether you think in a structured, communicable way.
A sample question: “Daily active users dropped 15% last Tuesday. Walk me through how you would investigate this.” A strong answer checks for data pipeline issues first (is the drop real?), then segments by platform, geography, and user cohort, then looks at external events like a server outage or a competitor promotion, before forming a hypothesis and proposing a fix.
A/B Testing Questions in Business Rounds
A/B testing questions appear in both statistics and business rounds. The typical question: “How would you design an A/B test to evaluate a new recommendation algorithm?” Your answer should cover: defining the primary metric (say, click-through rate), the guardrail metrics (session length, returns), the randomisation unit (user-level, not session-level to avoid novelty effects), the sample size calculation using a power analysis, and the minimum detectable effect you care about.
One thing interviewers specifically check: whether you know that running a test for too short a time inflates false positives because of weekly seasonality. Mentioning that you would run the test for at least one full week, preferably two, signals real experience.
KPI and Metric Definition Questions
“How would you measure the success of a new feature in a food delivery app?” Define a north star metric (orders per active user per week), supporting metrics (cart abandonment rate, reorder rate), and counter-metrics that catch unintended harm (average delivery time, customer support tickets). This structure shows product thinking layered on top of data thinking, which is exactly what senior roles require.
For context on where these roles lead and what they pay, check the 3.0 University overview of data science salary and jobs in India. And if you are still building your foundation, the step-by-step guide on how to become a data scientist covers the full learning path from scratch.
The scope of data science in India is expanding well beyond traditional IT sectors into banking, agriculture, healthcare, and government, so the business case skills you build now will apply across industries for years.
Frequently Asked Questions
What are the most common data science interview questions?
The most common data science interview questions cover hypothesis testing, p-values, SQL joins and window functions, regression vs classification trade-offs, bias-variance tradeoff, and business metric definition. Most interview loops at Indian product companies run three to five rounds, with statistics in round one, SQL in round two, ML theory in round three, and a business or product case in the final round.
What are data science interview questions for freshers?
Freshers are most often asked about statistics fundamentals (p-values, normal distribution, CLT), basic SQL aggregations and joins, the difference between supervised and unsupervised learning, and simple Python or Pandas tasks. Companies like Infosys, TCS, and Wipro typically focus on conceptual clarity over production experience for entry-level data science roles in India.
How do I answer A/B testing questions in a data science interview?
Structure your answer around five elements: the primary metric, guardrail metrics, randomisation unit, sample size from a power analysis, and test duration. Always mention running the test for at least a full week to control for day-of-week effects. Interviewers reward candidates who flag what can go wrong, like novelty bias or peeking at results early, not just those who explain the mechanics correctly.
How much SQL is asked in data science interviews?
SQL appears in roughly 68% of data science job postings in India, according to Naukri JobSpeak 2023 data. Expect at least one live SQL question in most interview loops, ranging from basic aggregations to window functions like RANK, LAG, and LEAD. Mid-level and senior roles specifically test multi-table joins and query optimisation, so practise writing queries on real datasets, not just memorising syntax.
What business case questions appear in data science interviews?
Common formats include metric drop investigations (“DAUs fell 15%, find out why”), feature success measurement (“how would you evaluate a new search algorithm?”), and product trade-off analysis (“should we prioritise retention or acquisition this quarter?”). The best answers define a clear metric, segment the data logically, state assumptions, and flag risks rather than jumping straight to a solution.
How do I prepare for a data science interview?
Prepare round by round: review statistics and probability fundamentals first, then practise SQL on HackerRank or Mode Analytics, then study core ML algorithms with a focus on evaluation metrics and trade-offs, then practise business cases out loud with a peer. According to LinkedIn’s 2024 Jobs on the Rise report, data roles are growing fast in India, so consistent weekly practice over six to eight weeks beats a last-minute cram every time.
The single biggest mistake candidates make is preparing topics in isolation rather than the way real interview loops actually run. Start with statistics, build SQL fluency, layer in ML concepts, and finish with business case practice. Here are three things you can do this week:
- Write out definitions of p-value, Type I error, and the CLT in your own words without looking them up, then check them against a statistics textbook to find your gaps.
- Solve three window function problems on HackerRank SQL, focusing on DENSE_RANK and LAG before moving to harder problems.
- Pick one product you use daily, define its north star metric, two supporting metrics, and one guardrail metric, then explain your choices out loud as if you are in an interview.
If you want structured, industry-recognised preparation that goes beyond interview coaching, explore 3.0 University’s online certification courses in Cybersecurity, AI, Ethical Hacking, Blockchain, and Web3. Candidates who combine strong data science fundamentals with cross-domain technical skills stand out in competitive hiring pools. If you are looking to add security and AI expertise alongside your data science preparation, the CEH v13 AI online course is a strong next step for building a differentiated technical profile.
Last updated: May 2025. Reviewed by the 3University editorial team.