Check-list for progress of sub-content in this note:
1. Concepts
Vector definition
Zero vector
Basis vector
Unit vector
2. Vector properties
Norms
Length
Maginitude
3. Vector operations
Transpose
Vector arithmetics
Vec2Vec products: dot - cross - outer product
Vec2Vec intuitions
Vector Definition
In Euclidean spaceA and B be two points, a directed line segment from A to B was called AB
A vector is an equivalance class of all of the directed segments with the same magnitude and direction as the directed line segment described above. (Immersive Linear Algebra, 2021)
In other words, a vector is defined by:
Magnitude (i.e. the line segment’s length, denoted as ∥∥∥∥AB∥∥∥∥)
Direction (i.e. the direction from A to B)
Special kinds of vectors:
Zero vector (Null vector): Denoted as 0, ∥0∥=0
Basis vector
Unit vector
Vector Properties
Orthogonal
(Reading: /ɔrˈθɒg ə nl/)
Suppose there are 2 vectors x,y∈Rn. x and y are orthogonal if xTy=0
Normalized
A vector x∈Rn is normalized if ∥x∥2=1
Linear Independence
A set of vector x1,…,xn⊂Rm is linearly independent if no vector can be represented as a linear combination of the remaining vectors.
Norms
A norm, which is a scalar, is an informal measure of the length (or magnitude) of a vector.
A norm is a function∥.∥:Rn→R that satisfies:
Definiteness: ∥x∥=0⟺x=0
Homogeneity: ∥cx∥=∣c∣∥x∥
Triangle inequality: f(x+y)≤f(x)+f(y),∀x,y∈Rn
Non-negativity: f(x)≥0,∀x∈Rn
Norms
Example
1-norm
x∈Rn,∥x∥1=∣x1∣+⋯+∣xn∣
2-norm
x∈Rn,∥x∥2=(x12+⋯+xn2)1/2
p-norm
x∈Rn,∥x∥p=(∑i=1n∣xi∣p)1/p
Vector Arithmetic
Vector addition
u+v=⎣⎢⎢⎡u1+v1⋮un+vn⎦⎥⎥⎤,∀u,v∈Rn
Vector Subtraction
u−v=⎣⎢⎢⎡u1−v1⋮un−vn⎦⎥⎥⎤,∀u,v∈Rn
Scala Multiplication
ku=⎣⎢⎢⎡ku1⋮kun⎦⎥⎥⎤,∀u,v∈Rn
Vector - Vector Products
Suppose there are two vectors x,y∈Rn, multiplying these two vectors refers to three different operations:
Deisenroth, M. P., Faisal, A. A., & Ong, C. S. (2020). Mathematics for Machine Learning. Cambridge University Press. https://doi.org/10.1017/9781108679930
Linear Algebra for Deep Learning. (2021). https://www.quantstart.com/articles/scalars-vectors-matrices-and-tensors-linear-algebra-for-deep-learning-part-1/