Linear Algebra

Linear algebra studies vector spaces and linear maps between them. In data science, it is the shared language for feature matrices, least-squares projections, embeddings, covariance geometry, neural layers, PCA, and recommendation factors.

Defining math

A linear map satisfies

After choosing bases, every finite-dimensional linear map is represented by a matrix , and applying it is matrix multiplication:

The fundamental questions are geometric: what directions are stretched, which directions collapse to zero, how much volume is scaled, what subspace is reachable, and how far a vector is from a subspace. These questions become determinants, rank, orthogonality, projections, eigenvalues, and the singular value decomposition.

Worked example

Take and . Applying the map sends a two-coordinate input to three coordinates:

Its two columns and are independent, since neither is a scalar multiple of the other, so has rank . That is why it can represent a two-dimensional plane inside , a useful picture for linear models and projections.

Caveats

Linear algebra gives exact identities over exact numbers, while machine computation uses floating point. Nearly dependent columns can make a matrix look full-rank algebraically but unstable numerically; check singular values or conditioning when estimates are sensitive.

References