Save this video free

CS 238 Week 7 Lecture

James Andro-Vasko · 17:24 · Watch on YouTube

Part of University of Nevada, Las Vegas CS 238. See all 9 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

James Andro-Vasko introduces simple linear regression as a way to fit a line, y = mx + b, to paired data and use an independent variable, such as weekly study hours, to predict a dependent variable such as assignment scores. He explains how mean absolute error (MAE) and mean squared error (MSE) measure prediction errors, then demonstrates a Python workflow using scikit-learn, an 80/20 train-test split, and a plotted regression line; the example reports an MAE of about 3 and an R² near 0.70.

Key takeaways

Chapters

0:00 Linear Regression Predicts Scores from Study Hours
6:47 MAE, MSE, and the Python Training Workflow
13:53 Evaluate the Test Plot and Choose Predictors

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

Transcript excerpt

0:00 Hello CS 238 class. Uh for this week we'll be covering um a simple data science topic which is going to be linear regression. Now the way linear regression works is we have um a set of data and we try to create some kind of a linear type of line that kind of encapsulates all of our data essentially. So those dots in this coordinate plane is our data and this blue line is going to be our linear line that tries to encapsulate our data the best it can. So the way it works is we're going to have x independent variable and y dependent variable. Now you can of course can have more values of x and y but we're going to stick to a two dimensional plane. So we'll stick to just having one x and one y. So in this case, X could be thought of as maybe um

0:50 the amount of hours a week a student studies. And then Y could be possibly their grade from 0 to 100 for their assignment for that week. So maybe X could be 0 to 10, how many hours they studied. Y 0 to 100 uh their grade on the assignment for the week. So we can look at each point. So each point we can match it to the appropriate X and Y. So we can see here looking at our data these data points it is rather um has a linear relationship in a sense as if we study more we have um a higher grade we study less we have a lower grade. So suppose we we had students report their amount of hours they studied per week. We calculate their grades we have these data points and we want to use these to

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, James Andro-Vasko.

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.