Polynomial Regression
Polynomial Regression
Not all relationships in data are straight lines—and that’s where polynomial regression becomes powerful. When patterns start to curve, bend, or grow in unexpected ways, a simple linear model isn’t enough. Polynomial regression allows us to fit a smooth curve through the data, helping us capture real-world complexity more accurately and make better predictions.

A polynomial is a kind of expression:
if a ≠ 0 then is a polynomial in of degree
all are constant.
fitting of this line on given data points we have n data points given.
Sometime data points are distributed in the space in such a way that it is not possible to fit a line on the data point H so in the figure observing the distribution pattern of the data points we feed suitable curve on the given data points polynomial regression.
if c ≠ 0 second degree polynomial.
Error Calculation:
Square of Errors:
Sum of Square of Errors:
Where:
method of least sum of square of error to fit the polynomial.
Goal
The expression on the parameter to minimize we need to differentiate partially with respect to and and then equating them with zero.
Partial Derivative with respect to :
Equating with 0
Divide both sides by :
Partial Derivative with respect to :
Equating with 0
Divide both sides by :
Partial Derivative with respect to :
Equating with 0
Divide both sides by :
