Linear Combinations and Span
In linear algebra, vectors are more than just arrows; they are fundamental building blocks. Just as we combine numbers with arithmetic operations, we can combine vectors using scalar multiplication and vector addition. This process, known as forming a linear combination, allows us to generate new vectors from a given set. Understanding how to combine vectors and what region of space they can collectively "reach" is crucial for grasping concepts like basis vectors, dimensionality, and even how features interact in machine learning models.
What is a Linear Combination?
A linear combination of a set of vectors is a new vector formed by multiplying each vector by a scalar (a real number) and then adding the results. Think of it as mixing ingredients: each vector is an ingredient, and its scalar multiplier is the quantity. By adjusting these scalar quantities, we can create an infinite variety of new vectors. This operation is foundational because it describes how vectors can be expressed in terms of others, revealing underlying relationships within a vector space.
For a set of vectors and scalars , a linear combination is expressed as:
Visualizing Linear Combinations in 2D
In a 2D plane, scalar multiplication stretches or shrinks a vector, potentially reversing its direction if the scalar is negative. Vector addition then places the tail of the second scaled vector at the head of the first, with the resultant vector extending from the origin to the head of the final vector. This geometric interpretation helps us see how different choices of scalars and allow us to "reach" various points in the plane. The resultant vector is simply the coordinates of that final point.
Linear Combinations with More Vectors
The concept of linear combinations extends naturally to any number of vectors and any dimension. For example, in 3D space, we can combine three 3D vectors. If these vectors are linearly independent (meaning none can be formed as a linear combination of the others), they can form any point in that 3D space. This ability to construct any vector from a set of base vectors is fundamental to understanding coordinate systems and basis vectors.
The Concept of Span
The span of a set of vectors is the collection of all possible vectors that can be formed by taking linear combinations of those vectors. It represents the entire geometric space or subspace that the given vectors can "reach" or "generate." If you imagine a set of vectors as a set of tools, their span is everything you can build with those tools. Understanding span is critical for defining vector spaces and determining the dimensionality of data, which directly impacts how efficiently we can represent and process information.
The span of any non-empty set of vectors in a vector space is always a subspace of . This means it includes the zero vector, is closed under vector addition, and is closed under scalar multiplication.
Span of a Single Vector
If you have only one non-zero vector, say , its span is simply all possible scalar multiples of . Geometrically, this forms a line passing through the origin and extending infinitely in both directions along the path of . Any point on this line can be reached by choosing an appropriate scalar. For example, if , its span includes , , and —all points on the line .
Span of Two Non-Collinear Vectors
When you have two vectors that are not collinear (meaning one is not a scalar multiple of the other), their span expands beyond a line. In 2D space, two non-collinear vectors can form any point in the entire 2D plane. In 3D space, two non-collinear vectors will span a plane that passes through the origin. This is because their independent directions allow them to "stretch" and "reach" across a two-dimensional surface.
Span of Collinear Vectors
If you have a set of vectors where all vectors are collinear (i.e., they all lie on the same line through the origin), adding more vectors to the set will not increase their span. Even if you have ten collinear vectors, their combined linear combinations will still only form a line. This is because each additional vector is essentially redundant; it doesn't introduce a new direction that allows you to reach points off the existing line. This concept is closely related to linear dependence.
If a vector in a set can be expressed as a linear combination of the other vectors in that set, it is linearly dependent. Such a vector does not increase the span of the set; it is redundant in terms of defining the space.
Span and Dimensionality
The concept of span is intrinsically linked to the dimension of a vector space. The dimension of a vector space is the minimum number of linearly independent vectors required to span that space. These vectors form a basis for the space. For instance, to span a 2D plane, you need at least two non-collinear vectors. To span 3D space, you need at least three non-coplanar vectors. In data science, understanding the span of your feature vectors helps identify the true dimensionality of your data, which is crucial for techniques like Principal Component Analysis (PCA) that aim to reduce dimensionality while preserving the data's essential "reach."
v1 and v2 from the 2D linear combination example (v1 = [1, 2], v2 = [3, 1]), find scalar coefficients c1 and c2 that result in the target vector target_v = [5, 5]. Can you reach it?A linear combination is a new vector formed by scaling and adding existing vectors ().
Scalar coefficients determine the magnitude and direction contribution of each vector in a linear combination.
The span of a set of vectors is the collection of all possible linear combinations you can form from them.
The span of a single non-zero vector is a line through the origin.
Two non-collinear vectors span a plane (in 2D or higher dimensions).
Collinear vectors do not increase the dimensionality of the span; their span remains a line.
Span is directly related to the dimension of a vector space, where a basis is the minimum set of vectors required to span that space.