KEMBAR78
Linear Regression vs Logistic Regression | Edureka | PDF
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Agenda
32 41 5
Types of Machine
Learning
Regression Vs
Classification
What is Linear
Regression?
Linear Regression
Use case
What is Logistic
Regression?
6
Logistic Regression
Use case
7
Linear Vs Logistic
Regression
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Types Of Machine Learning
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Types Of Machine Learning
Reinforcement LearningSupervised Learning Unsupervised Learning
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Regression And Classification
Machine Learning
Supervised learning Unsupervised learning Reinforcement learning
Classification Regression
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Regression Vs Classification
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Regression Vs Classification
Classification Regression
Classification is the task of predicting a discrete class label Regression is the task of predicting a continuous quantity
• In a classification problem data is classified into one of
two or more classes
• A classification problem with two classes is called binary,
more than two classes is called a multi-class
classification
Spam
Non-Spam
Mail
• A regression problem requires the prediction of a quantity
• A regression problem with multiple input variables is
called a multivariate regression problem
Predicted price
Actual price
Time
Price
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Linear Regression?
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Linear Regression?
Linear Regression is a method to predict dependent variable (Y) based on values of independent
variables (X). It can be used for the cases where we want to predict some continuous quantity.
• Dependent variable (Y):
The response variable who’s value needs to be
predicted.
• Independent variable (X):
The predictor variable used to predict the response
variable.
The following equation is used to represent a linear
regression model:
Y= 𝒃 𝟎 + 𝒃 𝟏 𝒙 + ⅇx
y
independent variable
dependentvariable
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Linear Regression?
Linear Regression is a method to predict dependent variable (Y) based on values of independent
variables (X). It can be used for the cases where we want to predict some continuous quantity.
x
y
independent variable
dependentvariable
Y= 𝒃 𝟎 + 𝒃 𝟏 𝒙 + ⅇ
dependent variable
Y intercept
Slope
independent variable
Error
Y intercept ( 𝑏0)
Error (e)
Slope ( 𝑏1)
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Logistic Regression?
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Logistic Regression?
Logistic Regression is a method used to predict a dependent variable, given a set of
independent variables, such that the dependent variable is categorical.
x
y
independent variable
dependentvariable
0
1
• Dependent variable (Y):
The response binary variable holding values like 0 or 1,
Yes or No, A, B or C
• Independent variable (X):
The predictor variable used to predict the response
variable.
The following equation is used to represent a linear
regression model:
𝐘
𝟏 − 𝐘
log = C + B1X1 + B2X2 + ….
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
What Is Logistic Regression?
Logistic Regression is a method used to predict a dependent variable, given a set of
independent variables, such that the dependent variable is categorical.
x
y
independent variable
dependentvariable
0
1 𝐘
𝟏 − 𝐘
log = C + B1X1 + B2X2 + ….
• Y is the probability of an event to happen which
you are trying to predict
• x1, x2 are the independent variables which
determine the occurrence of an event i.e. Y
• C is the constant term which will be the probability
of the event happening when no other factors are
considered
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Linear Regression Use Case
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Linear Regression Use Case
To forecast monthly sales by studying the relationship between the monthly e-commerce
sales and the online advertising costs.
Monthly sales
Advertising cost
In 1000s
200
900
450
680
490
300
0.5
5
1.9
3.2
2.0
1.0
200
400
600
800
1000
1.0 2.0 3.0 4.0 5.0
Cost in 1000s
Monthlysales
y
x
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Logistic Regression Use Case
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Logistic Regression Use Case
To predict if a student will get admitted to a school based on his CGPA.
Admission CGPA
0
0
0
1
1
1
4.2
5.1
5.5
8.2
9.0
9.1
0
1
2.0 4.0 6.0 8.0 10
CGPA
Admission
y
x
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Linear Regression Vs Logistic Regression
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
Linear Regression Vs Logistic Regression
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
YouTube Video Link in the Description
DATA SCIENCE CERTIFICATION TRAINING www.edureka.co/data-science
WebDriver vs. IDE vs. RC
➢ Data Warehouse is like a relational database designed for analytical needs.
➢ It functions on the basis of OLAP (Online Analytical Processing).
➢ It is a central location where consolidated data from multiple locations (databases) are stored.

