From the course: Supervised Learning Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating a linear regression model

Creating a linear regression model - Python Tutorial

From the course: Supervised Learning Essential Training

Start my 1-month free trial

Creating a linear regression model

- [Tutor] So moving forward with our model, let's have a look at this student performance dataset from schools in Portugal. The data includes information about the student grades, demographics, and social and school related features. It was collected using school reports and questionnaires. The data includes the performance of students in two subjects, mathematics and Portuguese language. Well, this information will attempt to predict the student's final grade based off of their independent variables. First, we're going to want to load in our necessary libraries. After this, we're going to both go through the process to load in our student data, as well as create our model here. As you saw in the last video, we have to create a regression model first before we can test the assumptions of the data underlying it. Let's go ahead and recreate this model and then we can dig into the evaluation metrics. What we're…

Contents