Least-squares regression#
Polynomial least-squares regression via the normal equations, and how the fit’s numerical conditioning worsens as the polynomial degree grows.
Least-squares polynomial regression and its conditioning
Least-squares polynomial regression and its conditioning