Data ScienceInterview Questionsintermediate

Data Science Interview Questions and Answers

24 data science questions about framing problems, finding trustworthy evidence, testing ideas and explaining results to a team.

Published
TL;DR – Quick Answer

Data science interviews test whether you can turn a business question into a measurable problem, find reliable data, test an idea and explain the answer. Freshers should focus on SQL, sampling, data checks and projects. Experienced candidates should add experiments, causal reasoning, forecasting and decisions made with limited data.

On This Page

Data science interview questions ask you to move from a vague problem to a decision. You must choose the right data, check it, test an idea and explain what the result does not prove. Knowing a model is only one part of the job.

This page focuses on SQL, samples, experiments, metrics and business cases. For algorithms and tuning, use machine learning interview questions. For Python and pandas syntax, use the Python data science question set.

What data science interview questions test

Level Interviewer wants to see Good proof
Fresher Clear thinking and basic skills One project explained well
2 years Careful work and ownership A changed decision or metric
Senior Choices with uncertainty Trade-offs, influence, follow-up

Keep one answer frame ready: goal, data, method, check, decision. It works for both a short question and a long case.

Data science interview questions and answers for freshers

These ten are data science interview questions for freshers. Use small numbers because they make your thinking easy to follow.

Q1. What are the main stages of a data science project?

30-second answer: Define the decision and metric, collect data, check it, explore it, build the simplest useful method, evaluate it and share the result. Then monitor whether the decision helped.

The stages are not a straight line. A data check may show that the first question cannot be answered, so you return and change it.

Q2. How do you turn a business problem into a data problem?

30-second answer: I ask who will make which decision, what result counts as success, when the decision is made and what data exists at that moment.

"Reduce customer loss" is vague. "Choose 500 active customers for a support call each Monday" gives a population, action, time and limit.

Q3. How do you check a new dataset?

30-second answer: I check what one row means, keys, row counts, date range, missing values, impossible values, duplicates and how the data was collected.

Compare totals with a trusted source. If sales for one shop look high, first check the unit and repeated rows before calling it an insight.

Q4. What is sampling bias?

30-second answer: Sampling bias happens when the sample does not represent the group you want to study.

A survey only of current app users cannot tell you why people left. More answers from the same users will not repair that problem. Add people who left or limit your claim.

Q5. What is the difference between missing at random and missing completely at random?

30-second answer: Missing completely at random means missingness has no link with the data. Missing at random means it can depend on observed data. If it depends on the missing value itself even after that, it is missing not at random.

If older users skip an income field and age is known, missing at random may be reasonable. Data alone cannot always prove which case is true.

Q6. How do you treat outliers?

30-second answer: I find out why they exist. I correct a proven error, keep a real event and choose a method that matches the question.

A very large bank transfer may be the most important row in fraud work. Compare the result with and without it. Never delete a row only because it makes a chart look odd.

Q7. Why can an average mislead?

30-second answer: One average can hide spread and separate groups. I check counts, the median, percentiles and useful segments.

For delivery times of 10, 10, 10 and 50 minutes, the mean is 20 but the median is 10. Both are true; they answer different questions.

Q8. What is Simpson's paradox?

30-second answer: A trend in every group can reverse when groups are joined because their sizes or mixes differ.

A team may perform better for both easy and hard cases yet look worse overall because it received more hard cases. Check the segment mix before comparing teams.

Q9. How do you write a weekly active user query?

30-second answer: Count distinct users who did a defined activity inside a clear seven-day window. Set the time zone and remove test accounts if needed.

SELECT COUNT(DISTINCT user_id) AS active_users
FROM activity
WHERE day >= '2026-01-01'
  AND day < '2026-01-08';

The end date is excluded, so the query covers exactly seven calendar days. Merely loading a page may not be the same as doing useful work.

Q10. How should a fresher present a project?

30-second answer: Say who needed the result, the question, data source, baseline, check, result and limit. Show one mistake you fixed.

Avoid reading notebook cells in order. A good ending is: "This test supports calling the top group, but I still need an experiment to know if calls help."

Pro tip: Take one screenshot of a useful chart and one table. Both should support the decision, not just decorate the project.

Data science interview questions for 2 years experience

With two years, show what you owned. These data science interview questions and answers use realistic work situations.

Q11. How do you calculate seven-day return rate in SQL?

30-second answer: Find each user's first day, then check whether that user appears exactly seven days later. Divide the returned users by the starting users.

This query uses SQLite date syntax. Dates are stored as YYYY-MM-DD.

WITH first_seen AS (
  SELECT user_id, MIN(day) AS start_day
  FROM activity
  GROUP BY user_id
)
SELECT f.start_day,
       COUNT(DISTINCT f.user_id) AS users,
       COUNT(DISTINCT a.user_id) AS returned
FROM first_seen f
LEFT JOIN activity a
  ON a.user_id = f.user_id
 AND a.day = date(f.start_day, '+7 days')
GROUP BY f.start_day
ORDER BY f.start_day;

Duplicate activity does not raise either count because we count distinct users. State whether return means "on day 7" or "by day 7".

Q12. A join made revenue too high. What happened?

30-second answer: A one-to-many join probably repeated an order once for each item or payment. I check row grain and keys, then aggregate before joining when needed.

If one order of 100 has two payment rows, joining directly and summing order value gives 200. Using DISTINCT on the amount can still be wrong because two real orders may have the same amount.

Q13. How do you choose a success metric?

30-second answer: I choose one main metric close to the goal and a few guardrails that catch harm. I define its exact formula, users and time period.

For a faster checkout, use completed orders as the main metric. Guardrails could be refunds, payment errors and page time. More clicks alone may not help anyone.

