The 60 data science questions interviewers actually ask, with direct answers, analysis examples, diagrams, videos, and what hiring teams listen for.
60 questions with answersKey Takeaways
Data science is the practice of using data, statistics, programming, and domain context to answer questions and improve decisions. A data scientist does not just train models. The work starts with defining question, checking whether the data can coverage it, cleaning and exploring the dataset, choosing the right metric, building analysis or models, and explaining what should happen next. In interviews, the strongest answers are practical: The business question, describe the data you need, The checks you would run, and explain the risk if the data is biased or incomplete.
Watch: CS109a: Introduction to Data Science
Video: CS109a: Introduction to Data Science (Harvard University, YouTube)
Test yourself and earn a certificate
6 quick questions. Score 70%+ to download your Data Science certificate.
Start here. These are the definitions and first-principle checks that open most rounds.
Data science uses statistics, code, and domain context to turn data into decisions.
Avoid defining it as only machine learning. Most data science work starts before modeling.
data science changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Watch a deeper explanation
Video: Data 100 Lecture 01: Data Science Lifecycle (UC Berkeley Data 100, YouTube)
A dataset is a structured collection of records, features, labels, timestamps, and context used for analysis or modeling.
Mention grain: one row per user, event, order, or session. Grain errors break analysis.
dataset changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
A feature is an input variable used in analysis or modeling.
Good features reflect the signal available at decision time, not information from the future.
feature changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
A label is the target value a supervised model learns to predict.
Labels need a clear definition and a stable collection process.
label changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
| Answer part | What to say | Evidence to mention |
|---|---|---|
| Definition | label in one direct sentence. | Official docs or course material |
| Use case | The work where it changes a decision. | Dataset, model, query, dashboard, or pipeline |
| Risk | What breaks when it is misunderstood. | Metric, log, test result, or review note |
A metric is a number used to track performance, behavior, or success.
Strong answers separate product metrics from model metrics.
metric changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Watch a deeper explanation
Video: MIT 6.0002: Introduction to Machine Learning (MIT OpenCourseWare, YouTube)
A KPI is a metric tied to an important business outcome.
Use KPIs for decisions, not for decorating reports.
KPI changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Exploratory data analysis is the first pass over data to inspect shape, missingness, distributions, outliers, and relationships.
EDA prevents modeling blind and often finds the real issue early.
EDA changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Key point: A good EDA coverage names the checks in order instead of listing random charts.
Correlation measures how two variables move together, but it does not prove one causes the other.
The follow-up is usually causation, confounding, or experiment design.
correlation changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Causation means one change produces another, ideally shown through a controlled experiment or strong causal design.
Say what evidence you would need before making a causal claim.
causation changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Confounding happens when a third variable affects both the input and outcome, making a relationship look causal when it may not be.
Use an example, such as seasonality affecting both marketing spend and sales.
Sampling bias occurs when the data collected does not represent the population you want to understand.
Ask who is missing from the data and why.
sampling bias changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Missing data is absent values in records, caused by collection failures, optional fields, joins, or user behavior.
The treatment depends on whether values are MCAR, MAR, or MNAR, and whether missingness itself carries meaning.
An outlier is a value far from the rest of the data.
Do not delete it by reflex. First check if it is an error, rare event, or valid extreme case.
outlier changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Watch a deeper explanation
Video: Stanford CS229: Machine Learning Lecture 1 (Stanford Online, YouTube)
A train-test split separates data used to fit a model from data used to estimate future performance.
Time-based problems often need a time-aware split, not random splitting.
train-test split changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Cross-validation tests a model across several folds to get a steadier performance estimate.
Use it when data is limited, but avoid leakage between folds.
cross-validation changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
An A/B test compares two versions by randomly assigning users and measuring a target metric.
Mention sample size, randomization, guardrail metrics, and statistical significance.
A/B test changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
A p-value is the probability of seeing results at least this extreme if the null hypothesis were true.
It is not the probability that the hypothesis is true.
p-value changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
A confidence interval gives a range of plausible values for an estimate under repeated sampling.
It communicates uncertainty better than a single point estimate.
confidence interval changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Model evaluation checks whether a model is useful on unseen data for the actual cost of errors.
Pick metrics based on the business cost of false positives and false negatives.
model evaluation changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Data leakage happens when training data contains information that would not be available at prediction time.
It creates inflated scores and poor real-world performance.
data leakage changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
These questions test whether you can apply the topic to real data, real code, and messy constraints.
Restate the decision, target user, success metric, and available data before touching the dataset.
This shows you can turn a vague request into an answerable analysis.
framing a business problem changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Key point: If the answer doesn't change a decision, it is probably curiosity work, not an ready to use analysis.
Inspect row counts, nulls, duplicates, schema changes, ranges, joins, and timestamps.
Most data science mistakes trusting a dataset too early comes first.
checking data quality changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
List the question, assumptions, data sources, metric, method, and expected output.
A plan keeps you from chasing interesting but irrelevant patterns.
writing an analysis plan changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Define keys and grain first, then check row counts before and after the join.
A bad join can silently multiply rows and create fake signal.
joining datasets changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Measure missingness, find the cause, then decide whether to drop, impute, flag, or model it.
For modeling, fit imputation rules on the training set only, then apply them to validation and test data.
handling missing values changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
median_income = train_df["income"].median()
for frame in [train_df, valid_df, test_df]:
frame["income_missing"] = frame["income"].isna().astype(int)
frame["income"] = frame["income"].fillna(median_income)Watch a deeper explanation
Video: MIT 18.650: Introduction to Statistics (MIT OpenCourseWare, YouTube)
Use distribution plots, quantiles, domain limits, and business context before changing the data.
A fraud case may look like an outlier but be the thing you most need to catch.
detecting outliers changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
the metric maps to the decision. For imbalanced classes, use precision, recall, F1, or PR-AUC instead of accuracy.
Explain the cost of each error type.
choosing a metric changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Check data shape, types, missingness, duplicates, distributions, segments, and target relationships.
EDA is not random plotting. It is a systematic check for signal and risk.
running EDA changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
EDA order
A chart explanation identifies what changed, by how much, for whom, and what decision follows.
A chart without a decision is only a picture.
explaining a chart changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
a simple baseline such as mean prediction, majority class, linear model, or simple rule comes first.
The baseline tells you whether a complex model is earning its cost.
building a baseline model changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Remove future information, post-outcome features, target-derived variables, and duplicate users across splits.
Leakage is one of the most common data science interview follow-ups.
avoiding data leakage changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Use SQL for extraction, joins, filters, windows, and aggregations before moving to Python for deeper analysis.
the question expects data scientists to get their own data.
using SQL in data science changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Use Python for cleaning, EDA, feature work, modeling, and repeatable analysis notebooks or scripts.
Show code only when it clarifies the idea.
using Python in data science changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
summary = (
df.groupby("plan")
.agg(users=("user_id", "nunique"), churn_rate=("churned", "mean"))
.sort_values("churn_rate", ascending=False)
)
print(summary)Define the hypothesis, unit of randomization, sample size, primary metric, guardrails, and stopping rule.
Do not peek at results and stop early unless the design accounts for it.
designing an A/B test changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Explain it as evidence against the null, not the chance that the result is real.
Then mention effect size because statistical significance can hide tiny business impact.
interpreting a p-value changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Use confidence intervals, error bars, scenario ranges, and plain caveats.
A good data scientist tells people how confident they should be.
communicating uncertainty changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Rank work by decision value, urgency, data readiness, and risk.
This is a practical question. Not every interesting question is worth answering now.
prioritizing analyses changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Record data sources, filters, assumptions, metric definitions, code, and limitations.
Reproducibility is part of trust.
documenting analysis changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Lead with the answer, show the evidence, The caveat, and recommend the next action.
Executives do not want a notebook tour. They want the decision.
presenting insights changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Move to modeling only when prediction or decision automation adds value beyond descriptive analysis.
This avoids building models for problems a dashboard can answer.
turning analysis into a model changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Advanced rounds test trade-offs, failure modes, and whether the decision can hold up under production pressure.
Check instrumentation, data freshness, joins, segment changes, seasonality, and product releases before assuming user behavior changed.
The practical point starts by separating measurement failure from real movement.
metric drops suddenly changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Metric drop triage
Ask what decision the model will change, what data exists, and what error cost is acceptable.
If the model will not change an action, the request may need analysis instead.
stakeholder asks for a prediction model changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Compare metric definitions, filters, data refresh time, grain, and join logic.
Most dashboard conflicts are definition conflicts, not math conflicts.
dashboard numbers disagree changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Watch a deeper explanation
Video: Data Analysis in Python with pandas (Wes McKinney, YouTube)
Report uncertainty, avoid overclaiming, and consider extending the test or using a stronger prior if appropriate.
A result can be directionally useful without being conclusive.
small sample experiment changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Use precision, recall, F1, PR-AUC, and threshold tuning based on error costs.
Accuracy is often the wrong headline metric.
imbalanced classification problem changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Use the product metric as the final decision metric and the model metric as a diagnostic.
A model that improves AUC but hurts user trust is not a win.
conflicting product and model metrics changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Standardize identifiers, remove duplicates carefully, define household or account grain, and document rules.
Customer data often has identity issues that must be solved before analysis.
messy customer data changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Identify who is underrepresented, explain the direction of bias, and avoid generalizing beyond the data.
If possible, collect a better sample or weight results carefully.
biased sample changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Check leakage, drift, serving differences, logging gaps, and user feedback.
Offline and online worlds differ. The interview answer should The sides.
model performs well offline but fails live changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Pick a metric that is actionable, stable, clearly defined, and tied to a business decision.
Vanity metrics create attention but not action.
choosing a dashboard metric changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Compare pre-launch goals, experiment results, guardrails, segment effects, and long-term signals.
Do not declare success on one metric if guardrails break.
feature launch analysis changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Find the decision maker before starting or keep the project small.
Analysis without an owner often becomes unused work.
data science project with no owner changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Group rare categories, use target encoding carefully, or choose models that handle categories well.
Guard against leakage when encoding categories.
high-cardinality categorical data changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Respect time order in splits, check seasonality, and avoid using future data.
Random train-test splits can create fake performance for time-dependent data.
time series in data science changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Write the exact numerator, denominator, filters, time window, and grain.
A metric definition is not complete until two analysts can reproduce it.
unclear metric definition changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Clarify the goal, ask about data, propose metrics, outline analysis, and state trade-offs before calculating.
Structure matters more than rushing into formulas.
data science case interview changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Call out false discovery risk and adjust the method or frame results as exploratory.
The more slices you inspect, the more likely random noise looks meaningful.
analysis with multiple comparisons changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Move repeated notebook logic into tested jobs, scheduled pipelines, monitored outputs, and clear owners.
Repeated manual analysis becomes a system whether you admit it or not.
productionizing an analysis changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Check consent, privacy, fairness, and whether the analysis could harm people if misused.
Ethics is not a side topic when the result affects users.
data ethics issue changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
Lead with the answer, show one key number, state confidence, then recommend the next step.
A concise summary proves you understand the work, not just the code.
executive summary request changes Data Science decisions by affecting the chosen method, the failure mode, or the validation step. Reliable evidence comes from a metric, test result, query output, log, or review note.
These roles overlap, but the interview focus is different. Data scientists sit between analysis and modeling, so they need enough SQL, Python, statistics, and product thinking to the data connects to a decision.
| Role | Core focus | Interview emphasis | Common trap |
|---|---|---|---|
| Data Analyst | Reporting, metrics, dashboards, business questions | SQL, BI tools, metrics, communication | Stopping at a chart without a recommendation |
| Data Scientist | Experiments, statistical analysis, prediction, decision support | Statistics, Python, modeling, business framing | Building a model before defining the question |
| ML Engineer | Production model systems | Pipelines, deployment, monitoring, software design | Ignoring product metrics after deployment |
| Data Engineer | Data pipelines and storage | ETL, data quality, orchestration, scale | Assuming clean data appears by itself |
Data science skill balance
Most interviews test a mix of analysis, code, stats, and explanation.
Scale: Hyring editorial score for interview preparation, not an external benchmark.
Prepare through the workflow. A data science interview usually moves from business framing to SQL or Python, then statistics, modeling, and a case discussion.
The typical Data Science interview flow
Most rounds reward clear reasoning more than memorized phrasing.
A good data science answer sounds like a short decision memo. the question the business is asking, then say what data you need, how you will test quality, what method fits the decision, and how you will explain uncertainty comes first. This is different from a notebook walkthrough. the key point is that you can protect the company from false confidence, not just produce a model score.
When the prompt is vague, say what action the analysis will support. For churn, that may be which customers to contact, which plan change to test, or which onboarding step to fix. After that, choose the metric and data. This answer proves product sense because the model or chart is tied to a real action.
Strong candidates bring up leakage, biased samples, broken joins, metric drift, and small samples without being prompted. That is not defensive. It tells the interviewer you have seen real data fail and you know the difference between a clean tutorial dataset and production evidence.
For a fraud model, high recall catches more fraud but may block good users. For a marketing model, a tiny lift may be statistically significant but not worth engineering time. Say the trade-off, say who pays the cost, then say what extra evidence you would collect before recommending the change.
A practical answer uses SQL to pull the right data at the right grain, then uses Python for deeper checks, modeling, and repeatable analysis. If you move everything to a notebook too early, you may hide join errors or waste time moving data that the database could filter.
When you recommend a change, The data sources, filters, metric definition, assumptions, and caveats. This gives the interviewer confidence that another analyst could reproduce the result and that a stakeholder would know when not to trust it.
The practical point ends with the next action: run an experiment, fix logging, add a guardrail metric, create a monitor, or choose a simpler analysis. This closing matters because hiring teams want someone who can turn data work into a decision the team can use the same week.
6 questions, about 4 minutes. Score 70% or higher to earn a shareable certificate.
Hyring's AI Coding Interviewer can run Python, SQL, and data tasks with structured scoring. Pair this page with the coding prep guide and resume checker before a data science interview.
See Hyring AI Coding Interviewer