18 min total

Machine Learning

Linear algebra

Linear algebra

This reference brings together the vector-space concepts used throughout the article.

Vector space

A set of vectors where you can add two vectors and stay in the set (the resultant is also present in the same set).

  • Multiply any vector by a real number and stay in the set
  • There is a zero vector
  • Associativity and distributivity hold

Subspace

Flat objects that always pass through the origin.

Affine set

An affine set is just a subspace that’s been “shifted” away from the origin.

  • : a line
  • : a plane
  • : a 3D space
  • : a higher dimensional space, but we can work with it algebraically

An affine transformation / affine map is a function , where is a linear map and is a fixed vector.

Linear combination

When you have some vectors , a linear combination of them is any vector you can make by multiplying each one by a real number and then adding them together:

Span

The span of a set of vectors is all possible linear combinations of those vectors.

Linearly independent set

A set of vectors is linearly independent if none of them can be written as a linear combination of the others.

Another property: the only linear combination of linearly independent vectors that sums to zero is the trivial one (all coefficients zero).

Basis

A basis of a vector space is a set of vectors that spans and is linearly independent.

Column space

The column space of a matrix is the span of its column vectors — all linear combinations of the columns of .