BOLD IT ALL OUT!
A vector space 𝑉() over a field is a set on which two operations, vector addition (+) and scalar multiplication1 () are defined such that:

  1. (𝑉,+) forms an abelian group2.
  2. The operation () is defined between scalars and vectors such that 𝑎,𝑣𝑉𝑎𝑣𝑉
  3. 𝑎 and 𝑣,𝑤𝑉𝑎(𝑣+𝑤)=𝑎𝑣+𝑎𝑤 (associativity)
  4. 𝑎,𝑏 and 𝑣𝑉(𝑎+𝑏)𝑣=𝑎𝑣+𝑏𝑣
  5. 𝑎,𝑏 and 𝑣𝑉(𝑎𝑏)𝑉=𝑎(𝑏𝑣)
  6. unitary law: 1 such that 1𝑣=𝑣,𝑣𝑉
    If all of these properties hold, we say that (𝑉,+,) is a vector space.
    some examples:
  • consider the vector space 𝑉=2 over the field of real numbers.
    • Testing the first property: let’s take two vectors, 𝑣=(𝑎,𝑏);𝑤=(𝑐,𝑑) in 𝑉. Let’s perform addition (+) here: we get (𝑎+𝑐,𝑏+𝑑)𝑉, thus we can say that under addition 𝑉 is “closed”. Also, (𝑎,𝑏)+(𝑐,𝑑)=(𝑎+𝑐,𝑏+𝑑)=(𝑐+𝑎,𝑑+𝑏)=(𝑐,𝑑)+(𝑎,𝑏). Thus the operation is also commutative in nature. Similarly we can also verify that associativity holds such that for any three vectors (𝑎,𝑏),(𝑐,𝑑),(𝑒,𝑓) we can say that (𝑎,𝑏)+((𝑐,𝑑)+(𝑒,𝑓))=((𝑎,𝑏)+(𝑐,𝑑))+(𝑒,𝑓). Also, an identity element exists which is (0,0)2. Lastly, we can have the additive inverse (𝑎,𝑏) which enables us to have (𝑎,𝑏)+(𝑎,𝑏)=𝑒=(0,0). Thus this is a group and an abelian group because of the commutative property.
    • Testing the second property: let 𝑘,(𝑎,𝑏)2; then 𝑘(𝑎,𝑏)=(𝑘𝑎+𝑘𝑏)2. Thus the second property holds.
    • Testing the third property: let 𝑘𝑅;(𝑎,𝑏),(𝑐,𝑑)2. Then 𝑘((𝑎,𝑏)+(𝑐,𝑑))=𝑘(𝑎+𝑐,𝑏+𝑑)=(𝑘𝑎+𝑘𝑐,𝑘𝑏+𝑘𝑑)=𝑘(𝑎,𝑏)+𝑘(𝑐,𝑑)
    • Testing the fourth property: let 𝑘,𝑚𝑅;(𝑎,𝑏)2. Then (𝑘+𝑚)(𝑎,𝑏)=(𝑘𝑎+𝑚𝑎,𝑘𝑏+𝑚𝑏)=𝑘(𝑎,𝑏)+𝑚(𝑎,𝑏)
    • Testing the fifth property: let 𝑘,𝑚𝑅;(𝑎,𝑏)2. Then (𝑘𝑚)(𝑎,𝑏)=(𝑘𝑚𝑎,𝑘𝑚𝑏)=𝑘(𝑚(𝑎,𝑏))=𝑘(𝑚𝑎,𝑚𝑏)=(𝑘𝑚𝑎,𝑘𝑚𝑏)
    • Testing the sixth property: indeed, if (𝑎,𝑏)𝑅;1(𝑎,𝑏)=(𝑎,𝑏)
      Thus, (2,+,) is a vector space.
  • other examples include 𝑉=𝑛 forming a vector space over ; 𝑉=𝑃 forming a vector space over , 𝑃 = set of all polynomials in variable x and coefficient from ; etc.
  • example: 𝑉=set of all polynomials of degree n. Take n = 3, and take two vectors, 𝑣=2𝑥33𝑥2;𝑤=2𝑥3+5;𝑣,𝑤𝑉. Then 𝑣+𝑤=3𝑥2+5𝑉 as n 3. Thus this is not a vector space because it’s not closed under vector addition, which is one of the fundamental properties of a group.

Euclidean space: A vector space 𝑛 over 𝑅 equipped with notions of distance, length, and angles.

Geometric interpretation of 𝑛

For n = 1, 2, 3 the space 𝑛 has a very useful geometric interpretation.

  • n = 1
    • 𝑉=,𝑣=(𝑥). Thus this can be represented as a vector on the number line:

      In the image above, vectors (2) and (7) are shown.
  • n = 2
    • 𝑉=2,𝑣=(𝑥,𝑦). This can be represented in the x-y plane. This is your standard vector from high school physics.
    • Yes, vectors are generally represented as a column, like (12) and not (1,2). There are multiple forms, like row-vector and column-vector form, but in machine learning the column vector form is seen more over tuples. MML suggests: “By default, we write 𝒙 to denote a column vector, and a row vector is denoted by 𝒙𝑇, the transpose of 𝒙.”
  • n = 3
    • 𝑉=3,𝑣=(𝑥,𝑦,𝑧). This can be represented in a three dimensional plane.
  • Linear independence of three vectors 𝑣1,𝑣2,𝑣3 means that 𝑣1 and 𝑣2 are not collinear, and 𝑣3 does not lie in the plane of 𝑣1 and 𝑣2.

Footnotes

  1. also known as the dot product

  2. 𝑉 is the set of vectors here. Recall that the condition for a group was that 𝑉 needs to be closed under the addition operation here, or that addition of two vectors produces another vector. Another condition was the identity element: there must be 𝑣𝑉 such that 𝑎+𝑣=𝑣+𝑎=𝑎, which holds for the zero vector. The third condition was for the inverse element which also holds in addition - every vector has an additive inverse which can be added to get the zero vector, the identity element here. Note that for an abelian group we need to have the condition that for any two pairs 𝑎,𝑏𝑉,𝑎+𝑏=𝑏+𝑎 which certainly holds as additive groups are abelian.