Skip to content
Tech Interview Prep

Data Scientist Interview Prep

Overview

A Data Scientist builds statistical models and experiments that turn ambiguous business questions into decision-ready evidence, with uncertainty quantified rather than glossed over.

Curated: · Written: · Reviewed:

Interview Q&A
104
Practice MCQs
103

The role in one line

A Data Scientist owns the statistical models and experiments that turn an ambiguous business question into a decision, with the uncertainty printed next to every number.

The interview loop

RoundWhat it scores
Framing and product senseWhether you name the decision, target metric, unit of analysis and baseline before proposing a method
Experiment designRandomisation unit, power, guardrails and a written analysis plan
Statistics and modellingHypothesis tests, regression, distributions, leakage, metrics paired with intervals
SQL and codingCorrect join grain, window functions, aggregation logic, clean Python on core data structures
Causal inference (when asked)Which assumptions your quasi-experiment or adjustment needs, and how you would check them
Stakeholder readoutEffect size, limitations and the next action in the stakeholder's terms

Five must-know areas

  1. Experiment design: what the test is powered on, and which unit is randomised.
  2. Assignment integrity: whether the split is trustworthy (sample ratio mismatch) before you read any effect.
  3. Multiple comparisons and peeking: why two significant results out of 40 metrics is roughly what chance gives, and why daily looks inflate false positives.
  4. Causal assumptions in observational data: what must hold for difference-in-differences, instrumental variables, regression discontinuity or matching.
  5. Uncertainty on every number: intervals on each metric, and knowing when a segment result is noise.

Numbers and formulas to have ready

  • Two-sided alpha 0.05: z = 1.96. Power 80%: z = 0.84.
  • Sample size per arm for a difference in means. The inputs are baseline variance, the minimum detectable effect and the randomisation unit, so say what you assumed for each:
n≈2σ2 (z1−α/2+z1−β)2δ2n \approx \frac{2\sigma^2\,(z_{1-\alpha/2}+z_{1-\beta})^2}{\delta^2}

Duration is n divided by eligible daily traffic per arm, rounded up to whole weeks so weekly cycles are covered.

  • Confidence interval for a difference in proportions:
δ^±z1−α/2p^c(1−p^c)nc+p^t(1−p^t)nt\hat\delta \pm z_{1-\alpha/2}\sqrt{\frac{\hat p_c(1-\hat p_c)}{n_c}+\frac{\hat p_t(1-\hat p_t)}{n_t}}
  • Sample ratio mismatch on the 51,204 and 49,102 split. Expected count per arm is 50,153:
χ2=(51,204−50,153)250,153+(49,102−50,153)250,153≈44(1 d.f.)\chi^2=\frac{(51{,}204-50{,}153)^2}{50{,}153}+\frac{(49{,}102-50{,}153)^2}{50{,}153}\approx 44 \quad (1\text{ d.f.})

That is far above the 3.84 critical value (chi-square, 1 d.f., alpha 0.05), so the assignment is broken and the effect should not be read.

  • Expected false positives: 40 metrics at alpha 0.05 gives 40 × 0.05 = 2.
  • Bonferroni threshold for 40 metrics: 0.05 / 40 = 0.00125.
  • Relative lift: (treatment − control) / control, always reported with its interval.

Reference architecture

Decision and target metric Randomisation unit and assignment Exposure and event logging Intent-to-treat analysis with SRM check Effect with interval and guardrails Ship, hold or rerun decision

Strong vs weak answers

PromptStrong answer sounds likeWeak answer sounds like
Measure everythingPick one primary metric, two guardrails and a stated minimum detectable effect; the rest are exploratoryWe will track all forty metrics and see what moves
How long to runI need baseline variance, eligible daily traffic and the smallest effect worth shipping; that gives n per arm and about 3 weeksTwo weeks, usually
p = 0.03 on day sixThe test was not sized for a day-six stop; I will not ship on a peek, and I will show the interval at the planned endp is below 0.05, so it is significant
Only 38% opened itThe primary read is intent-to-treat; opened-only is a biased subgroup, reported as a labelled secondaryAnalyse the users who used it, they are the real treatment
Segment winA post-hoc subgroup at this sample size needs a confirmatory test before any ship decisionShip it for mobile new users, the lift is significant

Interview tips

  1. Open every answer with the decision and the metric, then state assumptions before the method.
  2. Say the randomisation unit out loud and name what breaks if you pick the wrong one (interference, contamination, clustering).
  3. Put an interval on every headline number, and give the effect in the stakeholder's currency.
  4. When a result looks too good, check assignment and logging before you check the model.
  5. End with a concrete next action: ship, hold, rerun with a named sample size, or instrument a missing metric.

Last-week checklist

  • Write the sample size calculation for one of your past tests from memory, with its assumptions.
  • Practise the SRM check and the interval formula until you can do them unprompted.
  • Prepare one causal design (difference-in-differences, IV, regression discontinuity, matching) and its failure mode.
  • Rehearse the 20 most likely questions aloud using the same structure each time.
  • Review the Concepts in study order, starting with Probability Fundamentals and A/B Testing.
  • Check the Practice MCQs on hypothesis testing and experiment design, and fix any answer you cannot explain.
  • Confirm you can state a result as effect, interval, limitation and next decision in under a minute.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.