Data are vectors
This course answers one question: what mathematics does a model need in order to represent data, learn from it and compute reliably? The short answer has four parts. Data are vectors. Models are maps between vector spaces. Learning is optimization. And all of it runs in floating point. This first topic starts the first two parts from scratch and assumes only school algebra.
A model never sees a flat; it sees numbers about it. Describe a flat by its area in square metres, its number of rooms and its age in years, and the flat becomes a list of three numbers, a vector:
is the set of all lists of real numbers. In ML such a list is a feature vector, and its entries are the features. Vectors are columns; to save space we also write them in a row, .
Two operations act entry by entry: adding two vectors and multiplying a vector by a number (scaling). Take a second flat . Then
The second vector is the average flat. An expression with numbers and is a linear combination of and ; the average is the case .
In two dimensions a vector is also an arrow from the origin: points two units right and one up. Adding vectors puts the arrows head to tail. The vector is twice as long, and points the opposite way.