Polynomial Regression
Learn how linear regression can be used to build a polynomial regressor.
Why polynomial regression?
Until now, we’ve assumed a linear relationship between features and targets. What if the assumption of linearity doesn’t hold even approximately? The figure below shows that the relationship between a single feature, and a single target, isn’t linear in the data set.
Assuming degree to be known
Let’s look at how we can estimate the parameters, , if we assume, for the sake of simplicity, that the degree of the polynomial to be fit is known.
Example of polynomial with degree 3
Let’s take a simple example with only one feature, , and a single target, . Let’s also assume that ...