Polynomial Regression
It is not necessary for us to always use only the features that we have. If needed, we can sometimes create new features using the existing ones that might be more suitable for the given problem.
For example, if we have length and width, we can use them to form a new feature named area and perform linear regression using this new feature.
Polynomial Regression is very similar to multivariate linear regression. Each could be a degree of a given feature.
For example,
where
However, while using Polynomial Regression, it is very important to scale the features for gradient descent to work properly.
We can decide to use Polynomial Regression in any manner, i.e. we can even write our hypothesis as:
Later, we discuss how certain algorithms help us in choosing what features to use and how to use them efficiently.
Last updated
Was this helpful?