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

More Related Content

Similar to Logistic Regression : classification algorithm (20)

PPTX
DS103 - Unit04 - Part1DS103 - Unit04 - Part1.pptx
FutureTechnologies3
 
PPTX
logistic regression in Data science Presentation
ARUN R S
 
PPTX
logistic regression in Data science Presentation
ARUN R S
 
PPTX
Logistic Regression power point presentation.pptx
harshasawa2003
 
PDF
Poster
fan yang
 
PDF
ML_Lec4 introduction to linear regression.pdf
BeshoyArnest
 
PPTX
Logistic Regression.pptx
Muskaan194530
 
PPTX
Logistic Regression in machine learning ppt
raminder12_kaur
 
PPTX
Regresión
Ramiro Aduviri Velasco
 
PDF
Classification Techniques for Machine Learning
rahuljain582793
 
PDF
Causality without headaches
Benoît Rostykus
 
PPTX
Machine learning session 8
NirsandhG
 
PPTX
basics of Logistic-regression power point presentation
DharmishthaChaudhari
 
PPTX
Advance Machine Learning presentation.pptx
ImXaib
 
PDF
Detection of credit card fraud
Bastiaan Frerix
 
PPTX
Logistic-regression.pptx
sherinjoyson
 
PDF
Top 20 Data Science Interview Questions and Answers in 2023.pdf
AnanthReddy38
 
PDF
2018 p 2019-ee-a2
uetian12
 
PDF
logisticregression-190726150723.pdf
SuaibDanish
 
DS103 - Unit04 - Part1DS103 - Unit04 - Part1.pptx
FutureTechnologies3
 
logistic regression in Data science Presentation
ARUN R S
 
logistic regression in Data science Presentation
ARUN R S
 
Logistic Regression power point presentation.pptx
harshasawa2003
 
Poster
fan yang
 
ML_Lec4 introduction to linear regression.pdf
BeshoyArnest
 
Logistic Regression.pptx
Muskaan194530
 
Logistic Regression in machine learning ppt
raminder12_kaur
 
Classification Techniques for Machine Learning
rahuljain582793
 
Causality without headaches
Benoît Rostykus
 
Machine learning session 8
NirsandhG
 
basics of Logistic-regression power point presentation
DharmishthaChaudhari
 
Advance Machine Learning presentation.pptx
ImXaib
 
Detection of credit card fraud
Bastiaan Frerix
 
Logistic-regression.pptx
sherinjoyson
 
Top 20 Data Science Interview Questions and Answers in 2023.pdf
AnanthReddy38
 
2018 p 2019-ee-a2
uetian12
 
logisticregression-190726150723.pdf
SuaibDanish
 

More from habibaabderrahim1 (13)

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

Recently uploaded (20)

PPTX
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
PPTX
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
PDF
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
PPTX
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
PPTX
办理学历认证InformaticsLetter新加坡英华美学院毕业证书,Informatics成绩单
Taqyea
 
PPT
Growth of Public Expendituuure_55423.ppt
NavyaDeora
 
PDF
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
PPTX
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
PDF
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
PDF
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
PDF
NIS2 Compliance for MSPs: Roadmap, Benefits & Cybersecurity Trends (2025 Guide)
GRC Kompas
 
PDF
Technical-Report-GPS_GIS_RS-for-MSF-finalv2.pdf
KPycho
 
PPT
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
PPTX
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
PPTX
big data eco system fundamentals of data science
arivukarasi
 
PPTX
在线购买英国本科毕业证苏格兰皇家音乐学院水印成绩单RSAMD学费发票
Taqyea
 
PPTX
How to Add Columns and Rows in an R Data Frame
subhashenia
 
PDF
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
PDF
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
PDF
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
办理学历认证InformaticsLetter新加坡英华美学院毕业证书,Informatics成绩单
Taqyea
 
Growth of Public Expendituuure_55423.ppt
NavyaDeora
 
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
NIS2 Compliance for MSPs: Roadmap, Benefits & Cybersecurity Trends (2025 Guide)
GRC Kompas
 
Technical-Report-GPS_GIS_RS-for-MSF-finalv2.pdf
KPycho
 
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
big data eco system fundamentals of data science
arivukarasi
 
在线购买英国本科毕业证苏格兰皇家音乐学院水印成绩单RSAMD学费发票
Taqyea
 
How to Add Columns and Rows in an R Data Frame
subhashenia
 
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
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.