SlideShare a Scribd company logo
6
Most read
7
Most read
8
Most read
Logistic
Regression
Introduction
logistic Regression : what , when and
how ?
Advantages and Disadvantages
Uses cases
Demo
Introduction
What is Regression?
Regression is one of the most common models of machine learning , it is a way of
predicting future happenings between a dependent (target) and one or more
independent (predictor) variables .
3
Regression
Linear regression Logistic regression
Polynomial
regression
logistic Regression :
What ?
Logistic regression is a classification algorithm used to assign observations to a discrete set of
classes , In other words,the outcome or target variable is dichotomous in nature , which means it
can only have one of two values (either 0 or 1, true or false, black or white, spam or not spam, and so
on … )
logistic Regression :
When ?
logistic Regression :
How ?
Logistic Regression predicts the probability of occurrence of a binary event utilizing what we call
logit function or Sigmoid function .
The hypothesis of logistic regression :
ted will become 0.
The hypothesis of logistic regression :
1. Linear Regression fonction :
1. Sigmoid Function:
1. Apply Sigmoid function on linear regression:
Example
Does a patient have a lung cancer ?
New Data
Best Fit
Maximum likelihood
Optimization
The Cost function of Logistic regression
Cost Function
The cost function represents optimization objective i.e. we create a cost function
and minimize it so that we can develop an accurate model with minimum error.
Gradient Descent
Gradient descent is an optimization algorithm ,
The main goal of it is to minimize the cost value.
Objective: To minimize the cost function we have to run the gradient
descent function on each parameter .
12
Uses Cases
Logistic Regression has a wide range of real-life applications :
medical fields
13
Social sciences
Marketing fields
Advantages
❖ Useful on problems where you need to give
more rationale for a prediction
❖ Doesn't require high computation power
❖ Easy to implement and to interpret
❖ Used widely by data analyst and scientist
❖ Logistic regression provides a probability
score for observations
Disadvantages
❖ Logistic regression is not able to handle a
large number of categorical features.
❖ Logistic regression will not perform well
with independent variables that are not
correlated to the target variable and are
very similar or correlated to each other.
“
▸ Thank you !
16
Ad

Recommended

lec+5+_part+1 cloud .pptx
lec+5+_part+1 cloud .pptx
samaghorab
 
Logistic Regression in machine learning ppt
Logistic Regression in machine learning ppt
raminder12_kaur
 
Logistic Regression.pptx
Logistic Regression.pptx
Muskaan194530
 
Logistic Regression power point presentation.pptx
Logistic Regression power point presentation.pptx
harshasawa2003
 
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Simplilearn
 
Logistic Regression.pptx
Logistic Regression.pptx
VishnuKrishnan45
 
logistic regression in Data science Presentation
logistic regression in Data science Presentation
ARUN R S
 
Logistics Regression Using Python.pptx
Logistics Regression Using Python.pptx
SharmilaMore5
 
logisticregression-190726150723.pdf
logisticregression-190726150723.pdf
SuaibDanish
 
Logistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | Disadvantages
Rajat Sharma
 
Group 20_Logistic Regression devara.pptx
Group 20_Logistic Regression devara.pptx
sriaditya070304
 
3ml.pdf
3ml.pdf
MianAdnan27
 
Introduction to Logistic Regression and Its Applications.pptx
Introduction to Logistic Regression and Its Applications.pptx
kcharizmacruz
 
LOGISTIC_REGRESSION for AI and ML Beginners
LOGISTIC_REGRESSION for AI and ML Beginners
DebdattaBhattacharya1
 
Logistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Logistic regression
Logistic regression
Rupak Roy
 
Logistic regression.ppt
Logistic regression.ppt
BalaChowdappa1
 
Machine Learning-Lec5.pdf_explain of logistic regression
Machine Learning-Lec5.pdf_explain of logistic regression
BeshoyArnest
 
Unit2_Logistic regression_machine learning.pdf
Unit2_Logistic regression_machine learning.pdf
RAMESHWAR CHINTAMANI
 
Logistic Regression - Intro to Data Analytics
Logistic Regression - Intro to Data Analytics
AaradhyaDixit6
 
Logistic Regression in machine learning.docx
Logistic Regression in machine learning.docx
AbhaBansal8
 
Logistic regression
Logistic regression
DrZahid Khan
 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
Kumud Arora
 
Logistic regression
Logistic regression
YashwantGahlot1
 
Machine Learning.pdf
Machine Learning.pdf
University of Sindh
 
Supervised Machine Learning Algorithms
Supervised Machine Learning Algorithms
engrfarhanhanif
 
Logistic Regression Classifier - Conceptual Guide
Logistic Regression Classifier - Conceptual Guide
Caglar Subasi
 
