Suppose that a scientist has reason to believe that two quantities x and y are related linearly,

Question:

Suppose that a scientist has reason to believe that two quantities x and y are related linearly, that is, y = mx + b, at least approximately, for some values of m and b. The scientist performs an experiment and collects data in the form of points (x1, y2), (x2. y2)  · · · · (xn, yn), and then plots these points. The points don't lie exactly on a straight line, so the scientist wants to find constants m and b so that the line y = mx + b "fits" the points as well as possible. (See the figure.)

y. 0 (X,Y). (xi, Yi) di{L mx + b X

Let di = yi - (mxi + b) be the vertical deviation of the point (x, y;) from the line. The method of least squares determines m and b so as to minimize 

"1d,

the sum of the squares of these deviations. Show that, according to this method, the line of best fit is obtained when

m  xi + bn i=1 71 m 2 x + b 2 x T i=1 i=1 =   i=1 yi = 2x i=1 Xi)

Thus the line is found by solving these two equations in the two unknowns m and b. 

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Calculus

ISBN: 9780495011606

6th Edition

Authors: James Stewart

Question Posted: