Skip to content

Data Science Interview Questions

Questions on statistics, experiments, modelling and communicating results.

mathshian•5 Nov 2026
A p-value is the probability of seeing results at least as extreme as the observed ones if the null hypothesis were true. It is not the probability that the hypothesis is true. A small value is evidence against the null, but effect size and practical relevance matter too.
The distribution of sample means approaches a normal distribution as sample size grows, regardless of the underlying distribution, given finite variance. It justifies many confidence intervals and tests that assume approximate normality of averages.
A Type I error is rejecting a true null hypothesis, a false positive. A Type II error is failing to reject a false null, a false negative. The significance level controls Type I and statistical power relates to Type II.
Define one primary metric and the minimum effect worth detecting, calculate the sample size for the desired power, randomise at the right unit, run for a full business cycle and avoid peeking and stopping early. Check for sample ratio mismatch before reading results.
Be cautious. Looking at many segments inflates false positives. Check whether the segment was pre-specified, correct for multiple comparisons and confirm with a follow-up test if it matters. Report it as a hypothesis, not a finding, unless validated.
Use quasi-experimental methods such as difference-in-differences, matching, regression discontinuity or synthetic controls, and state the assumptions clearly. Be honest that observational estimates are more vulnerable to confounding.
Start with a simple baseline and measure it. Move to a complex model only if the gain on held-out data justifies the cost in interpretability, maintenance and risk. Consider who will use the output and whether they need to understand why.
Check variance inflation factors. Options include dropping or combining correlated features, using regularisation such as ridge, or using principal components. Multicollinearity mainly affects coefficient stability and interpretation, not prediction.
Check size, types, missing values, duplicates and ranges, then plot distributions and relationships, and test assumptions about how the data was collected. Write down surprises and talk to the data owners about them before modelling.
Start with the decision it supports and the headline finding, use a simple visual and one concrete example, and state the uncertainty and limits plainly. Finish with a recommended action and what would change your mind.
A trend that appears in several groups can reverse when the groups are combined, because of an unevenly distributed confounding variable. It is why you should check subgroup composition before drawing conclusions from aggregated data.
Offline use ranking metrics such as precision at k, recall at k, NDCG or MAP on held-out interactions. Offline results may not reflect real behaviour, so confirm with an online experiment measuring the business outcome.