When the error affects both axes (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 using the distance between the point and the line, according to equation (1.67).
The regression using this metric, therefore called Perpendicular Regression or Total least squares (see Section 4.2.2), is meaningful when both coordinates are affected by error, that is, when both are random variables.
The amount of noise on the two components is 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:
From the partial derivative
, it follows that the regression line passes through the centroid
of the distribution, that is,
Using relation (4.96), the error function (4.95) can be written as:
Finally, it should be noted that the same result is obtained much more simply by applying the SVD decomposition to the line equation. In the case of linear regression, the SVD decomposition minimizes both the algebraic and geometric error (the algebraic and geometric errors coincide when all noisy terms are confined to the constant term).
Paolo medici