Polynomial Regression

Fitting polynomial curves to data using gradient descent

Speed:

Sample Datasets

Model Parameters

1 (Line)6 (Complex)

Legend

Data Points
Fitted Polynomial

About Polynomial Regression

Model: y = a₀ + a₁x + a₂x² + ... + aₙxⁿ

Cost: Mean Squared Error

Optimization: Gradient Descent

Degree Selection:

• Too low: Underfitting

• Too high: Overfitting

• Just right: Good fit

Complexity: O(d × n × iter)

d=degree, n=points, iter=iterations