3.3 Special matrices
In the special case where a matrix has the same numbers of rows and columns, it is said to be square. If , the matrix is said to be symmetric.
Note that a matrix cannot be symmetric unless it is square.
A matrix is said to be idempotent if . Note that only square matrices can be idempotent. Idempotent matrices play a huge role in statistics, where they are typically referred to as projection matrices. Conceptually, the idea is that defines a transformation and if is idempotent, then applying it twice has the same effect as applying it once. In other words, you can project a vector onto a new space, but projecting it again doesn’t do anything, because it’s already been projected into that space.
The elements of a matrix are called its diagonal entries; a matrix for which for all is said to be a diagonal matrix:
Consider in particular the following diagonal matrix:
Note that this matrix has the interesting property that for all ; in other words, . Because of this property, is referred to as the identity matrix.
Some other notations which are commonly used are , the vector (or matrix) of 1s, and , the vector (or matrix) of zeros:
The dimensions of these matrices is sometimes explicitly specified, as in , , or . Other times it is obvious from context what the dimensions must be.
Finally, the vector is also useful: it has element and for all other elements:
This is useful for selecting a single element of a vector: .