Data Science Interview Questions and Answers
Data scientist interviews are broad. Depending on the team you can get statistics, machine learning, experimentation, SQL and a product case in the same loop, plus a behavioral round.
The questions below are grouped by round. They come from the Dataford question bank and are ranked by how often they show up in our data scientist interview guides.
Practice Data Scientist interviews with a coach
1:1 mock interviews, with written feedback after
See coachesWhat interviewers test
Statistics and probability
Distributions, hypothesis tests, p-values, confidence intervals and Bayes.
Experimentation
Designing A/B tests, choosing metrics, sample size and pitfalls like peeking and novelty effects.
Machine learning
Model choice, bias and variance, evaluation metrics and feature engineering.
SQL and product sense
Pulling the data yourself and turning an open question into a measurable one.
Machine learning questions
How models work, when to use them and how to evaluate them.
- 1.
Explain how supervised and unsupervised learning differ, and ground the distinction in a practical ML example.
Practice this questionShow example answer
Approach
Supervised and unsupervised learning differ mainly in whether the training data includes a target label. In supervised learning, you have examples of inputs and the correct output, and the model learns a mapping from features to that target. In unsupervised learning, you only have inputs, and the goal is to discover structure such as clusters, latent factors, or lower-dimensional representations.
A practical way to explain this is with a receipt dataset. Suppose you want to predict whether a user will become a high-value repeat shopper in the next 30 days. If historical labels exist, this is a supervised learning problem. You would build features from receipt behavior, user history, merchant patterns, and brand interactions, then train a classifier such as logistic regression or gradient boosted trees. This setup works because there is a clear target, and success is measured against known outcomes.
Now consider a different task on the same dataset: segmenting users into behavioral groups when no segment labels exist. Here, unsupervised learning is appropriate. You might standardize numerical features, encode categoricals, reduce dimensionality with PCA, and apply clustering such as KMeans. The output is not a prediction of a known label. Instead, it is a grouping that can help with downstream uses like marketing segmentation, anomaly detection, or feature generation.
Feature engineering matters in both settings, but the objective differs. In supervised learning, features should maximize predictive signal for the target. Examples include rolling receipt frequency, average basket size, recency, brand diversity, and merchant concentration. In unsupervised learning, features should capture meaningful similarity between examples. You often spend more time scaling variables, handling skew, and removing redundant dimensions because distance-based methods are sensitive to representation.
Training strategy also differs. For supervised learning, use train, validation, and test splits, ideally time-based if the labels are future outcomes. Cross-validation helps compare models and tune hyperparameters without leaking information. For unsupervised learning, there is no label-based loss on a holdout set, so evaluation relies on internal metrics like silhouette score, cluster stability across resamples, and external usefulness in downstream tasks.
In production, supervised models are usually deployed for direct decisioning or ranking, with regular retraining as labels accumulate. Unsupervised models are often used for discovery, segmentation refreshes, anomaly flags, or as embeddings and cluster IDs that feed later supervised models. A strong answer should emphasize that the core distinction is labeled versus unlabeled data, then connect that distinction to objective, algorithms, evaluation, and deployment.
Solution
import numpy as np import pandas as pd from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline from sklearn.impute import SimpleImputer from sklearn.preprocessing import OneHotEncoder, StandardScaler from sklearn.model_selection import train_test_split, StratifiedKFold, cross_val_score from sklearn.metrics import roc_auc_score, average_precision_score, f1_score, silhouette_score from sklearn.linear_model import LogisticRegression from sklearn.cluster import KMeans from sklearn.decomposition import PCA # Example schema for Fetch-style receipt data numeric_features = [ "receipt_total", "item_count", "days_since_last_receipt", "avg_basket_30d", "receipt_count_30d", "brand_diversity_30d", "user_tenure_days", "engagement_score" ] categorical_features = [ "merchant_category", "top_brand", "submission_hour_bucket", "region" ] def build_preprocessor(): numeric_transformer = Pipeline(steps=[ ("imputer", SimpleImputer(strategy="median")), ("scaler", StandardScaler()) ]) categorical_transformer = Pipeline(steps=[ ("imputer", SimpleImputer(strategy="most_frequent")), ("onehot", OneHotEncoder(handle_unknown="ignore", sparse_output=False)) ]) return ColumnTransformer(transformers=[ ("num", numeric_transformer, numeric_features), ("cat", categorical_transformer, categorical_features) ]) # df is assumed to contain both features and a supervised label column # y_supervised = df["is_high_value_repeat_30d"] # X = df[numeric_features + categorical_features] # ----------------------------- # Supervised learning example # ----------------------------- def train_supervised_model(X: pd.DataFrame, y: pd.Series): X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2, stratify=y, random_state=42 ) clf = Pipeline(steps=[ ("preprocess", build_preprocessor()), ("model", LogisticRegression( max_iter=1000, class_weight="balanced", C=1.0, solver="lbfgs" )) ]) cv = StratifiedKFold(n_splits=5, shuffle=True, random_state=42) cv_auc = cross_val_score(clf, X_train, y_train, cv=cv, scoring="roc_auc") clf.fit(X_train, y_train) proba = clf.predict_proba(X_test)[:, 1] preds = (proba >= 0.5).astype(int) metrics = { "cv_auc_mean": float(np.mean(cv_auc)), "cv_auc_std": float(np.std(cv_auc)), "test_roc_auc": float(roc_auc_score(y_test, proba)), "test_pr_auc": float(average_precision_score(y_test, proba)), "test_f1": float(f1_score(y_test, preds)) } return clf, metrics # ----------------------------- # Unsupervised learning example # ----------------------------- def fit_unsupervised_segments(X: pd.DataFrame, n_clusters: int = 5): preprocess = build_preprocessor() X_processed = preprocess.fit_transform(X) # Reduce dimensionality before clustering for stability and interpretability pca = PCA(n_components=0.90, random_state=42) X_reduced = pca.fit_transform(X_processed) kmeans = KMeans(n_clusters=n_clusters, n_init=20, random_state=42) cluster_ids = kmeans.fit_predict(X_reduced) sil = silhouette_score(X_reduced, cluster_ids) result = { "preprocessor": preprocess, "pca": pca, "kmeans": kmeans, "cluster_ids": cluster_ids, "silhouette_score": float(sil), "explained_variance_ratio": float(np.sum(pca.explained_variance_ratio_)) } return result # ----------------------------- # Example usage # ----------------------------- # supervised_model, supervised_metrics = train_supervised_model(X, y_supervised) # print(supervised_metrics) # # unsupervised_result = fit_unsupervised_segments(X, n_clusters=5) # print({ # "silhouette_score": unsupervised_result["silhouette_score"], # "explained_variance_ratio": unsupervised_result["explained_variance_ratio"] # }) - 2.
Explain the bias-variance tradeoff and how it guides model choice, regularization, and generalization performance.
Solve and see the answer - 3.
Explain practical strategies for handling missing values in a supervised learning workflow, from diagnosis to modeling and validation.
Solve and see the answer - 4.
Explain how to reduce overfitting using regularization, validation, and model selection.
Solve and see the answer - 5.
Explain practical strategies for handling missing data and how to validate that the chosen approach improves model performance.
Solve and see the answer - 6.
Explain how bagging and boosting differ, and identify a representative algorithm for each ensemble method.
Solve and see the answer - 7.
Choose hyperparameters with cross-validation and validation metrics, while balancing bias, variance, and overfitting.
Solve and see the answer
A/B testing questions
Experiment design and analysis, a core round on product data science teams.
- 8.
Identify the main pitfalls that can distort A/B test interpretation and explain how to guard against them.
Practice this questionShow example answer
Approach
Hypothesis
- Null: The treatment has no effect on the primary metric relative to control
- Alternative: The treatment changes the primary metric relative to control
Decision Framework
Ship only when the primary metric is statistically significant, practically meaningful relative to the MDE, and all guardrails remain within the pre-set limits. If the primary metric wins but a guardrail fails, do not ship; investigate whether the effect is a measurement artifact, a short-term trade-off, or a real product regression.
If results are inconclusive, iterate: extend the test, improve instrumentation, or redesign the experiment rather than forcing a launch decision from noisy data.
Evaluation Criteria
- Defines the primary metric and guardrails before looking at results
- Uses an appropriate sample size and states the MDE explicitly
- Chooses the correct unit of randomization and analysis
- Recognizes peeking, SRM, novelty, and interference as interpretation risks
- Separates statistical significance from practical shipping decisions
- Provides a clear ship / don't-ship rule tied to guardrails
Solution
Sample-Size Calculation
Assume a two-sided test with alpha = 0.05 and power = 0.80. With baseline conversion p1 = 0.12 and a 5% relative MDE, p2 = 0.126, so the absolute effect is .
For a two-proportion z-test, the per-arm sample size is approximated by , where . Plugging in , , and gives roughly 42,000 users per arm.
That means you should plan for about 84,000 total randomized users, then add a buffer for sample loss or exclusions. If traffic is lower than that, either accept a larger MDE or run the test longer before interpreting results.
Analysis Plan
Use a two-sided two-proportion z-test for the primary metric because the outcome is binary and the unit of analysis matches the randomization unit. Pre-register the analysis window, exclusion rules, and the exact primary metric before launch; do not change them after looking at the data.
Do not peek and stop early unless you use a pre-specified sequential method; otherwise, only evaluate once the planned sample size and duration are reached. If you test multiple secondary metrics, treat them as exploratory or apply a correction policy such as Holm-Bonferroni. Check sample ratio mismatch before interpreting any lift, and if the analysis unit differs from the randomization unit, aggregate to the randomization level or use clustered standard errors.
Implementation
import numpy as np from scipy import stats from statsmodels.stats.power import NormalIndPower from statsmodels.stats.proportion import proportion_effectsize, proportions_ztest # Parameters alpha = 0.05 power_target = 0.80 p1 = 0.12 mde_rel = 0.05 p2 = p1 * (1 + mde_rel) # Sample size calculation es = proportion_effectsize(p1, p2) analysis = NormalIndPower() n_per_arm = analysis.solve_power(effect_size=es, alpha=alpha, power=power_target, ratio=1.0, alternative='two-sided') print(f"Required n per arm: {np.ceil(n_per_arm):.0f}") # Simulation under H0 and H1 rng = np.random.default_rng(42) nsim = 5000 n = int(np.ceil(n_per_arm)) def simulate_power(p_control, p_treat, n, nsim=5000): rejections = 0 for _ in range(nsim): x1 = rng.binomial(n, p_control) x2 = rng.binomial(n, p_treat) stat, pval = proportions_ztest([x1, x2], [n, n], alternative='two-sided') rejections += (pval < alpha) return rejections / nsim power_h0 = simulate_power(p1, p1, n, nsim) power_h1 = simulate_power(p1, p2, n, nsim) print(f"Empirical type I error under H0: {power_h0:.3f}") print(f"Empirical power under H1: {power_h1:.3f}") # Example analysis on one simulated dataset x1 = rng.binomial(n, p1) x2 = rng.binomial(n, p2) stat, pval = proportions_ztest([x1, x2], [n, n], alternative='two-sided') rate1, rate2 = x1 / n, x2 / n lift = (rate2 - rate1) / rate1 print({ 'control_rate': rate1, 'treatment_rate': rate2, 'relative_lift': lift, 'z_stat': stat, 'p_value': pval, })Interpretation
A statistically significant result is not automatically worth shipping. Compare the observed effect to the MDE and the guardrails: a tiny but significant lift may be real yet too small to matter operationally, while a larger lift that breaks a guardrail should not ship.
If the result is significant and clears guardrails, ship. If it is significant but below MDE, usually iterate or keep testing unless the effect is strategically important at scale. If it is not significant, do not ship on the basis of the test alone; either extend the experiment if underpowered or treat the result as inconclusive.
Pitfalls
- Peeking, Repeatedly checking results inflates false positives and makes noise look like signal. Mitigation: Pre-register the analysis date or use a valid sequential testing framework.
- Sample ratio mismatch, Unequal assignment can indicate logging or bucketing bugs that invalidate the comparison. Mitigation: Check traffic splits before analysis and investigate any material imbalance immediately.
- Network interference, One user's treatment can affect another user's outcome, violating independence. Mitigation: Use cluster-level randomization or a switchback design when spillovers are expected.
- SUTVA violation, If treatment changes exposure conditions across users or time, the estimated effect is not well-defined. Mitigation: Define the experimental unit carefully and avoid overlapping treatments or shared state.
- Novelty effect, Early lifts can fade once users adapt to the change. Mitigation: Run long enough to cover the novelty window and inspect effects by time period.
- Guardrail blindness, A primary-metric win can hide damage to user experience or downstream outcomes. Mitigation: Predefine guardrails and require them to stay within bounds before shipping.
- 9.
Design an A/B test for a new platform feature, including success metrics, power, guardrails, and a clear ship decision.
Solve and see the answer - 10.
Identify major online experiment pitfalls and explain how they can bias results in a streaming product A/B test.
Solve and see the answer - 11.
Design a marketing campaign experiment with a pre-registered metric plan, power calculation, and ship rule that respects guardrails.
Solve and see the answer - 12.
Explain how a primary metric differs from a guardrail metric and how both are used in A/B test decisions.
Solve and see the answer - 13.
Design a landing-page A/B test with clear metrics, power, and significance criteria while guarding against common experiment pitfalls.
Solve and see the answer
SQL questions for data scientists
Usually one round: joins, aggregations and window functions on event data.
- 14.
Explain how to profile, clean, and standardize missing or dirty data before analysis.
Practice this questionShow example answer
Approach
Interview Tips
- Start by explaining how you would profile the data before cleaning it.
- Mention that you would not blindly impute missing values without business context.
- Call out the importance of keeping raw and cleaned layers separate for auditability.
Related Concepts
- data quality
- staging tables
- deduplication
- null semantics
Solution
Data Cleaning Strategy in SQL
When a dataset contains significant missing or dirty data, the first goal is not to “fix everything” immediately. The first goal is to understand the shape of the problem well enough to avoid introducing bias. In SQL, that means starting with profiling: count NULLs, inspect distinct values, check min/max ranges, and look for patterns that suggest malformed records. For example, if a date column contains text-like placeholders, or a numeric column contains negative values that should never occur, those rows need to be isolated before they affect reporting.
A good workflow usually follows this order:
- Profile the data to quantify missingness and anomalies.
- Classify issues into fixable, ignorable, and invalid rows.
- Apply cleaning rules consistently in SQL.
- Validate the result by comparing row counts, distributions, and aggregates before and after cleaning.
Handling missing values
NULLs are not always bad data. Sometimes they mean “unknown,” “not collected,” or “not applicable.” The right treatment depends on the business question. If you are calculating revenue, a missing amount is usually not safe to impute and should often be excluded or flagged. If you are grouping by a dimension such as channel or region, you might map NULL to a labeled bucket like
'unknown'so the record remains visible in analysis.Use
COALESCEwhen a default value is analytically acceptable, but be careful: replacing NULL with zero can distort averages, ratios, and totals if the missingness is not truly equivalent to zero. A common interview point is that imputation should be domain-driven, not automatic.Handling dirty categorical values
Dirty labels are common in operational systems:
'Web','web ','Website', and'WEB'may all refer to the same channel. SQL is well suited for standardizing these values withTRIM,LOWER, andCASE WHEN. This is especially important beforeGROUP BY, because inconsistent labels create fragmented groups and misleading counts.A practical pattern is to create a cleaned staging query or CTE that normalizes values before downstream reporting. That keeps the logic auditable and reusable.
Handling invalid dates and numbers
Invalid dates, impossible timestamps, and out-of-range numeric values should be treated as data quality failures, not just missing values. In PostgreSQL, you can use
CASE WHENto flag suspicious rows and filter them out of final metrics. For example, negative order amounts, future dates in historical tables, or dates outside a valid reporting window should usually be excluded or investigated.This matters because bad values often have a larger impact than missing values. A single extreme outlier can skew averages, and a malformed date can break time-series grouping.
Handling duplicates
Duplicates are one of the most dangerous quality issues because they often look valid. They can inflate counts, revenue, and conversion metrics without being obvious. The right approach depends on whether duplicates are exact copies or multiple versions of the same business entity. If you have a natural key and a timestamp, a window function like
ROW_NUMBER()is often the cleanest way to keep the newest or most complete record.If duplicates are exact row copies, you may remove them with
DISTINCT, but that is only safe when every duplicate is truly redundant. If duplicates represent multiple events, then deduplication would be wrong.Practical trade-offs
The central trade-off is between completeness and correctness. Excluding too much data can bias the sample, while imputing too aggressively can create false precision. In interviews, a strong answer usually mentions that you would:
- quantify the issue first,
- preserve raw data in a staging layer,
- apply cleaning rules in a reproducible SQL transformation,
- and document assumptions so downstream consumers know what was changed.
For an Operations Manager context, this is especially important because reporting often drives staffing, service levels, and exception handling. If the data is dirty, the process should make that visible rather than hiding it behind a polished-looking metric.
A concise SQL mindset
A strong SQL approach is to build a clean intermediate dataset with explicit rules instead of editing source data in place. That usually means using
CASE WHEN,COALESCE, filters, and sometimes window functions for deduplication. The best answer shows that you understand not just how to clean data, but how to do it in a way that is repeatable, auditable, and safe for business reporting.Key Concepts
Data profiling
Start by measuring the scope of missingness, invalid values, duplicates, and unexpected distributions. In SQL, this usually means counting NULLs, checking distinct values, and looking for impossible ranges before deciding on a cleanup strategy.
SELECT COUNT(*) AS total_rows, COUNT(*) FILTER (WHERE amount IS NULL) AS missing_amounts FROM transactions;NULL handling
NULLs should be treated intentionally, not automatically replaced. Depending on the use case, you may exclude them, impute them with a rule, or keep them as unknowns so the analysis remains honest.
SELECT COALESCE(status, 'unknown') AS status_clean FROM orders;Standardization
Dirty categorical values often come from casing, whitespace, abbreviations, or inconsistent labels. Standardizing them with trimming, casing, and CASE expressions makes grouping and joins reliable.
SELECT CASE WHEN LOWER(TRIM(channel)) IN ('web', 'website') THEN 'web' ELSE 'other' END AS channel_clean FROM events;Deduplication
Duplicate rows can inflate counts and sums, especially in operational datasets. You usually identify a natural key or use window functions to keep the most recent or most complete record.
SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (PARTITION BY order_id ORDER BY updated_at DESC) AS rn FROM orders ) t WHERE rn = 1; - 15.
Explain how INNER JOIN and LEFT JOIN differ, and when to use each for matched-only versus all-left-row analysis.
Solve and see the answer - 16.
Explain INNER, LEFT, RIGHT, FULL OUTER, CROSS, and SELF JOINs with examples and when to use each.
Solve and see the answer - 17.
Explain how to validate SQL data before reporting, including null checks, duplicates, outliers, and aggregation reconciliation.
Solve and see the answer - 18.
Explain SQL window functions and when to use ROW_NUMBER() versus DENSE_RANK() for ranked ticket analysis.
Solve and see the answer - 19.
Explain how SQL fits with data analysis and visualization tools, and when to use each in an analytics workflow.
Solve and see the answer - 20.
Find the second highest distinct salary from a single table using basic PostgreSQL ordering and limiting.
Solve and see the answer
Product sense and metrics questions
Defining success metrics and diagnosing changes in them.
- 21.
A framework for connecting user needs to business goals, then making product decisions with clear trade-offs and measurable outcomes.
Practice this questionShow example answer
Approach
Framework
Use a JTBD + CIRCLES-lite + KPI alignment framework. JTBD is the right starting point because the question is fundamentally about understanding the underlying user need, not just reacting to feature requests. Then use a lightweight product-sense flow: identify user segments, define the core problem, map solutions to business value, make explicit trade-offs, and set measurable success criteria. This fits the problem because alignment requires both qualitative judgment and quantitative accountability.
Key Considerations
- Distinguish end-user needs from buyer requests, since store associates use the product but retail IT or operations leaders often purchase it
- Avoid building around feature requests without validating the underlying job to be done
- Balance configurability for enterprise customers against usability, implementation cost, and support complexity
- Use both qualitative research and product telemetry, because either one alone can mislead prioritization
- Define primary and secondary segments clearly, since optimizing for managers and cashiers at the same time can create conflicting design choices
- Measure post-launch outcomes on both user value and commercial value, not just delivery velocity or feature adoption
Evaluation Criteria
['Starts by identifying the user segment and underlying job to be done rather than jumping to features', 'Explicitly connects user outcomes to business outcomes with a clear value chain', 'Uses concrete prioritization logic and names meaningful trade-offs', 'Defines measurable success criteria for both user impact and business impact', 'Shows how research, data, and post-launch feedback are used to validate alignment', 'Demonstrates sound judgment in choosing a focused solution instead of overbuilding']
Solution
Start With The User Job And Pain Points
I would begin by clarifying who the primary user is and what job they are trying to get done. In the retail example, a cashier's job is not 'use a checkout feature', it is 'complete checkout accurately and quickly without creating friction for the shopper.' A store manager's job might be 'keep lanes moving while minimizing overrides and training burden.' Framing the problem this way helps avoid building around internal assumptions or isolated feature requests.
From there, I would validate the biggest pain points through direct research: interviews, workflow observation, support tickets, win-loss feedback, and usage data. I want to separate stated wants from actual blockers. If users ask for more customization, for example, the real need may be faster exception resolution or fewer training errors. That distinction matters because the best solution often addresses the root job better than the requested feature does.
Translate User Needs Into Business Objectives
Once the user problem is clear, I would connect it to the business objective in explicit terms. For a retail commerce platform, that could mean showing how a faster, simpler checkout exception flow improves transaction throughput, reduces labor minutes per lane, increases customer satisfaction, and strengthens renewal or expansion conversations with retail customers.
I like to create a simple mapping: user pain point, desired user outcome, business impact, and metric. For example: 'manual price override flow is slow' maps to 'fewer taps and faster resolution' which maps to 'higher lane throughput and lower training cost' and then to metrics like average override handling time, transactions per hour, and customer renewal health. This forces the team to prove that a solution creates value for both sides instead of treating user value and business value as separate tracks.
Prioritize Solutions Using Value And Trade-Offs
After that, I would generate a few solution options and compare them based on user impact, business impact, effort, and risk. For instance, the team might choose between a full configurable exception engine, a guided override workflow for the top 5 scenarios, or better manager tooling. The right answer is rarely 'build everything.' It is usually the smallest solution that meaningfully improves the core job while supporting a measurable business outcome.
This is where trade-offs need to be explicit. A highly flexible solution may satisfy edge cases but increase implementation complexity and support burden. A narrow workflow may deliver faster value and better adoption but leave some enterprise requests unmet. I would usually favor the option that solves the highest-frequency pain point for the primary segment, creates a clear value proposition for buyers, and can be measured quickly. Alignment is not about pleasing every stakeholder. It is about making a deliberate choice with evidence.
Define Success Criteria And Close The Loop
Before building, I would define what success looks like for both users and the business. User-side metrics might include task completion time, error rate, training time, and user satisfaction for the workflow. Business-side metrics might include software adoption, renewal risk reduction, attach rate for the module, support ticket volume, and operational throughput improvements reported by customers.
After launch, I would review whether the solution actually moved both sets of metrics. If user satisfaction improves but adoption stays flat, the packaging or sales story may be wrong. If revenue improves but frontline usage remains poor, the product may be creating short-term commercial wins at the expense of long-term retention. The key is to treat alignment as an ongoing feedback loop, not a one-time planning exercise.
Recommended Solution Outline
1. Clarify the user and the job
Identify the primary user, their core job to be done, and the highest-friction pain points.
2. Validate the need
Use interviews, observation, support data, and usage telemetry to confirm the root problem.
3. Map to business value
Translate the user problem into business outcomes such as retention, attach, throughput, or lower support cost.
4. Compare solution options
Evaluate a few approaches by user impact, business impact, effort, and risk.
5. Make the trade-off call
Choose the smallest solution that solves the core need and supports a clear value proposition.
6. Define success metrics
Set user metrics and business KPIs up front, then review post-launch results and iterate.
- 22.
Define a success metric for a new feature that captures real user value, not just raw usage.
Solve and see the answer - 23.
A framework for deciding which features should ship first when building a new product.
Solve and see the answer - 24.
A structured approach to planning and running a user research project that identifies user needs and drives product decisions.
Solve and see the answer - 25.
Explain a practical approach to user research in the design process, from understanding user needs to turning findings into design decisions.
Solve and see the answer
Frequently asked questions
What questions are asked in a data science interview?
Expect statistics, machine learning, SQL, a product or experimentation case and a behavioral round. Product-focused teams weigh experimentation more; research and ML teams weigh modeling more.
How do I prepare for a data science interview?
Find out which kind of data science role it is, then weight your prep to match. Practice SQL and statistics regardless, and rehearse explaining one end-to-end project in detail.
How much machine learning is in a data science interview?
It varies a lot. Product analytics roles may only ask conceptual questions, while machine learning-focused roles expect you to discuss model choice, evaluation and deployment in depth.
What statistics should I know for a data science interview?
Probability basics, common distributions, hypothesis testing, p-values, confidence intervals, power and sample size, plus regression fundamentals.