Undoing a map
A square matrix has an inverse , with , exactly when its map loses no information: different inputs give different outputs. The determinant measures how scales volumes (with a sign for flips), so is invertible exactly when . For a matrix, . Useful rules: and .
Invertible is not the same as safe. The condition number says how much a small relative error in (or in the entries of ) can be magnified in the solution . A rule of thumb: you lose about of your roughly 16 digits of double precision. A small determinant alone proves nothing, because it depends on the scale: has a tiny determinant but . Nearly collinear columns are what make huge.
- Invertible: square with ; no information is lost.
- Condition number: how much errors in the data are magnified; large means a fragile solve.
- Never form to solve: a factorisation solve is faster and more accurate.
Two ETFs that track nearly the same index give a covariance matrix with nearly equal rows. Its is huge, so a minimum-variance optimiser built on its inverse swings wildly with tiny changes in the data. Check (or drop or combine the near-duplicates) before you trust the weights.
Lab · what's graded
7 tasks · 100 pts- The inverse of a 2 by 2 matrix20 pts
- A 3 by 3 determinant10 pts
- Find the singular matrix15 pts
- Digits you can trust15 pts
- Good numerical practice15 pts
- Determinant rules10 pts
- Why not invert15 pts