Centering matrix
In mathematics and multivariate statistics, the centering matrix is a symmetric and idempotent matrix, which when multiplied with a vector has the same effect as subtracting the mean of the components of the vector from every component of that vector.[src]
In mathematics and multivariate statistics, the centering matrix is a symmetric and idempotent matrix, which when multiplied with a vector has the same effect as subtracting the mean of the components of the vector from every component of that vector.[src] C_n = I_n - \tfrac{1}{n}J_n where I_n\, is the identity matrix of size n and J_n is an n-by-n matrix of all 1's.[src] For example C_1 = \begin{bmatrix} 0 \end{bmatrix} , C_2= \left[ \begin{array}{rrr} 1 & 0 \\ 0 & 1 \end{array} \right] - \frac{1}{2}\left[ \begin{array}{rrr} 1 & 1 \\ 1 & 1 \end{array} \right] = \left[ \begin{array}{rrr} \frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & \frac{1}{2} \end{array} \right] , C_3 = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] - \frac{1}{3}\left[ \begin{array}{rrr} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{array} \right] = \left[ \begin{array}{rrr} \frac{2}{3} & -\frac{1}{3} & -\frac{1}{3} \\ -\frac{1}{3} & \frac{2}{3} & -\frac{1}{3} \\ -\frac{1}{3} & -\frac{1}{3} & \frac{2}{3} \end{array} \right] C_n\,\mathbf{v} = \mathbf{v} - (\tfrac{1}{n}J_{n,1}^\textrm{T}\mathbf{v})J_{n,1} where J_{n,1} is a column vector of ones and \tfrac{1}{n}J_{n,1}^\textrm{T}\mathbf{v} is the mean of the components of \mathbf{v}\, .[src] C_n\, is symmetric positive semi-definite.[src] C_n\, is idempotent, so that C_n^k=C_n , for k=1,2,\ldots .[src] Once the mean has been removed, it is zero and removing it again has no effect.[src] C_n\, is singular.[src] The effects of applying the transformation C_n\,\mathbf{v} cannot be reversed.[src] C_n\, has the eigenvalue 1 of multiplicity n − 1 and eigenvalue 0 of multiplicity 1.[src] C_n\, has a nullspace of dimension 1, along the vector J_{n,1} .[src] C_n\, is an orthogonal projection matrix.[src] That is, C_n\mathbf{v} is a projection of \mathbf{v}\, onto the (n − 1)-dimensional subspace that is orthogonal to the nullspace J_{n,1} .[src] (This is the subspace of all n-vectors whose components sum to zero.) The trace of C_n is n(n-1)/n = n-1 .[src] The centering matrix provides in particular a succinct way to express the scatter matrix, S=(X-\mu J_{n,1}^{\mathrm{T}})(X-\mu J_{n,1}^{\mathrm{T}})^{\mathrm{T}} of a data sample X\, , where \mu=\tfrac{1}{n}X J_{n,1} is the sample mean.[src] The centering matrix allows us to express the scatter matrix more compactly as S=X\,C_n(X\,C_n)^{\mathrm{T}}=X\,C_n\,C_n\,X\,^{\mathrm{T}}=X\,C_n\,X\,^{\mathrm{T}}.[src] C_n is the covariance matrix of the multinomial distribution, in the special case where the parameters of that distribution are k=n , and p_1=p_2=\cdots=p_n=\frac{1}{n} .[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Centering matrix." encyclopegia.org, 2025, https://encyclopegia.org/wiki/centering-matrix. Accessed 04 December 2026.
Chicago
"Centering matrix." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/centering-matrix.
APA
encyclopegia.org. (2025). Centering matrix. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/centering-matrix
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON