Save this video free

Lecture 14: Non-linear least-squares

Burton Ma · 50:39 · Watch on YouTube

Lecture 14: Non-linear least-squares Watch on YouTube →

Overview

Burton Ma develops nonlinear least squares from linear least squares, first showing why normal equations can fail numerically and why squared-error estimates are vulnerable to outliers. He derives Gauss-Newton by linearizing residuals with a first-order Taylor approximation and using the Jacobian to solve and repeat a local least-squares problem, then introduces Levenberg-Marquardt and a landmark-based localization problem.

Key takeaways

Chapters

0:00 Linear Least Squares Recap: Averages, Design Matrices, and Model Parameters
1:31 MATLAB Least-Squares Solvers: Avoid Explicit Matrix Inverses
4:09 Outliers and Breakdown Points: Why Squared Residuals Can Mislead
16:51 Polynomial Fits Reveal Normal-Equation Conditioning Problems
20:53 Nonlinear Least Squares: Residuals and the Jacobian Gradient
28:14 Gauss-Newton Derivation: Linearize Residuals with a Taylor Expansion
37:38 Gauss-Newton Iteration and the MATLAB GNLS Implementation
43:39 Levenberg-Marquardt: Damping Gauss-Newton Updates
46:26 Landmark Trilateration: Formulating Localization as Least Squares

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

Transcript excerpt

0:04 Okay, good morning everybody. Uh so, to remind you where we were at the end of last day, we were talking about linearly squares. Uh and we ended up deriving the normal equation, which is right there. And remember, X is our design matrix, uh Y are our measured or our observation our measured values or our observations, uh and our W star is the thing we're after. Those are model parameters that we're trying to estimate. Uh so, for linearly squares, there's actually an analytic solution. All you have to do is multiply some matrices, take their inverse, uh and you uh end up with a solution. Uh so, we discussed talking about how do you estimate a single value from a direct observation? So, this is was the height example where you're measuring someone's height. Oops, sorry. And we plugged it into this

0:52 equation here, and you saw that to estimate someone's height from multiple observations, the estimate is just the average of the observations. Um which was nice. Uh now, estimating the line of best fit. So, for the line of best fit, uh we know what the matrix X needs to look like. It looks like um the matrix X ends up looking like uh X1, X2, dot dot dot dot dot XM. Uh and then all ones down here. So, you just plug that thing in into the normal equation, uh and you can get an answer. Uh however, uh you shouldn't do it that way. So, to implement this thing, um uh I've written this little function here called linear LS, so linearly

1:39 squares. Right? It takes in our design matrix X. It takes in our vector of observations. Uh and this one takes in an a third parameter, uh which is how do you solve

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