ES.1802, October 14, 2026
Overview
Christian connects projection onto a matrix’s column space to least-squares linear regression, using age and height as an example and fitting a line of the form y = c + dt. He represents the data as an overdetermined system, explains that projecting onto the design matrix’s column space gives the closest fit, and outlines minimizing the summed squared residuals by setting derivatives with respect to c and d to zero.
Key takeaways
- A straight-line model for age and height uses two parameters, c and d, while each observed age tᵢ contributes a matrix row [1, tᵢ].
- When observed data do not lie exactly in the design matrix’s column space, no parameter choice satisfies every regression equation; projection gives the closest possible prediction vector.
- Least squares defines closeness by minimizing the sum of squared residuals, making errors above and below the fitted line contribute positively.
- The factor ½ in the squared-error objective does not change its minimizer and simplifies differentiation.
- For the line y = c + dt, minimizing error means taking partial derivatives with respect to both c and d and setting them to zero.
- The projection interpretation and the calculus approach describe the same least-squares fit: one uses column-space geometry, while the other minimizes the residual objective.
Chapters
- Christian recaps projecting a vector B onto the column space of a matrix A.
- The projection matrix is A(AᵀA)⁻¹Aᵀ, which maps B to its closest point in that column space.
- The projection idea becomes useful when B is not already in the column space of A and the system has no exact solution.
- Age and height provide the example dataset, plotted as points that do not all lie on one line.
- Christian models a candidate relationship as y = c + dt, where c is the intercept and d is the slope.
- A line’s quality depends on the prediction errors between each observed height y and its predicted value y*.
- For four observations, the model gives equations yᵢ = c + dtᵢ for i = 1 to 4.
- The equations form a matrix system with rows [1, tᵢ], unknown vector [c, d]ᵀ, and observed-value vector [y₁, y₂, y₃, y₄]ᵀ.
- Because the sample points generally do not all lie on one line, the system may have no exact solution for c and d.
- The least-squares objective adds the squared residuals, ½Σᵢ( yᵢ − (c + dtᵢ) )²; the factor ½ is included for derivative convenience.
- The best-fit parameter vector [c, d]ᵀ produces the closest attainable vector of predictions by projecting the observed data onto the design matrix’s column space.
- To minimize the objective, differentiate with respect to c and d, then set both derivatives to zero.
- Solving the resulting conditions yields relationships involving means, variance, and covariance, though their full derivation is deferred.
Transcript excerpt
0:00 So you Christian of the future, don't make it so much about 1806 next year. Um, but for those of you in the present, >> there are three questions we can ask each other. What are you thinking? How are you feeling? And what have we done to each other? Um, which has done too much 1806. But unless I'm going to bring this up real quick, what did we leave with last time is we had a vector and we were trying to project it someplace. That's as much as I'm going to say we go the other route. We were trying to project it into the um column space of some matrix A. I'll just call this A. And do we remember what we did to get this onto here? We did a whole bunch of uh
0:48 >> math maths if you're British. Yes. >> Projection. >> Yeah. The projection. So we knew that uh P which is the projection on B was some projection m projection matrix multiplied by B. And we can we knew what that projection matrix was cuz we did a whole bunch of work that you won't have to think about next semester because I've done it for you already. You guys remember what it was? >> Uhhuh. multipose a inverse. >> Yeah. >> And then >> oh another a transpose >> and then and this whole thing's goal in life is to project into this subspace. Okay. Why
1:37 do we care? We care because fundamentally the question arises where a vector is not in a particular space. It's not in the column space of this matrix. And now time for the motivation to care. Where did all the beautiful tiles go? Huh? Would you like white for your points or black for your points? That
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, ChristianAltoSax.