Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Machine Learning Fundamentals: Understanding Underfitting and Overfitting Explained

My Project HD 1 min read

In machine learning, two common pitfalls that hinder model performance are underfitting and overfitting. This article explores both concepts clearly.

Underfitting occurs when a model is too simple to capture the underlying patterns in the data. It performs poorly on both training and new data. For example, using a linear model for a non-linear relationship leads to underfitting.

Overfitting happens when a model is too complex and learns the noise in the training data instead of the actual signal. It performs well on training data but poorly on unseen data. For instance, a deep decision tree may memorize every data point.

Key differences

  • Underfitting: high bias, low variance. Overfitting: low bias, high variance.
  • Underfitting fails to learn, overfitting learns too much.

Solutions

  • For underfitting: increase model complexity, add features, or reduce regularization.
  • For overfitting: simplify the model, use regularization, cross-validation, or more training data.

Striking the right balance is crucial for building models that generalize well.

React