A brief disclaimer.
Today and all the other days are where I'll suck, I'll still dedicate the same amount of time to read a day, but the content might be less :D since even if a formula is proven, it's better to try and disprove it too. So I'll bribe you with a meme from reddit.
A mini review for vectors
- An array of numbers (Computer Science)
- An array with direction and magnitude (Physics)
- An object that obeys addition and scaling (Mathematics)
Chapter 2 (Linear Algebra)
Examples of Vectors
- Geometric vectors
- Polynomials
- Audio
- Elements of real numbers
Why?
The simple explanation is, all four examples obey the mathematical definition that these values can be added and becomes a new set of vector.
Vector Mindmap
The tl;dr:
- Matrix are composed of vectors and represents system of linear equations
- System of linear equations can solve matrix inverse by using gaussian eliminations
- Vector are the properties of linear independence, which is explained alongside linear/affine mapping in Chapter 12 Classifications
System of Linear Equations
Why should you know system of linear equations?
The simple flow is if a problem can be transformed to system of linear equations, then that problem can be solved using linear algebra.
Though there is a caveat that the amount of equations must be the same as the amount of unknown variables (Commonly... I'll explain this later on)
Example
No solutions
Adding (1) and (2):
This contradicts (3):
Found Solution
Subtracting (1) and (2) -> (4):
Subtracting (3) and (4):
Subtracting (3) and (4):
With x3 found, it's just a matter of replacing the known equations and we'll find
Surprise Quiz!
There's one more problem. There's no contradictions and (technically) there's an answer. But what's more fun is, try and see what makes this problem difficult to solve by creating a question yourself!
No cheating >:( It's about having fun learning, not finding the answers.
Three base concepts of matrices
- Additions and subtractions. The rule is the row and column of both matrix are the same.
- Multiplication (Dot Product). The rule is the number of columns of the first matrix (In this case A) needs to have the same value as the row of the second matrix (In this case B).
- The Identity Matrix
A NxN-matrix with the main diagonal being filled with 1 while the rest are zeros.
Properties of Matrices
Much like the base concepts, there are three properties described in the book before we delve into Inverse and Transpose.
Associativity
Don't be scared or annoyed by these symbols! This just means for all (V) A, B, and C that belongs to real numbers (R) with the dimensions of mxn,nxp,pxq respectively will create the equation.
P.S. If you weren't scared or annoyed, congratulations you're not me.
Distributivity
Much like scaling the matrix, when there's both addition/subtraction along side multiplication, the multiplication is distributed throughout the addition/subtraction.
Multiplication with identity matrix
When a matrix is multiplied by an identity matrix, the resulting matrix won't change. The same goes for an identity matrix multiplied by a matrix, the result will not change the shape nor the values of the matrix multiplied.
Acknowledgement
I can't overstate this: I'm truly grateful for this book being open-sourced for everyone. Many people will be able to learn and understand machine learning on a fundamental level. Whether changing careers, demystifying AI, or just learning in general, this book offers immense value even for fledgling composer such as myself. So, Marc Peter Deisenroth, A. Aldo Faisal, and Cheng Soon Ong, thank you for this book.
Source:
Deisenroth, M. P., Faisal, A. A., & Ong, C. S. (2020). Mathematics for Machine Learning. Cambridge: Cambridge University Press.
https://mml-book.com
Top comments (0)