Simple Linear Regression in Python
Angelie P. Sabanal
Instructor
Importing Relevant Libraries
Loading the Data
Visualizing the Data Frame
Visualizing the Data Frame
Visualizing the Data Frame
Each time we create
a regression, it should be
meaningful.
Creating our First Regression in Python
Exploring the Data
Explore the Data
Explore the Data
Ordinary Least Squares (OLS) Regression
Regression Results
Regression Results
Plotting the Regression Line
Interpreting the Results
Regression Model:
ŷ= 0.275 + 0.0017 x1 .