Professional Documents
Culture Documents
Data Mining Part 2
Data Mining Part 2
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Objectives
What is Regression? Salary prediction using python
Use case of Regression Uber data analysis to predict the cab fare
Types of Regression
Understand regression
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Regression?
Regression is a technique that predicts the value of variable ‘y’ based on the values of variable ‘x’.
For example,
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Use case of Regression
Note: As the temperature increases, number of cones sold at ice cream stores also increases.
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Types Of Regression
There are various types of Regression like:
● Linear Regression
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Linear Regression?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Multiple Linear Regression?
Multiple regression is nothing but an extension of linear regression. It helps to find the relationship
between more than two variables. As we know in simple linear relation has one predictor and one
response variable, but in the case of multiple regression we have more than one predictor variable
and one response variable.
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Types Of Linear Regression
X1
X Y X2
X3
Y
X4
X5
X6
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Types Of Linear Regression
Equation Equation
Independent Variables
Dependant Variable
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Understand simple Linear Regression
Y
Dependent Variable
Independent Variable
X
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Understand simple Linear Regression with observations
Y
Dependent Variable
Observation
X
Independent Variable
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Understand simple Linear Regression with observations
Y
Dependent Variable
X
Independent Variable
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Understand simple Linear Regression with observations
Y
Regression Line
Dependent Variable
X
Independent Variable
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Understand simple Linear Regression with observations
Y
Dependent Variable
Regression Line
error
Estimated Value
X
Independent Variable
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Demo: Implement Linear regression
using Python
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Demo: Salary prediction using
Python
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Demo: Uber data analysis to predict
the cab fare using Python
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Thank you
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited