Save this video free

16. Projection Matrices and Least Squares

MIT OpenCourseWare · 48:05 · Watch on YouTube

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

Overview

Projection matrices split a vector into its closest point in a matrix's column space and a perpendicular error, with the projection given by P = A(AᵀA)⁻¹Aᵀ when A has independent columns. A three-point line-fitting example derives the least-squares normal equations and finds the best line y = 2/3 + t/2; the lecture then proves why AᵀA is invertible and previews orthonormal columns.

Key takeaways

Chapters

0:00 Projection Matrices Preserve Column-Space Vectors and Eliminate Perpendicular Ones
8:30 Set Up a Best-Fit Line for Three Inconsistent Data Points
11:00 Define Least Squares as Minimizing the Sum of Squared Residuals
17:00 Interpret the Fit as the Closest Point in the Column Space
20:00 Derive and Solve the Normal Equations for the Three-Point Fit
24:00 Compute the Fitted Values and Verify Orthogonal Residuals
30:00 Connect Regression Geometry to Projection and Residual Spaces
35:50 Prove Independent Columns Make AᵀA Invertible
44:00 Preview Orthonormal Columns and the Identity Gram Matrix

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

Transcript excerpt

0:07 OK. Here's lecture sixteen and if you remember I ended up the last lecture with this formula for what I called a projection matrix. And maybe I could just recap for a minute what is that magic formula doing? For example, it's supposed to be -- it's supposed to produce a projection, if I multiply by a b, so I take P times b, I'm supposed to project that vector b to the nearest point in the column space. OK.

0:54 Can I just -- one way to recap is to take the two extreme cases. Suppose a vector b is in the column space? Then what do I get when I apply the projection P? So I'm projecting into the column space but I'm starting with a vector in this case that's already in the column space, so of course when I project it I get B again, right. And I want to show you how that comes out of this formula. Let me do the other extreme. Suppose that vector is perpendicular to the column space. So imagine this column space as a plane and imagine b as sticking straight up perpendicular to it.

1:43 What's the nearest point in the column space to b in that case? So what's the projection onto the plane, the nearest point in the plane, if the vector b that I'm looking at is -- got no component in the column space, it's sticking completely -- ninety degrees with it, then Pb should be zero, right. So those are the two extreme cases. The average vector has a component P in the column space and a component perpendicular to it, and what the projection does is it kills this part and it preserves this part. OK.

2:30 Can we just see why that's true? Just -- that formula ought to work.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

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, MIT OpenCourseWare.

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.