SlideShare a Scribd company logo
3
Most read
4
Most read
11
Most read
Course - Machine Learning
Course code-IT403
Unit-II
Topic- Logistic Regression
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423603
(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’Grade Accredited, ISO 9001:2015 Certified
Department of Information Technology
(NBA Accredited)
Dr.R.D.Chintamani
Asst. Prof.
1
ML- Unit-II Regression Department of IT
Unit-II- Regression
• Syllabus
• Linear Regression, Logistic Regression, Ridge Regression, Lasso Regression,
• Polynomial Regression Types of Regression, performance metrics
• Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute
• Error (MÆ), R² (R-Squared)
2
ML- Unit-II Regression Department of IT
Unit-II- Regression
3
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
• Logistic regression is one of the most popular Machine Learning
algorithms, which comes under the Supervised Learning technique. It is
used for predicting the categorical dependent variable using a given set of
independent variables.
• Logistic regression predicts the output of a categorical dependent
variable. Therefore the outcome must be a categorical or discrete value. It
can be either Yes or No, 0 or 1, true or False, etc. but instead of giving the
exact value as 0 and 1, it gives the probabilistic values which lie between
0 and 1.
• Logistic Regression is much similar to the Linear Regression except that
how they are used. Linear Regression is used for solving Regression 4
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
5
• In Logistic regression, instead of fitting a regression line, we fit an "S"
shaped logistic function, which predicts two maximum values (0 or 1).
• The curve from the logistic function indicates the likelihood of something
such as whether the cells are cancerous or not, a mouse is obese or not
based on its weight, etc.
• Logistic Regression is a significant machine learning algorithm because it
has the ability to provide probabilities and classify new data using
continuous and discrete datasets.
• Logistic Regression can be used to classify the observations using different
types of data and can easily determine the most effective variables used
for the classification. The below image is showing the logistic function:
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
6
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
7
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
8
Logistic Function (Sigmoid Function):
• The sigmoid function is a mathematical function used
to map the predicted values to probabilities.
• It maps any real value into another value within a
range of 0 and 1.
• The value of the logistic regression must be between
0 and 1, which cannot go beyond this limit, so it
forms a curve like the "S" form. The S-form curve is
called the Sigmoid function or the logistic function.
• In logistic regression, we use the concept of the
threshold value, which defines the probability of
either 0 or 1. Such as values above the threshold
value tends to 1, and a value below the threshold
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
9
Type of Logistic Regression:
On the basis of the categories, Logistic Regression can be classified into
three types:
• Binomial: In binomial Logistic regression, there can be only two possible
types of the dependent variables, such as 0 or 1, Pass or Fail, etc.
• Multinomial: In multinomial Logistic regression, there can be 3 or more
possible unordered types of the dependent variable, such as "cat",
"dogs", or "sheep"
• Ordinal: In ordinal Logistic regression, there can be 3 or more possible
ordered types of dependent variables, such as "low", "Medium", or
"High".
ML- Unit-IV Regression Department of IT
Linear Regression Vs Logistic Regression
10
Linear Regression Logistic Regression
Linear regression is used to
predict the continuous
dependent variable using a
given set of independent
variables.
Logistic regression is used to predict
the categorical dependent variable
using a given set of independent
variables.
Linear regression is used for solving
Regression problem.
It is used for solving classification problems.
In this we predict the value of
continuous variables
In this we predict values of categorical variables
ML- Unit-IV Regression Department of IT
Linear Regression Vs Logistic Regression
11
Linear Regression Logistic Regression
In this we find best fit line. In this we find S-Curve .
Least square estimation method is
used for estimation of accuracy.
Maximum likelihood estimation method is used
for Estimation of accuracy.
The output must be continuous
value, such as price, age, etc.
Output is must be categorical value such as 0 or
1, Yes or no, etc.
It required linear relationship
between dependent and independent
variables.
It not required linear relationship.
ML- Unit-IV Regression Department of IT
Linear Regression Vs Logistic Regression
12
Linear Regression Logistic Regression
There may be collinearity between
the independent variables.
There should not be collinearity between
independent varible.
ML- Unit-IV Regression Department of IT
Logistic Regression in Machine Learning
13

More Related Content

PDF
Unit2_Linear Regression_Performance Metrics.pdf
PPTX
Logistic Regression in machine learning ppt
PPTX
Logistic Regression ml machine learning.pptx
PPTX
Supervised Machine Learning Algorithms
PDF
3ml.pdf
PPTX
Supervised learning - Linear and Logistic Regression( AI, ML)
PPTX
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
PDF
Machine Learning.pdf
Unit2_Linear Regression_Performance Metrics.pdf
Logistic Regression in machine learning ppt
Logistic Regression ml machine learning.pptx
Supervised Machine Learning Algorithms
3ml.pdf
Supervised learning - Linear and Logistic Regression( AI, ML)
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Machine Learning.pdf

Similar to Unit2_Logistic regression_machine learning.pdf (20)

PPTX
Logistic Regression power point presentation.pptx
PPTX
logistic regression in Data science Presentation
PDF
Logistic regression : Use Case | Background | Advantages | Disadvantages
PDF
logisticregression-190726150723.pdf
PDF
Module -6.pdf Machine Learning Types and examples
DOCX
Logistic Regression in machine learning.docx
PPTX
lec+5+_part+1 cloud .pptx
PPTX
Logistical Regression.pptx
PPTX
Logistic Regression.pptx
PPTX
Logistic regression is a data analysis technique that uses mathematics to fin...
PDF
Regresion logistica-modelo de clasificacion
PPTX
Logistic regression is a data analysis technique that uses mathematics to fin...
PDF
Logistic RegressionwithMathematicalExamplesonit.pdf
PPTX
Logistics Regression Using Python.pptx
PPTX
Linear Regression and Logistic Regression in ML
PDF
Logistic Regression : classification algorithm
PPTX
Logistic regression
PPTX
Regression
PPTX
Logistic Regression.pptx
PPTX
Group 20_Logistic Regression devara.pptx
Logistic Regression power point presentation.pptx
logistic regression in Data science Presentation
Logistic regression : Use Case | Background | Advantages | Disadvantages
logisticregression-190726150723.pdf
Module -6.pdf Machine Learning Types and examples
Logistic Regression in machine learning.docx
lec+5+_part+1 cloud .pptx
Logistical Regression.pptx
Logistic Regression.pptx
Logistic regression is a data analysis technique that uses mathematics to fin...
Regresion logistica-modelo de clasificacion
Logistic regression is a data analysis technique that uses mathematics to fin...
Logistic RegressionwithMathematicalExamplesonit.pdf
Logistics Regression Using Python.pptx
Linear Regression and Logistic Regression in ML
Logistic Regression : classification algorithm
Logistic regression
Regression
Logistic Regression.pptx
Group 20_Logistic Regression devara.pptx
Ad

More from RAMESHWAR CHINTAMANI (15)

PDF
Unit_3_Machine_Learning_Classification_Notes.pdf
PDF
Unit_3_Classification_Examples (1)_Performance_Metrics.pdf
PDF
MachineLearning_Unit_III._Classificationpdf
PDF
3Assessing classification performance.pdf
PDF
3Naive Bayes Classifier_Machine Learning.pdf
PDF
Unit3_Classification_BAYES_Machine_Learning.pdf
PDF
Unit3_Classification_Decision Tree ID4, C4.5, CART.pdf
PDF
Unit_2_MachineLearning_RegressionNotes_.pdf
PDF
Machine Learning_Unit_II_Regression_notes.pdf
PDF
Unit_1_Introduction to Machine Learning Notes.pdf
PDF
Unit1_Types of MACHINE LEARNING 2020pattern.pdf
PDF
Unit1_Introduction to ML_Defination_application.pdf
PDF
Unit1_Introduction to ML_Cross_validation.pdf
PDF
Unit1_Introduction to ML_Concept of features.pdf
PPT
Introduction and Applications Machine Learning
Unit_3_Machine_Learning_Classification_Notes.pdf
Unit_3_Classification_Examples (1)_Performance_Metrics.pdf
MachineLearning_Unit_III._Classificationpdf
3Assessing classification performance.pdf
3Naive Bayes Classifier_Machine Learning.pdf
Unit3_Classification_BAYES_Machine_Learning.pdf
Unit3_Classification_Decision Tree ID4, C4.5, CART.pdf
Unit_2_MachineLearning_RegressionNotes_.pdf
Machine Learning_Unit_II_Regression_notes.pdf
Unit_1_Introduction to Machine Learning Notes.pdf
Unit1_Types of MACHINE LEARNING 2020pattern.pdf
Unit1_Introduction to ML_Defination_application.pdf
Unit1_Introduction to ML_Cross_validation.pdf
Unit1_Introduction to ML_Concept of features.pdf
Introduction and Applications Machine Learning
Ad

Recently uploaded (20)

PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
web development for engineering and engineering
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
PPT on Performance Review to get promotions
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
Project quality management in manufacturing
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Internet of Things (IOT) - A guide to understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
web development for engineering and engineering
Model Code of Practice - Construction Work - 21102022 .pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT on Performance Review to get promotions
CYBER-CRIMES AND SECURITY A guide to understanding
additive manufacturing of ss316l using mig welding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Project quality management in manufacturing
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

Unit2_Logistic regression_machine learning.pdf

  • 1. Course - Machine Learning Course code-IT403 Unit-II Topic- Logistic Regression Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423603 (An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune) NAAC ‘A’Grade Accredited, ISO 9001:2015 Certified Department of Information Technology (NBA Accredited) Dr.R.D.Chintamani Asst. Prof. 1
  • 2. ML- Unit-II Regression Department of IT Unit-II- Regression • Syllabus • Linear Regression, Logistic Regression, Ridge Regression, Lasso Regression, • Polynomial Regression Types of Regression, performance metrics • Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute • Error (MÆ), R² (R-Squared) 2
  • 3. ML- Unit-II Regression Department of IT Unit-II- Regression 3
  • 4. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning • Logistic regression is one of the most popular Machine Learning algorithms, which comes under the Supervised Learning technique. It is used for predicting the categorical dependent variable using a given set of independent variables. • Logistic regression predicts the output of a categorical dependent variable. Therefore the outcome must be a categorical or discrete value. It can be either Yes or No, 0 or 1, true or False, etc. but instead of giving the exact value as 0 and 1, it gives the probabilistic values which lie between 0 and 1. • Logistic Regression is much similar to the Linear Regression except that how they are used. Linear Regression is used for solving Regression 4
  • 5. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 5 • In Logistic regression, instead of fitting a regression line, we fit an "S" shaped logistic function, which predicts two maximum values (0 or 1). • The curve from the logistic function indicates the likelihood of something such as whether the cells are cancerous or not, a mouse is obese or not based on its weight, etc. • Logistic Regression is a significant machine learning algorithm because it has the ability to provide probabilities and classify new data using continuous and discrete datasets. • Logistic Regression can be used to classify the observations using different types of data and can easily determine the most effective variables used for the classification. The below image is showing the logistic function:
  • 6. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 6
  • 7. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 7
  • 8. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 8 Logistic Function (Sigmoid Function): • The sigmoid function is a mathematical function used to map the predicted values to probabilities. • It maps any real value into another value within a range of 0 and 1. • The value of the logistic regression must be between 0 and 1, which cannot go beyond this limit, so it forms a curve like the "S" form. The S-form curve is called the Sigmoid function or the logistic function. • In logistic regression, we use the concept of the threshold value, which defines the probability of either 0 or 1. Such as values above the threshold value tends to 1, and a value below the threshold
  • 9. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 9 Type of Logistic Regression: On the basis of the categories, Logistic Regression can be classified into three types: • Binomial: In binomial Logistic regression, there can be only two possible types of the dependent variables, such as 0 or 1, Pass or Fail, etc. • Multinomial: In multinomial Logistic regression, there can be 3 or more possible unordered types of the dependent variable, such as "cat", "dogs", or "sheep" • Ordinal: In ordinal Logistic regression, there can be 3 or more possible ordered types of dependent variables, such as "low", "Medium", or "High".
  • 10. ML- Unit-IV Regression Department of IT Linear Regression Vs Logistic Regression 10 Linear Regression Logistic Regression Linear regression is used to predict the continuous dependent variable using a given set of independent variables. Logistic regression is used to predict the categorical dependent variable using a given set of independent variables. Linear regression is used for solving Regression problem. It is used for solving classification problems. In this we predict the value of continuous variables In this we predict values of categorical variables
  • 11. ML- Unit-IV Regression Department of IT Linear Regression Vs Logistic Regression 11 Linear Regression Logistic Regression In this we find best fit line. In this we find S-Curve . Least square estimation method is used for estimation of accuracy. Maximum likelihood estimation method is used for Estimation of accuracy. The output must be continuous value, such as price, age, etc. Output is must be categorical value such as 0 or 1, Yes or no, etc. It required linear relationship between dependent and independent variables. It not required linear relationship.
  • 12. ML- Unit-IV Regression Department of IT Linear Regression Vs Logistic Regression 12 Linear Regression Logistic Regression There may be collinearity between the independent variables. There should not be collinearity between independent varible.
  • 13. ML- Unit-IV Regression Department of IT Logistic Regression in Machine Learning 13