From the course: Python: Working with Predictive Analytics

Unlock the full course today

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

Linear regression

Linear regression - Python Tutorial

From the course: Python: Working with Predictive Analytics

Start my 1-month free trial

Linear regression

- [Instructor] We are now at the modeling section. In this course, we cover regression models to make predictions. Let's start with simple linear regression. Simple linear regression is nothing but explaining the dependent variable Y with independent variable X. We will use the word variable and feature and dependent variable and target interchangeably throughout this course. Imagine you are recovering from an injury and had a doctor's appointment. They ask you to walk everyday and increase the duration of the walk gradually. Well, you started to record your step counts on the Post-it notes every day. Well, what happened to these Post-it notes which were supposed to be on the wall? No one would have expected that thunderstorm and you left the windows open. Therefore, only half of your notes survived, 10 out of 20. Guess what, linear regression is here to save your back. Let's get to work. One way to fill in the missing data points would be taking the mean. So, looking at this graph…

Contents