Proof that if all eigenvalues of a symmetric real matrix are either 0 or 1, it is an idempotent matrix
Theorem
If all the eigenvalues of the symmetric matrix are either or , then is an idempotent matrix.
Explanation
This lemma is used in the proof of the equivalence conditions for the chi-square-ness of quadratic forms of normally distributed random vectors and the proof of Cochran’s theorem.
Proof
Spectral Theory: If is a Hermitian matrix, then it can be unitarily diagonalized:
If the real matrix is a symmetric matrix, then it is a Hermitian matrix and hence diagonalizable. Let be the diagonal matrix composed of the eigenvalues of , and be the unitary matrix, then we have , yielding: However, since the diagonal matrix has only and as its principal diagonal elements, it follows that , and thus is an idempotent matrix as shown below:
■