Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

SIMPLE LINEAR

REGRESSION

KSI Microsoft AEP mentorrbuddy.com


SIMPLE LINEAR REGRESSION

Co-efficient

Simple y=a*x+b Constant


Linear
Regression
Independent
Dependent variable
variable

KSI Microsoft AEP mentorrbuddy.com


Salary

10k

30k

1 yr Experience

KSI Microsoft AEP mentorrbuddy.com


IMPORTING THE LIBRARIES

KSI Microsoft AEP mentorrbuddy.com


IMPORTING THE DATA SET

KSI Microsoft AEP mentorrbuddy.com


SEPARATING INDEPENDENT AND DEPENDENT
VARIABLE

KSI Microsoft AEP mentorrbuddy.com


SPLITTING THE PREVIOUS DATA INTO TRAIN AND TEST
DATA AND CREATING LINEAR REGRESSION MODEL

KSI Microsoft AEP mentorrbuddy.com


PLOTTING THE TRAIN DATA

KSI Microsoft AEP mentorrbuddy.com


PLOTTING THE TEST DATA

KSI Microsoft AEP mentorrbuddy.com


THANK YOU

KSI Microsoft AEP mentorrbuddy.com

You might also like