Underfitting (Intuition) Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

easy
A scatter plot shows a clear U-shaped relationship between xx and yy. A linear model is fitted and gets R2=0.05R^2 = 0.05. Explain what underfitting is and how to fix this model.

Solution

  1. 1
    Underfitting: the model is too simple to capture the U-shaped pattern โ€” a line cannot represent a curve
  2. 2
    R2=0.05R^2 = 0.05: only 5% of variation explained โ€” the model is nearly useless
  3. 3
    Diagnosis: both training error and test error are high (model fails everywhere)
  4. 4
    Fix: use a quadratic model y^=ax2+bx+c\hat{y} = ax^2 + bx + c which can capture U-shapes; check that R2R^2 improves significantly

Answer

Underfitting: linear model can't capture U-shape. Fix: use quadratic model to match the true curved relationship.
Underfitting (high bias) occurs when the model's functional form is too restrictive for the true relationship. Unlike overfitting (which needs simplification), underfitting requires a more flexible model class to capture the real pattern in the data.

About Underfitting (Intuition)

Underfitting occurs when a model is too simple to capture the true pattern in the data, performing poorly on both training data and new data.

Learn more about Underfitting (Intuition) โ†’

More Underfitting (Intuition) Examples