least squares fitting proceeds by finding the sum of the squares of the vertical deviations
The condition for
for i=1, …, n. For a linear fit,
so
These lead to the equations
In matrix form,
so
The 2×2 matrix inverse is
so
least squares fitting proceeds by finding the sum of the squares of the vertical deviations
The condition for
for i=1, …, n. For a linear fit,
so
These lead to the equations
In matrix form,
so
The 2×2 matrix inverse is
so