Save this video free

lecture 10 - regression part 2, least squares, and numeric integration

Professor Saad Explains · 56:15 · Watch on YouTube

Part of University of Utah CH EN 6400. See all 17 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 lesson explains how to assess regression with residual error and R², then shows how NumPy least squares solves ill-posed linear systems that ordinary solvers cannot handle. Examples include estimating NO₂ and ozone concentrations from five UV absorbance measurements and integrating continuous or discrete data with SciPy's `quad` and NumPy's trapezoidal rule.

Key takeaways

Chapters

0:00 Project Brief: Maximum Entropy and a Combustion Application
3:20 Project Schedule, Notebook, and Presentation Rubric
5:06 Choosing `polyfit` or `curve_fit` for Regression
12:59 Standard Deviation as a Mean-Only Error Baseline
22:11 Interpreting R² and Checking Regression Error
25:59 Why Least Squares Helps with Ill-Posed Systems
27:35 Classifying Matrix Systems and Calling `numpy.linalg.lstsq`
31:00 UV Spectrometry Example: Estimating NO₂ and Ozone
40:42 Numerical Integration: Continuous Functions and Sampled Data
45:22 Integrating a Continuous Function with SciPy `quad`
49:41 Integrating World CO₂ Emissions with `numpy.trapezoid`

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

Transcript excerpt

0:01 Let's begin. I uh released the project yesterday. Uh I might take one more iteration at it to fine-tune the uh a couple of hints, but I will let you know. Uh and you should be able to get started at least reading it, absorbing it. My advice to you is read it the first time, be like, "Oh, holy, oh my god, this is too much." Right? Just do that and let it go. um look at it the a second time and be like okay this looks weird I don't know where to start but just look at it the reason is the secret the secret to math and that's what my math uh mentor taught me during my PhD he said uh 90% of ma he was Russian had very thick accent Boris Coopermitt um he

0:49 he passed away a few years ago um but he was a great mentor and he would tell me uh uh 90% of the of the math is just the symbols. Get familiar with the symbols and you'll be fine. To get familiar with the symbols, the integrals, the strange symbols, mu and whatever, just look at them. Look at them. Get your brains to be familiar with just the shock of looking at weird math before you even understand them. Just get familiar with that a couple of times. Okay? So, look at the project couple of times every day. Open it, look at it. Don't have to get started. Maybe read it then and then read it another time to just get the ideas to be familiar with the ideas before you um you make a plan of attack. Um you have all the tools you need to solve a problem. It's an engineering

1:37 problem. Um a typical problem you will

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, Professor Saad Explains.

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.