Q14. How would you investigate a 10% drop in sign-ups?

30-second answer: First confirm the number and date. Check logging and definitions, then break the funnel by step, device, source and release. Match any change to a clear time.

Start with data quality before inventing a cause. If only one browser fell after a release, test that browser's sign-up path. Check whether fewer visits or a lower sign-up rate caused the drop.

Q15. What is a power analysis?

30-second answer: It estimates the sample needed to find an effect of a chosen size with a chosen chance of success. Smaller effects and noisier data need more samples.

Choose the smallest useful effect before the test. Stopping as soon as a p-value looks good can raise false-positive risk unless the method allows repeated checks.

Q16. What is sample ratio mismatch in an experiment?

30-second answer: The group sizes differ from the planned split more than chance should allow. It may mean assignment or logging is broken.

Suppose a planned equal split gives 9,000 and 11,000 users. Stop and inspect assignment before trusting any lift. Do not fix it by removing users until the groups match.

Interview note: A test can be statistically significant and still be broken. Check assignment before outcome.

Q17. When would you avoid a normal A/B test?

30-second answer: Avoid it when users affect each other, the action is unsafe or unfair, there is too little traffic or the result takes too long to see.

In a delivery market, drivers shared by both groups can spread the treatment effect. You may test areas or time blocks instead, while checking that the groups are comparable.

Data science interview questions and answers for experienced

Experienced candidates should say what evidence would change their choice.

Q18. How do you estimate cause without an experiment?

30-second answer: I draw the likely causal story, choose a comparison group and check the assumptions. Methods may include matching, difference in differences or an instrumental variable.

Difference in differences needs similar trends without treatment. Prior trends are useful evidence, but they do not prove the future assumption. Report uncertainty and test other reasonable comparisons.

Q19. How do you validate a time forecast?

30-second answer: Train on earlier dates and test on later dates. Repeat through several points in time and compare with a simple baseline, such as last week's value.

Use features known when each forecast would be made. Choose an error measure that matches the stock or staffing cost. A random split leaks future patterns into the past.

Q20. What is multicollinearity, and when does it matter?

30-second answer: Some input features move together, so it is hard to separate their individual effects. It can make coefficients unstable.

Prediction may still be fine. If the goal is to explain an effect, consider dropping a duplicate feature, joining related ones or collecting better data. Do not remove a feature only because one rule gave a high number.

Q21. How would you work with no labelled data?

30-second answer: Clarify the decision first. I might use rules, sample cases for expert labels or study a useful proxy while testing whether it really matches the goal.

Set aside a labelled check sample. Groups found by an algorithm are not automatically real customer types.

Q22. Two metrics move in opposite directions. Which one wins?

30-second answer: I return to the decision and the agreed guardrails. I check the size of both effects, the affected groups and the longer-term cost.

If conversion rises but complaints rise above a safety limit, do not ship just to protect the headline metric. Ask for a decision owner when the trade-off cannot be turned into data.

Q23. How do you explain an uncertain result to a manager?

30-second answer: I lead with the decision, show the likely range and state what could change it. I separate a data limit from a business risk.

Say: "The test is too small to show a useful gain. We can keep the current plan or run longer. I recommend running longer because the weekly cost is low." Use numbers from the actual test when available.

Q24. Tell me about a time your analysis was wrong.

30-second answer: I explain the original claim, the check that showed the error, how I corrected it and the rule I added to prevent it.

For instance, a missing join key can drop rows. A row-count check before and after the join can expose it. Use a real case of your own and share only details you are allowed to share.

Common mistake: Blaming the data source and stopping there. Show how you fixed the result and told the people who used it.

Practise one complete case

Try this case: a learning app wants more students to finish a course. Spend 25 minutes on five lines: the user, the decision, the main metric, the data and the first test. Include one guardrail, such as more unresolved student questions.

Then change one fact. What if you have only 80 students? A large A/B test may no longer fit. Interviewers often change a condition to see whether you can adjust your plan.

How to prepare for data science interview questions

Spend one week on SQL and data checks, one on statistics questions and experiments, and one on projects and cases. Use machine learning vs data science to match your study to the role.

Follow the data scientist roadmap if you need a longer plan. The data science course gives a guided route. Before applying, explain one project in three minutes and defend every number on its last page.

Frequently Asked Questions

What are the main topics in a fresher data science interview?
Expect SQL, Python, descriptive statistics, data cleaning, charts, basic models and project questions. The exact mix depends on the role, so use the job description to plan your time.
Is SQL necessary for data science?
It is needed in many data science jobs because company data often lives in databases. Practise joins, groups, common table expressions and window functions. Also learn to check whether a join changed the row count.
What is asked at two years of experience?
Expect questions on project ownership, messy data, metrics, experiments and communication. You should be able to defend a choice, describe a failure and show how your work changed a decision.
How should I answer a data science case question?
Clarify the goal, define the user and metric, list the data needed, suggest a simple analysis and state the risks. Finish with what decision each possible result would support.
Can I become a data scientist without a data science degree?
Some employers accept other degrees, while others set a fixed rule. Build skills and projects that you can explain, then check each job description. A project alone does not ensure selection.

Want to Build Your Career in Data Science with AI?

Join CodeBegun and train with working industry engineers — See the Data Science course in Hyderabad

Apply for Demo Class →
Siva Prasad Galaba
Founder, CodeBegun · Staff Engineer

Founder of CodeBegun. 15+ years building Java systems at companies like Crunchyroll. Teaches Java, Spring Boot and system design the way the industry actually works, and mentors students through projects, mock interviews and placement preparation.

Technically reviewed by CodeBegun Technical TeamLast reviewed 3 December 2026 LinkedIn
Chat with us