Linear Algebra
Vectors, Matrices, Eigenvalues, and SVD.
For a small example, move the point (1, 0) by a 90-degree rotation matrix. Multiply matrix by vector, track dimensions, and interpret the result geometrically rather than as symbol pushing.
Vectors, Matrices, Eigenvalues, and SVD.
For a small example, move the point (1, 0) by a 90-degree rotation matrix. Multiply matrix by vector, track dimensions, and interpret the result geometrically rather than as symbol pushing.
A dataset has many redundant sensor readings. Center the matrix, inspect singular values, project to principal directions, and measure retained variance.
Initializing Interactive Playground...
Predict which direction a basis vector will move and whether area will grow, shrink, or flip.
The starter deliberately follows a tempting but flawed assumption: Treating matrices as tables without geometry
Check: The browser checks pass and you can name the failure mechanism before opening the explanation.
Failing starter lab
Implement vector projection and verify that the residual is orthogonal to the target direction.
Run the incomplete starter before opening hints. Use the first wrong output or failed check to form a repair hypothesis.
Explanations after each answer · 80% to pass · Linear Algebra
Chapter 1 of 7 · Core
At the heart of linear algebra lies the abstract algebraic structure of a Vector Space. Formally, a vector space over a field (in machine learning, almost exclusively the real numbers ) is a set equipped with two binary operations—vector addition () and scalar multiplication ()—that satisfy the following eight axioms for all and :
Let be a set of vectors.
If there exists a set of coefficients not all zero that sums to , the vectors are linearly dependent, meaning at least one vector can be expressed as a linear combination of the others.
Since the basis vectors are linearly independent, we must have for all , meaning .
A mapping between two vector spaces over the same field is a linear transformation if it preserves vector addition and scalar multiplication:
Every linear transformation between finite-dimensional spaces can be represented as a matrix. Specifically, if is a basis for and is a basis for , the matrix representing has columns containing the coordinates of relative to the basis .
In machine learning, data points are typically represented as high-dimensional feature vectors residing in . The geometric properties of change dramatically as increases—a phenomenon known as the curse of dimensionality:
Dimensionality reduction techniques (like PCA, Autoencoders, and t-SNE) exploit the manifold hypothesis, which asserts that high-dimensional real-world data concentrates near low-dimensional, non-linear sub-manifolds embedded within .
Key equations
Vectors: What Even Are They?
3Blue1Brown
Build the geometric and computational meaning of vectors used throughout machine learning.
Primary sources and free technical reading for Linear Algebra.