
Combining Vectors (Addition & Scaling)
Master vector addition and scalar multiplication to transform feature states, scale attributes, and combine multidimensional data profiles.
What happens if you and your friend decide to shop together and combine your carts into a single shopping trip? You add your vectors together position-by-position:
Your combined cart now contains 2 Apples, 8 Bananas, and 1 Carrot.
What if you want to stock up on groceries for 3 weeks instead of 1? You scale your entire list by multiplying the vector by a single number (called a scalar):
Formal Definition (-Dimensions)
For any two vectors and any scalar , addition and scalar multiplication are defined position-wise:
- Vector Addition: Combines two vectors position by position.
- Scalar Multiplication: Stretches or shrinks every entry by the same scalar factor .
- A combination like is simply these two operations composed: scale by , then add .
TEASER: How Image Generators Blend Concepts Modern AI image generators use this exact principle in high-dimensional feature spaces: take the feature vector representing a dog, add the feature vector for sunglasses, and the model generates an image of a dog wearing sunglasses.