Solving systems of linear equations
Solving system of linear equations: Row echelon form and rank
The rank of a matrix
Rank here is referred to as the amount of information/data it holds
Matrix 1
2
As you may have noticed, the matrix is non-singular. The rank of the matrix is 2, as you obtain 2 new pieces of information.
Matrix 2
1
The rank is 1. You can find the rank using different methods from the video. The rank is the largest number of linearly independent rows/columns in the matrix.
The rank of a matrix in general
There's an easier way to find the rank of the matrix and it has to do with the row echelon form of the matrix
Row echelon form
We can think of the row echelon form as solving for a variable
Row echelon form in general
As mentioned before, row echelon form is like the intermediate step of solving a system of equations by eliminating the leftmost variable and isolating the rightmost variable, then turning the coefficients into a matrix
For a singular matrix, we update the rows to 0 for the variables that we don't have unique solutions (can't solve)
Reduced row echelon form
Reduced row echelon form is the solved system's coefficients turned into a matrix
The Gaussian Elimination Algorithm
Turn the matrix into a row echelon form and also apply operations to the column of constants (last column)
Then apply back substitution to the reduced echelon form
All the information here is based on the Linear Algebra for Machine Learning and Data Science | Coursera from DeepLearning.AI
'Coursera > Mathematics for ML and Data Science' 카테고리의 다른 글
Linear Algebra for Machine Learning and Data Science (9) (0) | 2024.05.05 |
---|---|
Linear Algebra for Machine Learning and Data Science (8) (0) | 2024.05.04 |
Linear Algebra for Machine Learning and Data Science (6) (0) | 2024.05.02 |
Linear Algebra for Machine Learning and Data Science (5) (0) | 2024.05.01 |
Linear Algebra for Machine Learning and Data Science (4) (0) | 2024.04.23 |