Assume that y is a linear function of x that is y=mx+b and experimental data is given. We want to find the parameters m and b such that the line y=mx+b be as `` close " as possible to the given points.
Set
solve the linear system .