Fitting polynomial curves to data using gradient descent
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