For a symmetric zero-diagonal dissimilarity matrix , square each entry to obtain and put . Take the eigenvectors of corresponding to its largest positive eigenvalues. Multiplying them by square roots of these eigenvalues gives coordinates. If contains Euclidean distances, is a centered Gram matrix, so retaining all positive eigenvalues reconstructs those distances exactly. Retaining fewer approximates the Gram matrix, not generally the sum of squared errors in raw distances. Negative eigenvalues signal failure of an exact Euclidean representation. Coordinates are unchanged in meaning by orthogonal transformations.
For symmetric nonnegative with zero diagonal, a centered Euclidean realization implies and hence the displayed double-centering identity. Conversely, if the double-centered matrix is positive semidefinite, factor it as . Its reconstructed squared distances equal the original squared distances: their difference has zero double-centering, so is of the form ; the zero diagonal forces . The minimum exact embedding dimension is .

Articles by others on the same topic (0)

There are currently no matching articles.