What is polynomial regression?
In linear regression, we consider a linear relationship between the target and the predictor variables. But sometimes the target variable does not have a linear relationship with the predictor variables or the features. For example, let’s consider the following graph.
The x-axis here indicates the horsepower of a car. And the y-axis indicates the miles driven by the car per gallon of gasoline. As we can see from the plot, the two variables do not seem to have a linear relationship between them. We will use polynomial regression here.
In polynomial regression, the relationship between the target variable and the predictor variables or the features can be represented using the following equation:
Here, x is the predictor variable and Y is the target variable. The error is indicated by e. β0, β1, … βn are coefficients and they are selected so that the error is minimal…






0 Comments