Save this video free

Lecture 13: Linear least squares

Burton Ma · 51:51 · Watch on YouTube

Part of Queen's University CISC 371. See all 13 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.

Lecture 13: Linear least squares Watch on YouTube →

Overview

Burton Ma derives ordinary linear least squares by expressing observations as y = Xw + ε, defining residuals, and minimizing their squared sum. He constructs design matrices for estimating a repeated measurement, fitting lines and polynomials, then derives the normal equation w = (XᵀX)⁻¹Xᵀy; for repeated direct measurements, this solution reduces to their average.

Key takeaways

Chapters

0:00 Least-Squares Regression, Residuals, and Alternative Objectives
5:00 Linear Maps, Model Parameters, and Independent Observations
10:00 Measurement Noise and the Design Matrix Equation
16:00 Estimating One Quantity by Repeated Measurement
21:00 Design Matrices for Lines and Polynomial Fits
26:00 Residual Vectors, L1 Fitting, and Squared-Error Fitting
31:00 Why Squared Residuals Work and How the General Derivation Begins
35:00 Applying the Chain Rule to the Least-Squares Gradient
41:00 Writing the Gradient Sums as Matrix Products
47:00 Solving the Normal Equation and Recovering the Mean

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

Transcript excerpt

0:01 All right. Uh good morning everybody. Uh welcome back from reading week. Uh so to begin things off uh there was um there was some p not well there were some sample test questions again posted to on uh last night while I was doing the solutions up for them. Um I discovered that there was a typo in question five. the equation for the sphere is incorrect. Well, it's not incorrect, but it was the equation of a sphere for of radius zero. So, it was the equation of a point. Um, so I fixed that. Uh, and question 6A was very slightly rewarded. Um, so if you're uh looking at the sample questions, uh, they've been updated. Uh, also the

0:50 solutions for the sample questions are available now. Um, and I'll get around to posting the solutions for the homework, I guess, for week the third homework or the fourth home. I don't remember which one now. Uh, later uh today or tomorrow. All right. So, the topic of today's lecture is uh the le squares method uh including the linear and nonlinear um whoops cases. All right. So I took just took a look at what you did in 271 or at least what the Dr. Ellis's notes say you did in 271. I don't know if you actually did them in 271. Um and so what you were taught in 271 was the linear case for le squares. Uh and in specifically uh you were taught the way to do it. Uh you were

1:39 taught like subtract the mean and do some other stuff. Um I'm going to show you the other way or a different way of uh approaching the problem that also generalizes to the nonlinear case. Uh so often the way this problem is

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, Burton Ma.

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.