When both axes are affected by error (noise as a function of distance), the cost function that maximizes the likelihood is called the orthogonal least-squares line fit.
The error can be expressed as the distance between the point and the line, according to Equation (1.67).
Regression using this metric, also called perpendicular regression or total least squares (see Section 4.2.2), is appropriate when both coordinates are affected by error, that is, when both are random variables.
The noise levels in the two components are assumed to be equal (for the more general case, see the discussion in Section 2.4).
The error function
to be minimized is the distance between the point and the line:
The partial derivative
shows that the regression line passes through the centroid
of the distribution, that is,
Using the relationship (4.104), the error function (4.103) can be written as:
Finally, note that the same result can be obtained much more simply by applying singular value decomposition (SVD) to the centered point matrix. The resulting line coincides with the orthogonal regression line (total least squares) and therefore minimizes the geometric error defined as the orthogonal distance of the points from the line.
Paolo medici