CPBS 7620 - Lecture 11 - Matrix Decompositions
Overview
Nicholas Dwork explains how matrix structure turns solving AX = B into more efficient operations, from orthogonal transformations and triangular back substitution to LU and QR factorizations. He also introduces positive-definite matrices, Cholesky decomposition, and SVD, including how thresholding singular values produces a pseudoinverse for rank-deficient systems.
Key takeaways
- Orthogonal matrices make linear solves efficient because Q inverse = Q transpose, and they preserve both vector lengths and angles.
- Triangular systems avoid general matrix inversion: lower triangular systems use forward-order substitution, while upper triangular systems are solved from the last variable backward.
- Pivoted LU separates a square system into a row permutation and two triangular solves, reusing the same factorization for multiple right-hand sides.
- QR handles tall full-rank systems through an orthonormal basis and an upper triangular solve; the corresponding LQ form for short, wide systems yields a least-norm solution.
- Cholesky factorization represents a symmetric positive-definite matrix as LL transpose and reduces a linear solve to two triangular substitutions.
- SVD supports pseudoinverse computation for rank-deficient matrices by inverting only singular values larger than a chosen threshold epsilon.
Chapters
- For A of size M by K and B of size K by N, AB has size M by N and can be computed by applying A to each column of B.
- Block matrix multiplication treats rectangular sections as matrices; for example, the first product block is AU + BW.
- Orthogonal Q satisfies Q inverse = Q transpose, preserves vector norms and perpendicularity, and makes QX = B solvable as X = Q transpose B.
- Lower triangular systems can be solved by back substitution, and a triangular matrix is invertible when every diagonal entry is nonzero.
- LU decomposition writes a square matrix as A = PLU, with permutation P, invertible lower triangular L, and upper triangular U.
- Solving with PLU applies P transpose to B, then uses two triangular solves; U is invertible exactly when A is invertible.
- A tall, full-rank matrix has QR factorization A = QR, where Q has orthonormal columns and R is upper triangular.
- For a short, wide, full-row-rank matrix, transposing a QR factorization gives A = LQ tilde; X = Q tilde transpose L inverse B is a least-norm solution.
- Positive semidefinite A satisfies x transpose A x >= 0, making the quadratic function x transpose A x convex; sums of positive semidefinite matrices remain positive semidefinite.
- A symmetric positive-definite matrix has Cholesky factorization A = LL transpose, so solving Ax = B requires two triangular back substitutions.
- Every matrix has an SVD A = U sigma V transpose, with orthogonal U and V and nonnegative diagonal singular values ordered from largest to smallest.
- For rank-deficient A, the SVD pseudoinverse uses reciprocal singular values above a threshold epsilon and sets smaller-value reciprocals to zero.
Transcript excerpt
0:00 Hi, I'm Nicholas Dwork, and today we're going to discuss matrix decompositions. First, let's define matrix-matrix multiplication. If we're multiplying two matrices A and B, we can define B in terms of its columns, B1, B2, up to BN. And then the matrix-matrix multiplication is just multiplying each column of B by the matrix A. And those become the columns of the results. We already know how to do matrix-vector multiplication, so now we know what this means. This is only possible when A and B are appropriately sized. If A has size M by K, and B has size K by N, then the size of AB is M by N. We can now think of solving for a matrix X where AX = B as simultaneously solving
0:49 many AX = B equations, all with the same A. And this is something that is commonly done. Let's talk about block matrices. We can pretend that rectangular portions inside the matrices are themselves matrices. And then matrix-vector or matrix-matrix multiplication works out exactly the same way. So, for example, here I'm multiplying two matrices where I'm pretending that the elements inside are themselves matrices. A, B, C, D, U, V, W, and X are all matrices. And we know that matrix-vector multiplication is just taking the dot product of the rows with the columns. So, when we do that, we'll take the dot product of the row AB with the column UW.
1:36 And that gives us AU + BW as the first element of the result. Again, A and U are matrices, so AU is going to be matrix-matrix multiplication, the same with BW. And then we'll sum those results, point-wise sum of the two matrices. Same for all the other elements of the result. Now, suppose we want to solve AX = B.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Nicholas Dwork.