Skip to content

particle1331/computational-linear-algebra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Computational Linear Algebra

Notes and code experiments for linear algebra in code. The idea is to construct the SVD as soon as possible, then use it for everything else — from characterizing invertibility, to parametrizing the loss surface of a linear regression model. Some of the interesting stuff that are covered:

  • Proof of the real spectral theorem, and a code demo
  • Proof of the singular value decomposition (SVD)
  • An extensive discussion of the Moore-Penrose pseudoinverse
  • Stability of the Gram-Schmidt algorithm
  • Characterizing the loss surface of a linear regression problem
  • Characterizing quadratic forms using the principal axes theorem


Figure. SVD of a sum of Gaussians. Only the first few vectors are meaningful, the rest model noise.



Figure. Energy surface of an indefinite matrix. It has a negative minimum and a positive maximum.


Contents

  1. Vectors and matrices
  2. Singular value decomposition
  3. Matrix multiplication and norms
  4. Rank and dimension
  5. Four fundamental subspaces
  6. Determinant
  7. Matrix inverse and pseudoinverse
  8. Projection and orthogonalization
  9. Least squares for model fitting
  10. Eigendecomposition
  11. Quadratic form and definiteness

Quick links


References