Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
46 views16 pages

Linear Regression in Python

This document discusses simple linear regression in Python. It covers importing relevant libraries, loading and visualizing sample data, exploring the data, performing an ordinary least squares regression to find the regression line, and interpreting the results. The regression model found for the sample data is ŷ= 0.275 + 0.0017 x1, showing a positive linear relationship between the variables.

Uploaded by

Nezuko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views16 pages

Linear Regression in Python

This document discusses simple linear regression in Python. It covers importing relevant libraries, loading and visualizing sample data, exploring the data, performing an ordinary least squares regression to find the regression line, and interpreting the results. The regression model found for the sample data is ŷ= 0.275 + 0.0017 x1, showing a positive linear relationship between the variables.

Uploaded by

Nezuko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

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 .

You might also like