Skip to content

Glossary: Linear Algebra for ML

Least squares

Also written: line of best fit, np.linalg.lstsq, lstsq

Choosing coefficients that make the sum of squared residuals as small as possible. `np.linalg.lstsq` does it and copes with repeated columns.

Where the book teaches it

Related terms

ResidualDesign matrixNormal equationsLinear regression