How does increasing polynomial degree in polynomial regression alter a model's bias and variance?

Quick Overview

Asks how raising the degree of a polynomial regression model changes its bias and variance, and what the fits look like at low and very high degrees. Tests the bias-variance tradeoff, model capacity, and how to choose model complexity in practice.

How does increasing polynomial degree in polynomial regression alter a model's bias and variance?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does increasing polynomial degree in polynomial regression alter a model's bias and variance? Assume the number of training points stays fixed while the degree grows. ```hint Count the parameters Compare the number of coefficients in a degree-d polynomial with the number of training points, and think about what that ratio does to training error and to fits drawn from different samples. ``` ### What a Strong Answer Covers - The direction in which bias and variance each move as the degree rises, and the resulting shape of test error. - What underfitting looks like at low degree, in terms of training error, test error and stability across samples. - What happens at very high degree, including exact interpolation of the training points and behavior near the edges of the data. - Why variance grows with degree, tied to the number of parameters relative to the sample size. - How to choose or control the degree in practice. ### Follow-up Questions - If you double the training set, how does the best degree change, and why? - How does adding a ridge penalty to a degree-15 fit differ from simply lowering the degree? - Why can splines give a flexible fit without the oscillation of a single high-degree polynomial? - Why does feature scaling matter before you generate high-degree polynomial features?

Overview: Asks how raising the degree of a polynomial regression model changes its bias and variance, and what the fits look like at low and very high degrees. Tests the bias-variance tradeoff, model capacity, and how to choose model complexity in practice.

PracHub logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does increasing polynomial degree in polynomial regression alter a model's bias and variance? Assume the number of training points stays fixed while the degree grows.

What a Strong Answer Covers Guidance

  • The direction in which bias and variance each move as the degree rises, and the resulting shape of test error.
  • What underfitting looks like at low degree, in terms of training error, test error and stability across samples.
  • What happens at very high degree, including exact interpolation of the training points and behavior near the edges of the data.
  • Why variance grows with degree, tied to the number of parameters relative to the sample size.
  • How to choose or control the degree in practice.

Follow-up Questions Guidance

  • If you double the training set, how does the best degree change, and why?
  • How does adding a ridge penalty to a degree-15 fit differ from simply lowering the degree?
  • Why can splines give a flexible fit without the oscillation of a single high-degree polynomial?
  • Why does feature scaling matter before you generate high-degree polynomial features?