7. logistics regression using spss
7. logistics regression using spss
Dr Nisha Arora
 
How to conduct a scooping Review .pptx.pdf
How to conduct a scooping Review .pptx.pdf
habibaabderrahim1
 
AthleteMentalHealthMental Fatigue Management.pptx.pdf
AthleteMentalHealthMental Fatigue Management.pptx.pdf
habibaabderrahim1
 

More Related Content

Similar to Logistic Regression : classification algorithm (20)

logisticregression-190726150723.pdf
logisticregression-190726150723.pdf
SuaibDanish
 
Logistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | Disadvantages
Rajat Sharma
 
Group 20_Logistic Regression devara.pptx
Group 20_Logistic Regression devara.pptx
sriaditya070304
 
3ml.pdf
3ml.pdf
MianAdnan27
 
Introduction to Logistic Regression and Its Applications.pptx
Introduction to Logistic Regression and Its Applications.pptx
kcharizmacruz
 
LOGISTIC_REGRESSION for AI and ML Beginners
LOGISTIC_REGRESSION for AI and ML Beginners
DebdattaBhattacharya1
 
Logistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Logistic regression
Logistic regression
Rupak Roy
 
Logistic regression.ppt
Logistic regression.ppt
BalaChowdappa1
 
Machine Learning-Lec5.pdf_explain of logistic regression
Machine Learning-Lec5.pdf_explain of logistic regression
BeshoyArnest
 
Unit2_Logistic regression_machine learning.pdf
Unit2_Logistic regression_machine learning.pdf
RAMESHWAR CHINTAMANI
 
Logistic Regression - Intro to Data Analytics
Logistic Regression - Intro to Data Analytics
AaradhyaDixit6
 
Logistic Regression in machine learning.docx
Logistic Regression in machine learning.docx
AbhaBansal8
 
Logistic regression
Logistic regression
DrZahid Khan
 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
Kumud Arora
 
Logistic regression
Logistic regression
YashwantGahlot1
 
Machine Learning.pdf
Machine Learning.pdf
University of Sindh
 
Supervised Machine Learning Algorithms
Supervised Machine Learning Algorithms
engrfarhanhanif
 
Logistic Regression Classifier - Conceptual Guide
Logistic Regression Classifier - Conceptual Guide
Caglar Subasi
 
7. logistics regression using spss
7. logistics regression using spss
Dr Nisha Arora
 
logisticregression-190726150723.pdf
logisticregression-190726150723.pdf
SuaibDanish
 
Logistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | Disadvantages
Rajat Sharma
 
Group 20_Logistic Regression devara.pptx
Group 20_Logistic Regression devara.pptx
sriaditya070304
 
Introduction to Logistic Regression and Its Applications.pptx
Introduction to Logistic Regression and Its Applications.pptx
kcharizmacruz
 
LOGISTIC_REGRESSION for AI and ML Beginners
LOGISTIC_REGRESSION for AI and ML Beginners
DebdattaBhattacharya1
 
Logistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Logistic regression
Logistic regression
Rupak Roy
 
Logistic regression.ppt
Logistic regression.ppt
BalaChowdappa1
 
Machine Learning-Lec5.pdf_explain of logistic regression
Machine Learning-Lec5.pdf_explain of logistic regression
BeshoyArnest
 
Unit2_Logistic regression_machine learning.pdf
Unit2_Logistic regression_machine learning.pdf
RAMESHWAR CHINTAMANI
 
Logistic Regression - Intro to Data Analytics
Logistic Regression - Intro to Data Analytics
AaradhyaDixit6
 
Logistic Regression in machine learning.docx
Logistic Regression in machine learning.docx
AbhaBansal8
 
Logistic regression
Logistic regression
DrZahid Khan
 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
Kumud Arora
 
Supervised Machine Learning Algorithms
Supervised Machine Learning Algorithms
engrfarhanhanif
 
Logistic Regression Classifier - Conceptual Guide
Logistic Regression Classifier - Conceptual Guide
Caglar Subasi
 
7. logistics regression using spss
7. logistics regression using spss
Dr Nisha Arora
 

More from habibaabderrahim1 (13)

How to conduct a scooping Review .pptx.pdf
How to conduct a scooping Review .pptx.pdf
habibaabderrahim1
 
AthleteMentalHealthMental Fatigue Management.pptx.pdf
AthleteMentalHealthMental Fatigue Management.pptx.pdf
habibaabderrahim1
 
ridge regression calories prediction.pdf
ridge regression calories prediction.pdf
habibaabderrahim1
 
Fuzzy Logic Control of Blood Pressure during Anesthesia.pdf
Fuzzy Logic Control of Blood Pressure during Anesthesia.pdf
habibaabderrahim1
 
