Topic summary
Least squares fitting

Extracted from the Wikipedia article Least squares.
Example
We assume that applying force causes the spring to expand. After having derived the force constant by least squares fitting, we predict the extension from Hooke's law.