Save this video free

2025 Week4 - Interpolation and curve fitting

Numerical Methods for Engineering · 2:03:06 · Watch on YouTube

Part of McMaster University ENGPHYS 2NM4. See all 15 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

The lecture distinguishes interpolation, which passes through every data point, from curve fitting, which minimizes a chosen error measure, then compares polynomial interpolation, cubic splines, and radial basis functions (RBFs). It connects these methods to linear systems and least squares, explaining Runge oscillations, ill-conditioning, the pseudoinverse, and how weights and RBF parameters affect results.

Key takeaways

Chapters

0:00 Interpolation Versus Curve Fitting
5:00 Why Curve Fits Often Use Simpler Models
7:30 Sampling Data and Polynomial Interpolation
11:00 Lagrange Basis Polynomials
13:00 Lagrange Weights, Evaluation Cost, and Error
20:00 Polynomial Interpolation Error and Global Influence
27:30 Barycentric Lagrange Evaluation
34:00 Newton Divided Differences and Incremental Data
39:30 Vandermonde Matrices for Polynomial Coefficients
47:00 Runge Phenomenon and the Case for Splines
50:00 Cubic Splines and Continuity Conditions
54:00 Spline Knots, Boundary Conditions, and Sparse Solves
58:00 Local and Global Interpolation in Multiple Dimensions
1:02:00 Radial Basis Functions as Distance-Based Models
1:07:30 RBF Locality, Kernels, and Hyperparameters
1:13:00 RBF Conditioning and Smoothness Tradeoffs
1:19:00 Curve Fitting as Residual Minimization
1:24:00 Deriving the Pseudoinverse for Least Squares
1:29:00 Overdetermined Systems and Minimum-Norm Solutions
1:34:00 Pseudoinverse Examples and Least-Squares Geometry
1:41:00 Weighted Least Squares and Observation Importance
1:51:00 Polynomial Regression with NumPy and Residual Checks
1:58:00 Modern SciPy RBF Interpolation
2:02:00 Comparing Interpolation Methods and Practical Tradeoffs

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

Transcript excerpt

0:00 office hours whenever you want. Uh let's see. So today we're going to start talking about interpolation and curve fitting. Um this is going to be another kind of funny one. Interpolation is pretty straightforward. Curve fitting technically brings us into optimization which doesn't actually get covered until two weeks from now. Um, so this is one of those things that like we we we're going to start off on one side, but we need to get that side because a lot of the optimization routines use interpolation algorithms, but we need the optimization in order to get to the curve fitting one. And it's just kind of it's it's ultimately this sort of thing is like a nonlinear path and we're just going to have to do the best that we can to go sequentially through it because otherwise it gets too mixed up in our

0:46 heads and things. So, uh, bear with me through that one. Um it it just means that we're going to jump ahead and back and forth a little bit with optimization, but that won't be until uh uh Thursday. We'll get into the optimization part. Um we're going to cover one thing that uh that I'm actually just going to skip over entirely to try and make space to do um neural nets under the curve finning because everybody is hot to trot about neural nets and everything like that. So I thought it would be interesting to kind of put it in here and teach you guys a little bit about like how that sort of thing works. Okay. So, differences between interpolation and curve fitting. Interpolation fits seeks a curve that goes through all the points in a plot, right? That's that's kind of what you're doing when you're like fitting a curve,

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, Numerical Methods for Engineering.

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.