Special Matrices

Tags

types of matrices

  1. Identity matrix: InI_n
  1. One matrix (matrix of ones): JnJ_n
  1. Diagonal matrix: DD
  1. Upper/lower triangular : U,LU, L
  1. Block matrices: [ABCD]\begin{bmatrix} A & B \\C&D\end{bmatrix}
  1. invertible matrices are square matrices such that AA1=A1A=InAA^{-1} = A^{-1}A = I_n .
  1. (AB)1=B1A1(AB)^{-1} = B^{-1}A^{-1}
  1. an orthogonal matrix is a square matrix such that A1=ATA^{-1} = A^T, and this is because the rows are orthonormal (think about it in terms of the dot product matrix product definition
  1. a nilpotent matrix NN is constructed such that Nk=0N^k = 0 for some positive, finite integer kk

Upper triangular matrices

Formally, this is the definiition of upper triangular

think about this for a second and it should make sense

First, we can actually show that over the complex numbers, every operator has an upper triangular matrix. The proof is a little involved, so we won't show it here.

Upper triangular matrices are only invertible if the diagonals re all non-zero. this is because the determinant becomes zero otherwise.

Therefore, eigenvalues are just the entries on the diagonal for an upper-triangular matrix! This is because if you made any one of them zero, the matrix would become non-invertible.

Gram Matrix

We see a lot of ATAA^TA or AATAA^T, which is commonly known as gram matrix.

Interestingly, if XX represents a matrix of vector samples, 1nXTX\frac{1}{n}X^TX is the empirical covariance matrix.

if AA has full column rank, then ATAA^TA is invertible. Why?

This idea will be important when talking about left and right inverses in a second.

You can also conclude that ATAA^TA is symmetric, and this is a result of the dot product interpretation of matrix multiplication. This also means that ATAA^TA has an orthonormal basis of eigenvectors, which means that it can be expressed as ATA=QDQTA^TA = QDQ^T

Outer Product

If we have a nx1 vector xx (standard), we can compute the matrix xxTxx^T, which is an nxn matrix. Each element is just xixjx_i * x_j. This has rank 11, because xxTxx^T is the SVD with a singular value.

In general, if we have an n×kn\times k matrix xx, the n×nn\times n matrix of xxTxx^T has rank kk for the same reasons as outlined above.