Machine Learning Fundamentals interview question · Most asked

Explain the bias-variance trade-off.

How it works Asked in Machine Learning Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

A model's error on new data comes from bias (too simple to capture the pattern: underfitting), variance (too sensitive to the training data: overfitting) and irreducible noise. Making a model more flexible lowers bias but raises variance; the goal is the complexity where validation error is lowest.

Longer Answer

  • High bias: training and validation error both high. Fix with more features, a more flexible model, less regularisation.
  • High variance: training error low, validation error much higher. Fix with more data, regularisation, simpler models, early stopping, ensembling (bagging reduces variance).
  • Learning curves (error vs training-set size) show which one you have.
  • Large neural networks complicate the classic U-shaped picture ("double descent"), but the diagnosis from training vs validation error still works.

Key Points

  • Bias = underfitting, variance = overfitting.
  • Diagnose with training vs validation error.
  • More data and regularisation reduce variance.
  • Learning curves show which problem you have.

Explanation

What interviewers look for

Diagnosing from train/validation gaps and choosing the right fix, not just reciting the definition.

More Machine Learning Fundamentals questions

← All Machine Learning Fundamentals questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake