Vector Spaces
A vector space is one of the most fundamental ideas in linear algebra.
It defines the environment where vectors live, combine, scale, and behave consistently. Almost every concept in machine learning, data science, physics, and engineering is built on vector spaces.
Why Vector Spaces Are Important
Vector spaces provide a formal framework to work with vectors.
They allow us to:
- Understand which vector operations are valid
- Define dimensions and directions
- Build advanced concepts like basis and eigenvectors
Without vector spaces, linear algebra has no structure.
What Is a Vector Space?
A vector space is a set of vectors that is closed under:
- Vector addition
- Scalar multiplication
These operations must follow specific rules (called axioms).
Components of a Vector Space
Every vector space has two components:
- A set of vectors
- A set of scalars (usually real numbers)
Vectors and scalars interact through defined operations.
Vector Space Axioms (Rules)
For a set V to be a vector space, the following rules must hold:
- Closure under addition
- Closure under scalar multiplication
- Associativity of addition
- Commutativity of addition
- Existence of zero vector
- Existence of additive inverse
- Distributive properties
These rules ensure consistency and predictability.
Zero Vector
Every vector space must contain a zero vector.
The zero vector:
- Has zero magnitude
- Acts as identity for addition
Adding it to any vector does not change the vector.
Additive Inverse
For every vector v, there exists a vector −v such that:
v + (−v) = 0
This ensures subtraction is always possible.
Examples of Vector Spaces
Common examples include:
- All 2D vectors (ℝ²)
- All 3D vectors (ℝ³)
- All n-dimensional vectors (ℝⁿ)
These are the most widely used vector spaces.
Example: ℝ² as a Vector Space
ℝ² consists of all ordered pairs (x, y).
It satisfies:
- Addition: (x₁, y₁) + (x₂, y₂)
- Scalar multiplication: k(x, y)
Thus, ℝ² is a valid vector space.
Non-Examples of Vector Spaces
Not all sets of vectors form vector spaces.
- Vectors without zero vector
- Sets not closed under addition
- Sets not closed under scalar multiplication
These fail vector space axioms.
Subspaces (Idea)
A subspace is a smaller vector space inside a larger one.
It must:
- Contain the zero vector
- Be closed under addition
- Be closed under scalar multiplication
Subspaces are very important in theory and practice.
Vector Spaces in Geometry
Geometrically, vector spaces represent:
- Lines through the origin
- Planes through the origin
- Higher-dimensional spaces
Every direction-based system lives in a vector space.
Vector Spaces in Physics
Physics relies heavily on vector spaces.
- Force spaces
- Velocity spaces
- State spaces
Physical laws operate inside vector spaces.
Vector Spaces in Data Science
Data points are vectors living in high-dimensional spaces.
- Each feature → one dimension
- Each row → one vector
Understanding vector spaces helps in feature engineering and modeling.
Vector Spaces in Machine Learning
Machine learning models operate in vector spaces.
- Feature space
- Embedding space
- Parameter space
Learning is movement inside these spaces.
Vector Spaces in Competitive Exams
Exams test:
- Definition of vector space
- Zero vector concept
- Closure properties
Conceptual understanding is crucial here.
Common Mistakes to Avoid
Students often confuse:
- Vector sets with vector spaces
- Missing zero vector
- Ignoring closure rules
One failed axiom means no vector space.
Practice Questions
Q1. What two operations must a vector space be closed under?
Q2. Is ℝ³ a vector space?
Q3. Must every vector space contain the zero vector?
Quick Quiz
Q1. Can a set without zero vector be a vector space?
Q2. Are vector spaces essential for machine learning?
Quick Recap
- Vector spaces define valid vector environments
- They must satisfy specific axioms
- Zero vector and closure are essential
- All ML and data live in vector spaces
- Foundation for basis and dimension
With vector spaces understood, you are now ready to learn basis and dimension, which describe how big a vector space really is.