Question: what is the difference between least squares and linear regression?
Answer: In short, linear regression is one of the mathematical models to describe the (linear) relationship between input and output. Least squares, on the other hand, is a method to metric and estimate models, in which the optimal parameters have been found.