Role preparation

Data Scientist interview questions and answers.

Model evaluation, uncertainty, and experimental validity.

Questions

Technical questions to practise out loud

  1. 01

    What is the bias-variance trade-off?

    High bias underfits because the model is too constrained; high variance overfits because it follows training noise. Balance them with appropriate capacity, regularization, representative data, and validation on unseen samples.

    Read the full breakdown
  2. 02

    How do you validate a machine learning model?

    Validate a model with a split that mirrors future use, prevent entity and time leakage, choose metrics tied to the decision, compare a baseline, estimate uncertainty, inspect segments, and reserve a final untouched test set.

    Read the full breakdown
  3. 03

    What is data leakage in machine learning?

    Data leakage occurs when training features or preprocessing contain information unavailable at prediction time or derived from the target. It produces optimistic validation and fails in production; split before fitting every learned transform.

    Read the full breakdown
  4. 04

    How do you approach feature engineering?

    Start from the prediction time and domain mechanism, create only features available then, encode missingness and time carefully, fit transformations on training data, test incremental value, and monitor stability and cost.

    Read the full breakdown
  5. 05

    How do you handle class imbalance?

    Use metrics such as precision-recall and cost-weighted error rather than accuracy, keep validation prevalence realistic, tune the decision threshold, and consider class weights or resampling only inside training folds.

    Read the full breakdown
  6. 06

    How do you choose between candidate models?

    Choose candidate models by out-of-sample performance on the business-relevant metric, uncertainty, calibration, robustness by segment, latency, explainability, maintenance, and cost—not by the best single cross-validation score.

    Read the full breakdown
  7. 07

    How do you design a data-science experiment?

    Define the causal question, population, treatment, control, primary metric, guardrails, effect size, power, randomization unit, duration, and analysis plan before looking at outcomes; track assignment and interference risks.

    Read the full breakdown
  8. 08

    How do you explain a model prediction?

    Explain a prediction with the model's intended use, baseline, influential features and direction, uncertainty, and limitations. Use local attribution carefully, validate it against model behavior, and never present correlation as a causal reason.

    Read the full breakdown
  9. 09

    How do you connect model metrics to business value?

    Map model outputs to an operational decision, its threshold, action rate, benefit of correct actions, cost of errors, latency, and coverage; evaluate expected business value and guardrails at realistic prevalence.

    Read the full breakdown
  10. 10

    How do you assess ethical risks in a model?

    Assess who can be harmed, representation and label bias, performance gaps by relevant groups, privacy, explainability, misuse, feedback loops, and appeal paths; document controls, owners, monitoring, and stop conditions.

    Read the full breakdown