KatInterview

Diagnose the Bias–Variance Source in a Noisy Experiment

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsbias-variance tradeoffmodel evaluationoverfitting

Last updated

Given a model's train/validation/test error profile and experimental setup, identify whether bias or variance dominates and prescribe the right fix.

Scenario

You are a data scientist at a streaming platform. A colleague has trained a gradient-boosted tree model to predict whether a user will churn in the next 30 days. They share the following numbers from a single random 70/15/15 train/validation/test split:

SplitLog-loss
Train0.18
Validation0.41
Test0.43

The baseline (predicting the churn rate mean for every user) achieves a log-loss of 0.48 on the test set.

A second colleague suggests simply collecting more training data. A third colleague suggests adding L2 regularization. You are asked to weigh in.


What is expected

  1. Diagnose the model's error profile: what does the gap between train and validation/test loss tell you? Use the terms bias and variance precisely.

  2. Evaluate each colleague's suggestion in the context of your diagnosis.

  3. Propose a concrete remediation plan with at least two actionable steps, and explain what you would measure to confirm the fix worked.

  4. Describe one common mistake candidates make when interpreting train/validation gaps.

No code is required. Walk through the reasoning step by step.

</summary>

Hints

Hint 1

Start by computing the generalization gap (validation loss − train loss) and the approximation gap (train loss − irreducible noise floor). Which gap is larger here?

Hint 2

Think about what a very large train/validation gap means for model complexity versus what a large train/validation gap means for data quantity.

Hint 3

Consider what happens to the bias–variance decomposition when you add regularization versus when you simply add more data — are they solving the same problem?