Mathematics Lec4 Vector Space-1-36
Mathematics Lec4 Vector Space-1-36
Assistant Professor at
Indian Institute of Technology Mandi
11 October 2024
Motivation
Vector spaces and subspaces are useful in machine learning for the
following reasons:
• Geometric Interpretation: Vector spaces provide a
geometric framework to understand and visualize data,
making it easier to comprehend relationships and patterns
within the data.
• Clustering and Classification: Subspaces help in defining
decision boundaries for clustering and classification
algorithms, improving the accuracy of these models.
• Noise Reduction: By projecting data onto relevant
subspaces, noise can be filtered out, leading to cleaner
datasets and more robust models.
Motivation (Contd.)
• x · y = y · x (commutativity of multiplication)
• (x · y ) · z = x · (y · z) (associativity of multiplication)
• (x + y ) · z = x · z + y · z and x · (y + z) = x · y + x · z
(distributivity)
• There is an element 1 ∈ F , such that 1 ̸= 0 and x · 1 = x.
(existence of a multiplicative identity)
• If x ̸= 0, then there is an element x −1 ∈ F such that
x · x −1 = 1. (existence of multiplicative inverses)
• Examples of fields include:
• The field of real numbers R
• The field of complex numbers C
• The field of rational numbers Q
Field of Real Numbers R
• Closure
• Addition: If a, b ∈ R, then a + b ∈ R.
• Multiplication: If a, b ∈ R, then a · b ∈ R.
• Associativity
• Addition: For any a, b, c ∈ R, (a + b) + c = a + (b + c).
• Multiplication: For any a, b, c ∈ R, (a · b) · c = a · (b · c).
• Commutativity
• Addition: For any a, b ∈ R, a + b = b + a.
• Multiplication: For any a, b ∈ R, a · b = b · a.
• Identity Elements
• Additive Identity: There exists 0 ∈ R such that for any
a ∈ R, a + 0 = a.
• Multiplicative Identity: There exists 1 ∈ R such that for any
a ∈ R, a · 1 = a.
Field of Real Numbers R
• Inverses
• Additive Inverse: For any a ∈ R, there exists −a ∈ R such
that a + (−a) = 0.
• Multiplicative Inverse: For any a ∈ R where a ̸= 0, there
exists a−1 = 1a ∈ R such that a · a−1 = 1.
• Distributivity
• Multiplication Distributes over Addition: For any
a, b, c ∈ R, a · (b + c) = a · b + a · c.
Example- NOT a field
(a, b) + (c, d) = (a + c, b + d) ∈ R2
(a, b) + (c, d) = (a + c, b + d)
= (c + a, d + b)
= (c, d) + (a, b)
Thus, commutativity property holds in R2
Vector Space: Example- Property 1
= (a + (c + e), b + (d + f ))
= ((a + c) + e, (b + d) + f )
= (a + c, b + d) + (e, f )
= ((a, b) + (c, d)) + (e, f )
Thus, associativity property holds in R2
Vector Space: Example- Property 1
(0, 0) + (a, b) = (0 + a, 0 + b)
= (a, b)
Thus, (0, 0) is the identity element of R2
• Let (a, b), (−a, −b) ∈ R2 . Then
= (0, 0)
Thus, (−a, −b) is the inverse element of R2
Thus, (R2 , +) is an Abelian group.
Vector Space: Example- Property 2 and 3
= k(ma, mb)
= (k(ma), k(mb))
= ((km)a, (km)b)
= (km)(a, b)
Vector Space: Example- Property 6
= (a, b)
• All the six properties are satisfied. Therefore, (R2 , +, ·) is a
vector space.
Vector Space: Example
v1 = 2x 3 + 5x 2 + x + 7 ∈ V
v2 = −2x 3 + 3x 2 + 4x + 1 ∈ V
v1 + v2 = 8x 2 + 5x + 8 ∈
/V
Thus, V is not a vector space as the closure property is not
satisfied.
Examples that are not Vector Space
• R2 (R) does not form a vector space w.r.t. vector addition and
scalar multiplication defined as follows:
(a, b) + (c, d) = (a + c, b + d)
ax + by ∈ W
Examples of Subspaces
S1 = {(x1 , x2 , x3 ) ∈ R3 |x1 + x2 − x3 = 0}
S2 = {(x1 , x2 , x3 ) ∈ R3 |x1 = x2 = x3 }
S1 ∩ S2 = (0, 0, 0)
x1 + x2 = x3 , x1 + x2 = x2 =⇒ x1 = 0 =⇒ x2 , x3 = 0
Linear Span
= (c1 , c2 )
L(S) = {(c1 , c2 )|c1 , c2 ∈ R} = R2
S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)}
L(S) = {(c1 , c2 , c3 )|c1 , c2 , c3 ∈ R} = R3
Linear Span: Example
x11 x12 ... x1n
x x22 ... x2n
• Let X = 21 where xij ∈ R. Then
... ... ...
xm1 xm2 ... xmn
1. The row space of X given by
L({(x11 , x12 ..., x1n ), (x21 , x22 ..., x2n , ..(xm1 , xm2 ..., xmn ))}) is a
subspace of Rn (R).
2. The column space of X given by
L({(x11 , x21 ..., xm1 ), (x12 , x22 ..., xm2 , ..(x1n , x2n ..., xnm ))}) is a
subspace of Rm (R).
3. The set N(X ) = {y ∈ Rn |XY = 0} is called the nullspace of
X.
4. The set R(X ) = {b ∈ Rm |XY = b} is called the range of X .
In general, column space (X ) = R(X )