Physics
DOI: 10.1139/p66-090

Abstract

A detailed discussion of the calculation of the "best straight line" by the method of least squares is given. The most general solution is found and the conditions under which certain previously derived special solutions are valid are clearly stated. The "best" slope is shown to be given by the solution of the "Least-Squares Cubic". An example is given to illustrate the method. It is shown that the best slope is not necessarily bounded by values found from the regressions of x on y and y on x.

Citation format

YORK, D. Least-squares fitting of a straight line. CANADIAN JOURNAL OF PHYSICS, 1966, 44: 1079–1086.