How does hyperparameter tuning affect bias and variance?

Updated May 15, 2026

Short answer

Hyperparameter tuning adjusts model complexity to balance bias and variance for optimal generalization.

Deep explanation

Hyperparameters such as learning rate, tree depth, regularization strength, and number of estimators directly control model complexity. Proper tuning helps find the sweet spot where both bias and variance are minimized. Grid search and Bayesian optimization are commonly used to automate this process.

Real-world example

Tuning XGBoost parameters for maximizing predictive performance in credit scoring.

Common mistakes

  • Tuning only on training accuracy instead of validation metrics.

Follow-up questions

  • What is grid search?
  • What is Bayesian optimization?

More Bias & Variance interview questions

View all →