Linear Algebra: Dama50 - Mathematics For Machine Learning
Linear Algebra: Dama50 - Mathematics For Machine Learning
Linear Algebra: Dama50 - Mathematics For Machine Learning
Linear Algebra
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Linear algebra is the study of vectors and certain rules to
manipulate vectors
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Manipulating vectors
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Systems of Linear Equations
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Matrix
Matrix
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Matrix Addition
A+B=B+A
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Matrix Multiplication
AB≠BA
matrix multiplication is not commutative
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
(Back to) Systems of Linear Equations
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Identity Matrix
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Inverse Matrix
AB = I = BA
Inverse of a 2x2 matrix
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Inverse of a 2x2 matrix
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Inverse of a 2x2 matrix
Determinants
Determinant of a 2x2 matrix
Multiplication by a Scalar
Multiply a matrix A by a scalar λ
λ A = K, where Kij =λ Aij.
Transpose Matrix
For a matrix A, the matrix B with
bij = aji is called the transpose of A.
We write B = AT.
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Transpose Matrix
The transpose of a matrix A (denoted by ) is obtained by interchanging the rows and columns of A.
Example:
Example:
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Matrix inverse
The inverse of a square matrix denoted by is defined as follows
provided We can calculate the inverse of a matrix using the following formula
Why do we need the inverse of a square matrix?
Solving Systems of Linear Equations (Gaussian Elimination)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Solving Systems of Linear Equations (Gaussian Elimination)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Linearly (In)dependent Vectors
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Linearly (In)dependent Vectors (Example)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Linearly (In)dependent Vectors (Example)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Basis
Consider a vector space V and a generating set A of V is called
minimal if there exists no smaller set A that spans V. Every linearly
independent generating set of V is minimal and is called a basis of V.
Rank
The number of linearly independent columns of a matrix A equals the
number of linearly independent rows and is called the rank of A and is
denoted by rk(A).
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Basis (Example)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Rank (Example)
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Image and Kernel of a transformation
DAMA50 - MATHEMATICS FOR MACHINE LEARNING
Kernel of a transformation (exercise).