Skip to content

Polynomial Regression Model

Polynomial Regression extends the linear model by adding extra predictors, obtained by raising each of the original predictors to a power. This method provides a way to model a non-linear relationship between the dependent and independent variables.

Simple Explanation

Polynomial Regression is like giving a line in our graph the freedom to curve and bend. It’s especially useful when the relationship between variables isn't straight-forward or linear.

Formula

The model's formula is:

y = β₀ + β₁x₁ + β₂x₁² + ... + βₙx₁ⁿ + ε

Here, y represents the dependent variable we're trying to predict, x₁ is the independent variable, β₀ is the y-intercept, β₁ to βₙ are the coefficients for each degree of the independent variable, and ε is the error term.

Parameters

For our project we only used one parameter, degree, which is the degree of the polynomial. This determines the curvature of the fit.

  • The degree of the polynomial (n), which determines the curvature of the fit.

Another key parameter (which we did not use for simplicity) is:

  • The coefficients (β₁ to βₙ), which are adjusted during the training process to fit the curve to the data.

Unlike some other models, Polynomial Regression does not have an intrinsic feature importance metric. However, the size of the coefficients can give some indication of the importance of each term.

Feature Importance

Polynomial Regression doesn't directly provide feature importance. However, the magnitude of the coefficients can imply how much influence each degree of the independent variable has on the dependent variable.

For a detailed understanding of Polynomial Regression, you can refer to the documentation.

Code

To see how we implemented Polynomial Regression in our project including cross-validation, check out the Polynomial Regression notebook.