A
vector is an ordered list of numbers capturing both magnitude and direction. In 2D, a pair (x,y). In 3D, a triple (x,y,z). Vectors add component-wise — geometrically, the parallelogram law. The
dot product multiplies corresponding components and sums them, producing a scalar. Geometrically, it equals the product of lengths times the cosine of the angle between them — it measures how much two vectors point the same way. Two vectors are
orthogonal (perpendicular) if their dot product is zero. Vectors generalize to any dimension n, and in
machine learning they can reach millions of dimensions. A
basis is a set of linearly independent vectors that span the space — every vector can be uniquely written as a linear combination of basis vectors.