Doublecentering
Double-centering is a matrix operation used to transform a square matrix into a centered form by removing its row and column effects and then adding the overall mean. The resulting matrix has zero row sums and zero column sums, which makes it useful for revealing intrinsic structure in the data. It is commonly applied to distance or similarity matrices and to data matrices in multivariate analysis.
Given an n-by-n matrix A, the double-centering procedure computes row means r_i = (1/n) sum_j a_ij, column
In classical multidimensional scaling (MDS), double-centering is applied to the squared distance matrix D^2 to obtain
Properties and caveats include that double-centering enforces zero sums across rows and columns; if the original