Orthogonal Plane Fitting
The considerations made for a line can also be extended to a plane.
It should be emphasized that orthogonal regression of a line, plane, or hyperplane can be reduced to an eigenvalue problem and solved using SVD; this is precisely the main application of PCA.
Let
be the centroid of the points involved in the regression.
Given the plane equation (1.85) and an error function defined as the sum of the distances (1.88), we immediately obtain the constraint:
 |
(4.108) |
that is, as already observed for the line, the centroid of the distribution lies on the plane.
Starting from this constraint, the plane can be represented as
 |
(4.109) |
an overdetermined homogeneous system, whose solution can be obtained using the pseudoinverse (for example, via QR or SVD factorization).
The value of
thus obtained is defined only up to a multiplicative factor and can therefore be normalized to unit length (solutions obtained through factorization are usually already normalized).
Paolo medici
2026-10-19