Linear Regression vs Logistic Regression | Edureka

  • 2.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Agenda 32 41 5 Types of Machine Learning Regression Vs Classification What is Linear Regression? Linear Regression Use case What is Logistic Regression? 6 Logistic Regression Use case 7 Linear Vs Logistic Regression
  • 3.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Types Of Machine Learning
  • 4.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Types Of Machine Learning Reinforcement LearningSupervised Learning Unsupervised Learning
  • 5.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Regression And Classification Machine Learning Supervised learning Unsupervised learning Reinforcement learning Classification Regression
  • 6.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Regression Vs Classification
  • 7.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Regression Vs Classification Classification Regression Classification is the task of predicting a discrete class label Regression is the task of predicting a continuous quantity • In a classification problem data is classified into one of two or more classes • A classification problem with two classes is called binary, more than two classes is called a multi-class classification Spam Non-Spam Mail • A regression problem requires the prediction of a quantity • A regression problem with multiple input variables is called a multivariate regression problem Predicted price Actual price Time Price
  • 8.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Linear Regression?
  • 9.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Linear Regression? Linear Regression is a method to predict dependent variable (Y) based on values of independent variables (X). It can be used for the cases where we want to predict some continuous quantity. • Dependent variable (Y): The response variable who’s value needs to be predicted. • Independent variable (X): The predictor variable used to predict the response variable. The following equation is used to represent a linear regression model: Y= 𝒃 𝟎 + 𝒃 𝟏 𝒙 + ⅇx y independent variable dependentvariable
  • 10.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Linear Regression? Linear Regression is a method to predict dependent variable (Y) based on values of independent variables (X). It can be used for the cases where we want to predict some continuous quantity. x y independent variable dependentvariable Y= 𝒃 𝟎 + 𝒃 𝟏 𝒙 + ⅇ dependent variable Y intercept Slope independent variable Error Y intercept ( 𝑏0) Error (e) Slope ( 𝑏1)
  • 11.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Logistic Regression?
  • 12.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Logistic Regression? Logistic Regression is a method used to predict a dependent variable, given a set of independent variables, such that the dependent variable is categorical. x y independent variable dependentvariable 0 1 • Dependent variable (Y): The response binary variable holding values like 0 or 1, Yes or No, A, B or C • Independent variable (X): The predictor variable used to predict the response variable. The following equation is used to represent a linear regression model: 𝐘 𝟏 − 𝐘 log = C + B1X1 + B2X2 + ….
  • 13.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science What Is Logistic Regression? Logistic Regression is a method used to predict a dependent variable, given a set of independent variables, such that the dependent variable is categorical. x y independent variable dependentvariable 0 1 𝐘 𝟏 − 𝐘 log = C + B1X1 + B2X2 + …. • Y is the probability of an event to happen which you are trying to predict • x1, x2 are the independent variables which determine the occurrence of an event i.e. Y • C is the constant term which will be the probability of the event happening when no other factors are considered
  • 14.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Linear Regression Use Case
  • 15.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Linear Regression Use Case To forecast monthly sales by studying the relationship between the monthly e-commerce sales and the online advertising costs. Monthly sales Advertising cost In 1000s 200 900 450 680 490 300 0.5 5 1.9 3.2 2.0 1.0 200 400 600 800 1000 1.0 2.0 3.0 4.0 5.0 Cost in 1000s Monthlysales y x
  • 16.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Logistic Regression Use Case
  • 17.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Logistic Regression Use Case To predict if a student will get admitted to a school based on his CGPA. Admission CGPA 0 0 0 1 1 1 4.2 5.1 5.5 8.2 9.0 9.1 0 1 2.0 4.0 6.0 8.0 10 CGPA Admission y x
  • 18.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Linear Regression Vs Logistic Regression
  • 19.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science Linear Regression Vs Logistic Regression
  • 20.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science YouTube Video Link in the Description
  • 21.
    DATA SCIENCE CERTIFICATIONTRAINING www.edureka.co/data-science WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored.