Matrices and Vectors
Matrix: rectangular array of numbers, for example:
A=[1x2y4z]
Dimension of matrix: rows x columns. Above example is a 3 x 2 matrixMnemonic: flying RC toy inside the matrix
Matrix Elements: Aij = "i,j entry" in the ith row, jth column
So, A11=1,A32=z in above example
Vector: is an n x 1 matrix, for example:
v=[1x2y]
Dimension of vector: number of rows. Above example is a 4-dimensional vectorVector Elements: vi=ith element
Can be either 1-indexed or 0-indexed, by default for this course, it is 1-indexed
Convention: uppercase to refer to matrices, lowercase to refer to scalars, vectors
Addition and Scalar Multiplication:
Matrix Vector Multiplication:
Trick to solve all in one go:
Matrix Matrix Multiplication:
Trick to solve all in one go:
Matrix Multiplication Properties:
- Not commutative A x B ≠ B x A
- Is associative: A x B x C = (A x B) x C = A x (B x C)
- Identity matrix (unit matrix), I: square matrix 1s on the main diagonal and zeros elsewhere
- A x I = I x A
Inverse and Tranpose:
- If A is an m x m matrix, and if it has an inverse, then AA−1=A−1A=I
- Matrices that don't have an inverse are "singular" or "degenerate"
- B is transpose of A, B=AT then Bij=Aji
Resources:
- https://www.coursera.org/learn/machine-learning/lecture/38jIT/matrices-and-vectors
- https://en.wikipedia.org/wiki/Identity_matrix
Comments
Post a Comment