Sections¶
- 4.1. Span
- 4.2. Linear Independence
- 4.3. Vector Spaces, Basis, and Dimension
- 4.4. Lines, Planes, Hyperplanes, and the Cross Product
Summary¶
4.1 Span¶
The span of a set of vectors is the set of all of their linear combinations:
One nonzero vector spans a line through .
Two non-collinear vectors (i.e. vectors that point in different directions) span a plane through .
vectors in span a subspace of dimension between 0 and .
4.2 Linear Independence¶
are linearly independent if none is a linear combination of the others; equivalently, only when every .
If they are linearly dependent, at least one (not necessarily every) vector is a combination of the others.
If are linearly independent, every in their span can only be written in one way as a linear combination of the ’s; otherwise, every can be written in infinitely many ways.
Nonzero, pairwise orthogonal vectors are independent; a set containing is dependent.
Independence needs , spanning needs . For exactly vectors in , the following are equivalent:
they are linearly independent;
they span ;
they form a basis for .
Algorithm to find a basis: in order, keep each nonzero that isn’t a combination of the kept ones. The result is a basis for the span (its size is the dimension); which vectors get kept can depend on order.
4.3 Vector Spaces, Basis, and Dimension¶
Vector space: collection of objects (vectors) that areclosed under addition and scalar multiplication (plus 8 properties), e.g. .
A subspace of satisfies:
;
;
.
Think of a subspace as a closed neighborhood within a vector space.
Every span is a subspace, and every subspace is a span.
A basis for spans and is independent (remove a vector: it stops spanning; add one: it’s dependent). Bases aren’t unique, but all have the same size, .
The standard basis tells us .
4.4 Lines, Planes, Hyperplanes, and the Cross Product¶
The parametric form of a line is
The parametric form of a plane is
with independent.
A line/plane is a subspace only if it passes through . A shifted subspace is called an affine subspace.
A plane in can be described by the equation
where is a normal vector to the plane.
One way to find a normal vector to a plane is to take the cross product of two linearly independent vectors that lie on the plane:
A hyperplane in is (normal ), an -dimensional slice: a line in , a plane in . It splits into and , like a linear classifier’s boundary.