Centering matrix 2026-11-05
The centering matrix subtracts the arithmetic mean from every component of a real vector. For a positive integer , let have every component equal to one and defineFor , write . Then , so . The output lies in the subspace of vectors whose components sum to zero.
Its orthogonal projection properties follow directly. Set . Since , we have and henceThus is a symmetric idempotent matrix, the orthogonal projector onto . It kills constant vectors and leaves zero-sum vectors unchanged. Its kernel of a linear map is and its rank is ; for it is the zero matrix. The eigenvalues are zero on the constant direction and one on its orthogonal complement.
For an original example, has mean , giving . The centered sum of squares isFor these four observations, the usual sample variance is . Centering removes the mean; it does not itself divide by a standard deviation.
For a data matrix with observations in its rows, centers each column. When , its sample covariance matrix is . Also for any scalar , which proves invariance to adding the same offset to every observation. These identities make the centering matrix useful in least squares and principal component analysis.
Idempotent matrix Created 2026-10-20 Updated 2026-11-05
An idempotent matrix is a square matrix with . Its linear map fixes every vector in its image and sends its kernel to zero. Every vector splits uniquely as , giving a direct sum of the image and the kernel.
Consequently is diagonalizable over any field, with only the eigenvalues zero and one. For example, is idempotent but not symmetric. An idempotent matrix is an orthogonal projection in a real Euclidean inner product precisely when it is also symmetric; idempotence alone gives an oblique projection.
Past exam of the mathematical methods I course of the University of Oxford 2014 resit 6 ii Solution 2026-10-25
If for a nonzero eigenvector, idempotence gives . HenceThese are the only possible eigenvalues; either may be absent. In fact decomposes every vector into the image and kernel of , so every idempotent matrix is diagonalizable even when it is not an orthogonal projection.
Past exam of the mathematical methods I course of the University of Oxford 2014 resit 6 i Solution 2026-10-25
For an idempotent matrix, for every integer . Thus any scalar polynomial reduces toor equivalently . This expression describes all polynomials in , although its two coefficients need not be unique if or .
Past exam of the mathematical methods I course of the University of Oxford 2015 resit 8 Solution 2026-10-25
If for a nonzero eigenvector, then implies , hence . Conversely, the real-symmetric spectral theorem gives with orthogonal . If every diagonal entry of is zero or one, then and therefore . Thus the necessary and sufficient condition isSuch a symmetric idempotent matrix is the orthogonal projection onto its eigenvalue-one eigenspace, with its eigenvalue-zero eigenspace as the kernel. Diagonalizability is essential to the sufficiency argument from eigenvalues alone; symmetry supplies it here.
Past exam of the mathematical methods I course of the University of Oxford 2019 11 c iii Solution 2026-10-25
Using ,Thus is another idempotent matrix. In fact : as linear projections, they select the complementary summands in the decomposition .
Past exam of the mathematical methods I course of the University of Oxford 2019 11 c ii Solution 2026-10-25
If the idempotent matrix is invertible, multiply on the left by its matrix inverse:Thus a nonidentity idempotent matrix must be singular; the identity itself is both invertible and idempotent.
Past exam of the mathematical methods I course of the University of Oxford 2019 11 c i Solution 2026-10-25
If is an matrix, the product is defined in ordinary matrix multiplication only when . Hence the defining equation of an idempotent matrix already requires equal row and column counts:Equivalently, an idempotent linear map is an endomorphism, so the same vector space is both its domain and codomain.
Past exam of the mathematical methods I course of the University of Oxford 2019 11 c iv Solution 2026-10-25
Take determinants of the idempotence equation and use multiplicativity of the determinant:Thus satisfies , provingIf the determinant is one, is invertible and solution gives . Every other idempotent matrix has zero determinant.
Past exam of the mathematical methods I course of the University of Oxford 2019 11 c vi Solution 2026-10-25
Induction from gives for every integer . Separate the zeroth term of the matrix exponential series:Therefore the exponential of an idempotent linear map isThe last form shows its action directly: it multiplies the image of a linear map of by and fixes its kernel of a linear map. No Hermiticity assumption on the idempotent matrix is needed.
Use the residual mean squareTo justify its denominator, let , the orthogonal projection matrix onto the column space of . Then the residual is . The idempotent matrix has rank , so diagonalizing it with an orthogonal matrix givesConsequently , making an unbiased estimator. If specifically asked for maximum likelihood estimation, maximizing over gives the alternative , which is biased downward by the factor .
A normalized pure state has , and thereforeConversely, diagonalize a permissible density operator. Its eigenvalues obey and , soEquality requires every eigenvalue to be zero or one; exactly one is one. Thus the idempotent matrix condition and purity one both characterize a pure state. A mixed state has at least two positive eigenvalues, and . In dimension its purity is at least .
Using the unit length of ,Then ordinary matrix expansion gives . Both and its complementary matrix are projectors. The second calculation in fact holds for every idempotent matrix, without requiring the matrix to equal its transpose.
Take . It has exactly two nonzero entries, both one, but . Thus it is not an idempotent matrix. Its being an orthogonal matrix does not make it an orthogonal projector.
Let . If , the matrix is zero and the identity is immediate. Otherwise choose the rank factorization from part b. The column space of is the image of .
An idempotent matrix acts as the identity on its image: if , then . Applying this to each column of gives . Substituting yields . Since has full column rank, the represented map is injective, so each column of is zero. Thus .
Now the rectangular cyclic property of the trace givesThis proves that the trace of an idempotent equals its rank using the supplied factorization method. Orthogonality of the projection is unnecessary: the argument applies to every real idempotent matrix.
Trace criterion for a two-by-two idempotent 2026-10-25
For , the off-diagonal equations in are . Thus either or the trace is one. The condition alone is not sufficient: has trace one but is not an idempotent matrix. For a two-by-two matrix of trace one, idempotence is equivalent to zero determinant, by the Cayley-Hamilton theorem.
Weighted centering matrix 2026-11-05
A weighted centering matrix subtracts the same weighted mean from every component of a vector. Let satisfy and , where has every component equal to one. DefineThen and . The centered vector has zero weighted mean; its unweighted component sum need not vanish.
The projection properties follow directly from normalization:Also , so its kernel of a linear map is , its range is and its rank is . It is an idempotent matrix. For unequal weights it is generally not symmetric: it projects onto the zero-weighted-mean subspace along the constant-vector direction, an oblique projection in ordinary Euclidean geometry.
For an original example, and give and . The weighted mean is zero, while the ordinary mean is . Euclidean orthogonal projection of onto the same line instead gives .
Weighted centering and Euclidean orthogonal projection reach different points on the same zero-weighted-mean line
. Original two-coordinate example with and . The orange arrow subtracts from both components; the dashed arrow is perpendicular to the green line in the Euclidean metric. Details.If every , put . Then , so this same map is orthogonal for the inner product . It is the residual-making map for minimizing over a fitted constant , the intercept-only case of weighted least squares.[ref] Zero weights preserve the algebraic projection but make this proposed inner product degenerate. When all weights equal , the construction reduces to the usual centering matrix.
