Least squares is a form of approximation, used to make a prediction based on experimental data.
Given a set of points , and the deviation from the points minimize .
Finding the minimum involves talking a look a the derivates.
Removing unnecessary 2 constant (solving to approach 0), and simplifying:
This can be re-written as a 2x2 linear system: