Save this video free

CPBS 7620 - Lecture 10 - Pseudoinverse

Nicholas Dwork · 14:24 · Watch on YouTube

Part of University of Colorado Anschutz Medical Campus CPBS 7620. See all 19 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Nicholas Dwork explains the pseudoinverse as a way to solve least-squares problems when a matrix is not invertible: project B onto the image of A, then choose the minimum-norm X that maps to that projection. He derives the full-rank formulas for tall and skinny and short and fat matrices, recommends numerically stable software such as MATLAB's lsqminnorm and NumPy's numpy.linalg.lstsq, and applies least squares to warfarin-dose prediction.

Key takeaways

Chapters

0:00 Least Squares as Projection onto the Image of A
5:33 Pseudoinverse Formulas for Tall and Wide Full-Rank Matrices
11:35 Stable Pseudoinverse Software and Warfarin-Dose Regression

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Hi, I'm Nicholas Dwork, and in this lecture, we'll discuss the pseudo inverse. Recall that if we have two vectors A and B, and we want the projection of A onto B, we drop this perpendicular line, and that gives us the projection. The projection of A onto B is the point along B closest to A. Also, if we want a vector perpendicular to B, we can simply subtract this projection from A as shown. We can also project a vector onto a subspace. In this case, the subspace we're considering is the XY plane. Here, we're showing a vector in three dimensions A. And this vector here is the projection of A onto the XY plane. Again, the projection of A onto the XY plane is the point in the plane closest to A. Suppose we know that A and B such that

0:49 AX is approximately equal to B. We want to find X. If A is invertible, then we simply left multiply by A inverse. That gives us X is approximately equal to A inverse B. What if A is not invertible? Recall that AX is a vector. We could find an X such that AX is as close to B as possible. Formally written, this is an optimization problem. We're going to minimize the L2 norm of AX minus B. This is the least squares problem. This is what has led technological development for the last 200 years. We want to make sure that if A is invertible, the solution is still reasonable. So, let's consider an invertible A, and let X equal A inverse B.

1:38 AX minus B then is equal to A times A inverse B minus B, and that ends up equaling zero. Therefore, the solution to this problem X star is equal to A inverse times 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.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.