Before you readA patient is described by age 50, blood pressure 130 and cholesterol 5.2. How would you write that patient as a single mathematical object?
Watch: Vectors, what even are they? · 3Blue1Brown · Essence of Linear Algebra, ch. 1
A vector is a list of numbers. In ML it is one data point: the patient above is The (transpose) says it is really a column, written sideways to save space. is the set of all lists of three real numbers, so is a vector in In two dimensions you can draw it as an arrow from the origin.
Two operations are all you need:
- Add entry by entry: Geometrically, put the second arrow’s tail on the first one’s tip.
- Scale by a number: The arrow stretches, or flips if the number is negative.
Together they give a linear combination: for numbers Most models in this course are built from them. A linear regression prediction, is a linear combination of features.
v = (3, 1)w = (-1, 2)av + bw = (2, 3)
Recall
In ML, what does a single vector usually represent?Recall
What is a linear combination of and Exercise
Let and Compute