Technical Knowledge interview questions for data scientists and ML engineers

Knowledge questions ask you to explain the core concepts of your field and apply them to an example. Interviewers push past the definition to why it works, where it breaks and how you would use it.

Data and AI interviews test SQL and coding, statistics and machine learning concepts, and ML system design. Expect follow-ups on how you would measure a model, what breaks in production, and why you chose one approach over another.

7 questions below, each one a practice interview: the AI interviewer asks it out loud, follows up on your answer, and sends you a scored feedback report.

Practise free with the AI interviewer

What the interviewer scores

  • Accuracy

    Explains concepts correctly and precisely, with the right terminology.

  • Depth

    Goes beyond definitions to why things work, their limits and how they connect.

  • Application

    Applies the concepts correctly to concrete examples and real-world situations.

  • Communication

    Explains their thinking out loud, answers the question asked, checks assumptions and responds to hints and follow-ups.

Questions

Statistics for Analysts: Tests, Bias and Confounding

Knowledge · Medium · 20 min

A knowledge interview on the statistics an analyst uses to judge experiments and data, at the level of a data or product analyst with up to a few years of experience.

Be ready to explain, in your own words, and apply to examples:

  • Hypothesis tests and p-values: what a p-value is and is not, significance levels, and the two kinds of error.
  • Statistical power and sample size: why a test can be too small to detect a real effect.
  • Pitfalls in A/B tests: checking results early and repeatedly, testing many metrics at once, and broken randomization.
  • Correlation versus causation: confounding variables and selection bias.
  • Why an overall result can point the opposite way from every segment.

The interviewer will describe a few experiments and datasets with round numbers and ask what you would conclude and what you would check. You will not need to compute anything precisely; reason out loud.

Practise this question with the AI interviewer

Bias, Variance and Regularization

Knowledge · Medium · 20 min · Free to practise

A knowledge interview on why models overfit or underfit and what to do about it, at the level of a data scientist or ML engineer with up to a few years of experience.

Be ready to explain, in your own words, and apply to examples:

  • The bias-variance trade-off: what underfitting and overfitting look like in training and validation error.
  • Reading learning curves and validation curves to decide whether more data, more features or a simpler model will help.
  • L1 and L2 regularization: what each penalty does to the weights, and when you would pick one or combine them.
  • Regularizing models without a weight penalty: tree depth and minimum leaf size, early stopping, dropout.
  • Choosing a regularization strength with cross-validation without fooling yourself.

The interviewer will describe a few models with their training and validation numbers and ask what is going wrong and what you would try next. Reason out loud; no calculation beyond simple arithmetic is needed.

Practise this question with the AI interviewer

Metrics and Thresholds for Imbalanced Classes

Knowledge · Medium · 20 min

A knowledge interview on judging and tuning classifiers when the positive class is rare, at the level of a data scientist or ML engineer with up to a few years of experience.

Be ready to explain, in your own words, and apply to examples:

  • The confusion matrix, precision, recall, the false positive rate and F-scores, and why accuracy misleads when positives are rare.
  • ROC curves versus precision-recall curves: what each shows and which to trust under heavy imbalance.
  • Choosing a decision threshold from the costs of each kind of mistake rather than defaulting to 0.5.
  • Calibration: what it means for a predicted probability to be trustworthy, and how to check it.
  • How resampling and class weights change a model's probabilities, and how to correct for that.

The interviewer will give you a quality-inspection scenario with round numbers and ask you to compute a few metrics out loud and choose a threshold. Simple arithmetic only. All figures are in US dollars.

Practise this question with the AI interviewer

Feature Engineering and Data Leakage

Knowledge · Medium · 20 min · Free to practise

A knowledge interview on building features and validation splits that hold up in production, at the level of a data scientist or ML engineer with up to a few years of experience.

Be ready to explain, in your own words, and apply to examples:

  • Target leakage: features that would not exist, or would carry the answer, at the moment the model makes its prediction.
  • Train-test contamination: fitting scalers, encoders or imputers on all the data, duplicate rows, and the same person appearing on both sides of a split.
  • Choosing a split that matches how the model is used: random, grouped or time-based.
  • Encoding high-cardinality categories such as postal codes or product ids, including target encoding done safely.
  • Treating missing values as information rather than only something to fill in.

The interviewer will describe a few models with suspiciously good or disappointing results and ask you to find the problem and fix it. Simple arithmetic only.

Practise this question with the AI interviewer

Evaluating Retrieval-Augmented LLM Systems

Knowledge · Medium · 20 min

A knowledge interview on measuring and improving a question-answering assistant built on a large language model with retrieval (often called RAG), at the level of a data scientist or ML engineer with up to a few years of experience.

Be ready to explain, in your own words, and apply to examples:

  • How retrieval works: embeddings, chunking documents, keyword versus vector search, combining them and reranking.
  • Retrieval metrics such as recall at k and mean reciprocal rank, and what they need from an evaluation set.
  • Judging generated answers: correctness versus faithfulness to the retrieved sources, and when the assistant should decline to answer.
  • Using a language model as a judge: its known biases and how to check it against human ratings.
  • Splitting an end-to-end failure into a retrieval problem or a generation problem.

The interviewer will describe an internal assistant for a utility company's field technicians, give round numbers from its evaluation and ask where you would invest next.

Practise this question with the AI interviewer

Experiment Design Beyond A/B Basics

Knowledge · Hard · 25 min

A knowledge interview on designing and reading online experiments when the textbook assumptions break, at the level of an experienced data scientist or experimentation lead. It assumes you already know p-values, power and why you should not stop a test early; it goes past them.

Be ready to explain, in your own words, and apply to examples:

  • Interference: why splitting users at random fails in marketplaces and social products, and what cluster, geographic and time-sliced (switchback) designs cost you.
  • Novelty and primacy effects, and how to tell a lasting effect from a temporary one.
  • When the unit you randomize differs from the unit you measure (ratio metrics such as clicks per page view), and how that changes the variance.
  • Using pre-experiment data to reduce variance, and the condition that keeps it unbiased.
  • Effects that differ by segment, guardrail metrics, and long-term holdouts.

The interviewer will describe several experiments at a ride-hailing company, a news app and an online store, with round numbers, and ask what is wrong and what you would do.

Practise this question with the AI interviewer

Causal Inference Without an Experiment

Knowledge · Hard · 25 min · Free to practise

A knowledge interview on estimating cause and effect when you cannot run a randomized experiment, at the level of an experienced data scientist or economist working in industry.

Be ready to explain, in your own words, and apply to examples:

  • Difference-in-differences: the estimate, the parallel-trends assumption and how you would check it.
  • Instrumental variables: what makes a good instrument, and whose effect the estimate describes.
  • Matching and propensity scores: what they can and cannot fix.
  • Regression discontinuity: using a cutoff rule, and what can break it.
  • Synthetic control for a single treated unit, such as one region or one country.

The interviewer will describe policy and product changes at a grocery chain, a software company and a lender, with round numbers, and ask you to pick a method, compute a simple estimate out loud and say what could make it wrong. All figures are in US dollars.

Practise this question with the AI interviewer