Bias-Variance interview question

Machine LearningBias-Variancebasic

What does the bias–variance trade-off describe?

  1. AAs model flexibility increases, bias and variance both tend to fall, so the most complex model gives the lowest test error.
  2. BAs model flexibility increases, bias tends to rise while variance tends to fall, so the simplest models are the ones that overfit.
  3. CCollecting more training data lowers bias but raises variance, so the dataset size must be tuned like any other hyperparameter.
  4. DAs model flexibility increases, bias tends to fall while variance tends to rise, so test error is often lowest at a middle complexity.
Show the answer and explanation

Correct answer: D, As model flexibility increases, bias tends to fall while variance tends to rise, so test error is often lowest at a middle complexity.

Explanation Bias-Variance

A more flexible model can fit the true pattern more closely (lower bias) but also reacts more to the noise in a particular training sample (higher variance). Because expected squared-error test error is bias² + variance + noise, the classic test-error curve against complexity is U-shaped, and the best model usually sits somewhere in the middle.

Why the other statements are wrong:

  • Bias and variance do not both fall with complexity; if they did, the largest model would always win and overfitting would not exist.
  • The directions are swapped: simple models underfit (high bias), flexible models overfit (high variance).
  • More data mainly reduces variance; it does not raise it, and it does not fix bias.
ModelBiasVariance
Very simplehighlow
Very flexiblelowhigh

Interview tip: tie it to complexity controls you actually tune (tree depth, λ, k in KNN) and say you pick the setting by validation error.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Machine Learning questions

  1. What does the mean squared error cost J(w) = (1/n) Σ (yᵢ − ŷᵢ)² measure for a linear regression model?
  2. What does the Gini impurity of a decision-tree node measure?
  3. Which statement correctly contrasts bagging and boosting?
  4. What is the "naive" assumption in Naive Bayes?
  5. Which description matches the standard k-means (Lloyd's) algorithm?