Marketing Channel Reporting Too using PowerBI and Data Analysis
Marketing Channel Reporting Too using PowerBI and Data Analysis
habibaabderrahim1
 
Google File System: System and Design Overview
Google File System: System and Design Overview
habibaabderrahim1
 
Emotions ontology summarized presentaion
Emotions ontology summarized presentaion
habibaabderrahim1
 
Neo4j.pptx
Neo4j.pptx
habibaabderrahim1
 
Analyzing Digital Banking.pptx
Analyzing Digital Banking.pptx
habibaabderrahim1
 
map Reduce.pptx
map Reduce.pptx
habibaabderrahim1
 
SLR and SMR.pptx
SLR and SMR.pptx
habibaabderrahim1
 
Trapezoidal Velocity.pptx
Trapezoidal Velocity.pptx
habibaabderrahim1
 
Social Recommendation a Review.pptx
Social Recommendation a Review.pptx
habibaabderrahim1
 
How to conduct a scooping Review .pptx.pdf
How to conduct a scooping Review .pptx.pdf
habibaabderrahim1
 
AthleteMentalHealthMental Fatigue Management.pptx.pdf
AthleteMentalHealthMental Fatigue Management.pptx.pdf
habibaabderrahim1
 
ridge regression calories prediction.pdf
ridge regression calories prediction.pdf
habibaabderrahim1
 
Fuzzy Logic Control of Blood Pressure during Anesthesia.pdf
Fuzzy Logic Control of Blood Pressure during Anesthesia.pdf
habibaabderrahim1
 
Marketing Channel Reporting Too using PowerBI and Data Analysis
Marketing Channel Reporting Too using PowerBI and Data Analysis
habibaabderrahim1
 
Google File System: System and Design Overview
Google File System: System and Design Overview
habibaabderrahim1
 
Emotions ontology summarized presentaion
Emotions ontology summarized presentaion
habibaabderrahim1
 
Analyzing Digital Banking.pptx
Analyzing Digital Banking.pptx
habibaabderrahim1
 
Social Recommendation a Review.pptx
Social Recommendation a Review.pptx
habibaabderrahim1
 
Ad

Recently uploaded (20)

MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
OlhaTatokhina1
 
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays
 
Attendance Presentation Project Excel.pptx
Attendance Presentation Project Excel.pptx
s2025266191
 
FME Beyond Data Processing: Creating a Dartboard Accuracy App
FME Beyond Data Processing: Creating a Dartboard Accuracy App
jacoba18
 
Data Warehousing and Analytics IFI Techsolutions .pptx
Data Warehousing and Analytics IFI Techsolutions .pptx
IFI Techsolutions
 
最新版美国佐治亚大学毕业证(UGA毕业证书)原版定制
最新版美国佐治亚大学毕业证(UGA毕业证书)原版定制
Taqyea
 
Advanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdf
leogoemmanguyenthao
 
SQL-Demystified-A-Beginners-Guide-to-Database-Mastery.pptx
SQL-Demystified-A-Beginners-Guide-to-Database-Mastery.pptx
bhavaniteacher99
 
5. & 9. Packing material and Labelling_AP-60,XP-60.pdf
5. & 9. Packing material and Labelling_AP-60,XP-60.pdf
maricruzduranpaterni
 
SAP_S4HANA_EWM_Food_Processing_Industry.pptx
SAP_S4HANA_EWM_Food_Processing_Industry.pptx
vemulavenu484
 
SUNSSE Engineering Introduction 2021.pdf
SUNSSE Engineering Introduction 2021.pdf
Ongkino
 
apidays Singapore 2025 - Building Finance Innovation Ecosystems by Umang Moon...
apidays Singapore 2025 - Building Finance Innovation Ecosystems by Umang Moon...
apidays
 
Veilig en vlot fietsen in Oost-Vlaanderen: Fietssnelwegen geoptimaliseerd met...
Veilig en vlot fietsen in Oost-Vlaanderen: Fietssnelwegen geoptimaliseerd met...
jacoba18
 
Fundamental Analysis for Dummies.pdf somwmdw
Fundamental Analysis for Dummies.pdf somwmdw
ssuserc74044
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
rinzindorjej
 
Residential Zone 4 for industrial village
Residential Zone 4 for industrial village
MdYasinArafat13
 
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays
 
Section Three - Project colemanite production China
Section Three - Project colemanite production China
VavaniaM
 
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays
 
QUALITATIVE EXPLANATORY VARIABLES REGRESSION MODELS
QUALITATIVE EXPLANATORY VARIABLES REGRESSION MODELS
Ameya Patekar
 
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
MEDIA_LITERACY_INDEX_OF_EDUCATORS_ENG.pdf
OlhaTatokhina1
 
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays New York 2025 - Life is But a (Data) Stream by Sandon Jacobs (Confluent)
apidays
 
