A matrix is a machine
An matrix turns every input vector with entries into an output vector with entries. The map is linear: , so scaling and adding inputs scales and adds outputs. In finance, if column of holds how each of assets responds to risk factor , then is the vector of asset returns for the factor moves .
Read the product by columns: is a combination of the columns of , weighted by the entries of . Taking picks out the first column, so the columns of a matrix are the images of the unit vectors. That is all you need to write down any linear map: decide where each unit vector goes and put the results in the columns.
- Linear map: . Every linear map between finite-dimensional spaces is a matrix.
- Columns: the images of the unit vectors, so is column .
- Zero goes to zero: a linear map always sends to .
draws a straight line but is not linear, because . Adding a constant (an intercept) makes a map affine. Regression handles it by adding a column of ones to the data, which turns the affine problem into a linear one.
Lab · what's graded
6 tasks · 100 pts- From images to a matrix20 pts
- A matrix times a vector15 pts
- Spot the map that is not linear15 pts
- A rotation20 pts
- Matrices and their effects15 pts
- Why columns are images15 pts