Linear Algebra Primer

A model often needs to work with many measurements at once. Vectors and matrices let us organise those numbers and repeat useful calculations without writing a separate rule for every example.

28 sections · 25 questions · 4 coding challenges

1 / 28

How Do We Keep Track of Several Quantities at Once?

BOTIE

Imagine several purchases, each containing different quantities of the same goods. If we know the total paid for each purchase, we can write a relationship between those quantities and the unknown prices. One relationship may be simple. Keeping track of many relationships, and changing them together, quickly becomes cumbersome.

Systems of linear equations were studied long before modern computing. In his 1858 memoir, Arthur Cayley developed an algebra of matrices, starting from their use in representing linear transformations. Arranging the coefficients in a rectangle let mathematicians reason about a whole operation, rather than continually rewriting every individual equation.

That rectangle is a matrix. A list of quantities is a vector. Multiplying a matrix by a vector applies the recorded combinations to that list. Multiplying matrices lets us describe successive operations as one operation. Machine learning needs exactly this kind of bookkeeping when many measurements enter many calculations, so we will begin with small lists and pictures before working with a whole table.

Sources for this history