Attendance Presentation Project Excel.pptx
Attendance Presentation Project Excel.pptx
s2025266191
 
FME Beyond Data Processing: Creating a Dartboard Accuracy App
FME Beyond Data Processing: Creating a Dartboard Accuracy App
jacoba18
 
Data Warehousing and Analytics IFI Techsolutions .pptx
Data Warehousing and Analytics IFI Techsolutions .pptx
IFI Techsolutions
 
最新版美国佐治亚大学毕业证(UGA毕业证书)原版定制
最新版美国佐治亚大学毕业证(UGA毕业证书)原版定制
Taqyea
 
Advanced_English_Pronunciation_in_Use.pdf
Advanced_English_Pronunciation_in_Use.pdf
leogoemmanguyenthao
 
SQL-Demystified-A-Beginners-Guide-to-Database-Mastery.pptx
SQL-Demystified-A-Beginners-Guide-to-Database-Mastery.pptx
bhavaniteacher99
 
5. & 9. Packing material and Labelling_AP-60,XP-60.pdf
5. & 9. Packing material and Labelling_AP-60,XP-60.pdf
maricruzduranpaterni
 
SAP_S4HANA_EWM_Food_Processing_Industry.pptx
SAP_S4HANA_EWM_Food_Processing_Industry.pptx
vemulavenu484
 
SUNSSE Engineering Introduction 2021.pdf
SUNSSE Engineering Introduction 2021.pdf
Ongkino
 
apidays Singapore 2025 - Building Finance Innovation Ecosystems by Umang Moon...
apidays Singapore 2025 - Building Finance Innovation Ecosystems by Umang Moon...
apidays
 
Veilig en vlot fietsen in Oost-Vlaanderen: Fietssnelwegen geoptimaliseerd met...
Veilig en vlot fietsen in Oost-Vlaanderen: Fietssnelwegen geoptimaliseerd met...
jacoba18
 
Fundamental Analysis for Dummies.pdf somwmdw
Fundamental Analysis for Dummies.pdf somwmdw
ssuserc74044
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
rinzindorjej
 
Residential Zone 4 for industrial village
Residential Zone 4 for industrial village
MdYasinArafat13
 
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays New York 2025 - Using GraphQL SDL files as executable API Contracts b...
apidays
 
Section Three - Project colemanite production China
Section Three - Project colemanite production China
VavaniaM
 
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays Singapore 2025 - 4 Identity Essentials for Scaling SaaS in Large Orgs...
apidays
 
QUALITATIVE EXPLANATORY VARIABLES REGRESSION MODELS
QUALITATIVE EXPLANATORY VARIABLES REGRESSION MODELS
Ameya Patekar
 
Ad

Logistic Regression : classification algorithm

  • 2. Introduction logistic Regression : what , when and how ? Advantages and Disadvantages Uses cases Demo
  • 3. Introduction What is Regression? Regression is one of the most common models of machine learning , it is a way of predicting future happenings between a dependent (target) and one or more independent (predictor) variables . 3 Regression Linear regression Logistic regression Polynomial regression
  • 4. logistic Regression : What ? Logistic regression is a classification algorithm used to assign observations to a discrete set of classes , In other words,the outcome or target variable is dichotomous in nature , which means it can only have one of two values (either 0 or 1, true or false, black or white, spam or not spam, and so on … )
  • 6. logistic Regression : How ? Logistic Regression predicts the probability of occurrence of a binary event utilizing what we call logit function or Sigmoid function . The hypothesis of logistic regression : ted will become 0.
  • 7. The hypothesis of logistic regression : 1. Linear Regression fonction : 1. Sigmoid Function: 1. Apply Sigmoid function on linear regression:
  • 8. Example Does a patient have a lung cancer ?
  • 11. Optimization The Cost function of Logistic regression Cost Function The cost function represents optimization objective i.e. we create a cost function and minimize it so that we can develop an accurate model with minimum error.
  • 12. Gradient Descent Gradient descent is an optimization algorithm , The main goal of it is to minimize the cost value. Objective: To minimize the cost function we have to run the gradient descent function on each parameter . 12
  • 13. Uses Cases Logistic Regression has a wide range of real-life applications : medical fields 13 Social sciences Marketing fields
  • 14. Advantages ❖ Useful on problems where you need to give more rationale for a prediction ❖ Doesn't require high computation power ❖ Easy to implement and to interpret ❖ Used widely by data analyst and scientist ❖ Logistic regression provides a probability score for observations
  • 15. Disadvantages ❖ Logistic regression is not able to handle a large number of categorical features. ❖ Logistic regression will not perform well with independent variables that are not correlated to the target variable and are very similar or correlated to each other.