From the course: Complete Guide to AI and Data Science for SQL Developers: From Beginner to Advanced
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Creating the linear regression model and model summary: Part 1 - SQL Tutorial
From the course: Complete Guide to AI and Data Science for SQL Developers: From Beginner to Advanced
Creating the linear regression model and model summary: Part 1
- [Instructor] Welcome to step 15, where you create your linear regression model and dive deep into your model's performance. Now, everything that you've done before was preparation for the steps you're about to take. So we now waste no time. Let's get right to it. Here's the code that creates your model. You'll use the OLS method from the Python Statsmodel Library to perform linear regression. Now, let's break down this OLS regression results table, step by step. First, you have the dependent variable, which is the log-transformed home value, Home_Value_Log. This is what you're trying to predict. Next, you have the model, OLS, which stands for ordinary least squares. It's the linear regression method you're using. In the context of linear regression, OLS or ordinary least squares, is the fundamental method you use to build your predictive model. Think of it as the tried-and-true technique that helps you find…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Creating the linear regression model and model summary: Part 19m 33s
-
(Locked)
Creating the linear regression model and model summary: Part 27m 16s
-
(Locked)
Creating the linear regression model and model summary: Part 35m 33s
-
(Locked)
Dropping insignificant variables and re-creating the model7m 57s
-
(Locked)
Checking assumptions for linear regression3m 18s
-
(Locked)
Assumption 1: Checking for mean residuals2m 47s
-
(Locked)
Assumption 2: Checking homoscedasticity3m 13s
-
(Locked)
Assumption 3: Checking linearity2m 12s
-
(Locked)
Assumption 4: Checking normality of error terms3m 24s
-
(Locked)
Q-Q plot for checking the normality of error terms3m 14s
-
(Locked)
Model performance comparison on train and test data6m 7s
-
(Locked)
Applying cross-validation and evaluation4m 40s
-
(Locked)
Challenge: Model building48s
-
(Locked)
Solution: Model building1m 16s
-
(Locked)
-
-
-