KatInterview

Nine-Part ML Fundamentals and Model Diagnostics Review

Machine LearningModel answer
MediumModel answerMachine Learningml-fundamentalsbias-variancegradient-descent

Last updated

Answer nine practical questions on statistical testing, model fit, causality, representations, optimization, imbalanced data, misleading accuracy, and experiment sanity checks.

Imagine a breadth-oriented screen for a senior applied science position. You are asked a series of short conceptual questions and are expected to give, for each one, a clear definition, the situations in which it matters, and the typical mistakes people make.

Answer the following:

  1. Significance testing. What does a p-value measure? What conclusions does it support, and which ones does it not?
  2. Model fit. Define overfitting and underfitting. How would you detect each one, and what would you change to fix it?
  3. Causality. What is causal inference, and which families of methods are used to estimate causal effects? Briefly describe each.
  4. Representations. What do "encoding" and "decoding" mean in machine learning? Give concrete examples from both feature engineering and neural architectures.
  5. Optimization. Explain gradient descent and backpropagation at a high level, and how they relate.
  6. Gradient stability. What are vanishing and exploding gradients? How do you spot them and reduce them?
  7. Skewed classes. How do you approach a classification problem where one class is extremely rare?
  8. Misleading accuracy. Describe a case where a model scores 99% accuracy yet is nearly useless. How would you evaluate it properly and improve it?
  9. Experiments. What is an A/B test? If its result looks strange or too good to be true, what could be going on and how would you investigate?

Aim for roughly one to two minutes of spoken answer per item, with the option to go deeper on any of them.

Hints

Hint 1

For each item, use the same skeleton: definition, when it matters, how to diagnose it, how to fix it, and one common trap.

Hint 2

Many of these topics share a theme: leakage, distribution shift, and wrong metrics are often the real cause behind a symptom that looks like something else (overfitting, a great A/B lift, 99% accuracy).

Hint 3

Separate what computes from what uses: backprop computes gradients, gradient descent consumes them; resampling belongs only in training data; the p-value is about the data under the null, not about the hypothesis.

Hint 4

For the suspicious A/B test, think in layers: assignment integrity (sample ratio mismatch), instrumentation, metric definition, statistical practice (peeking, multiple tests), then real-world effects (novelty, interference, seasonality).