Matrix 101 - Identity Matrix

1 minute read

Matrix is very important in understanding math in machine learning. I will spend a few posts to explain the basics and then focus on the applications in ML.

symbols used in the post

SymbolMeaning
Athe matrix, Amn means a m×n matrix
Aijthe (i,j) element of the matrix
A1the inverse of matrix A
Ithe identity matrix, alternatively, use In means dimension n identity matrix
0the zero matrix, or null matrix, all elements are 0
diagthe diagonal of matrix

Definition

Identity matrix is a matrix where elements on the main or principal diagonal are 1 and all other elements are 0.

Alternatively, unit matrix is also used.

[1000010000100001]

The math notation of a identity matrix can be described via a diagonal matrix In=diag(1,1,1,,1)

Properties

Identity matric has some good peroperties in term of matrix mulitplication

multiplying any matrix by the identity matrix results in the matrix itself

ImAmn=Amn=AmnIn

Any matrix multiplied by its inverse reulsts in identity matrix

AA1=I

All the powers of identity matrix are equal to the identity matrix In=I

The identity matrix is analogous to the number “1” in scalar algebra.

References