SlideShare a Scribd company logo
6
Most read
8
Most read
10
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

PPTX
Logistic Regression - Intro to Data Analytics
PPTX
Penalized Logistic Regression methods .pptx
PPTX
lec+5+_part+1 cloud .pptx
PDF
Machine Learning.pdf
PPTX
Supervised Machine Learning Algorithms
PPTX
Logistic Regression.pptx
PDF
Machine learning in credit risk modeling : a James white paper
PDF
Supervised Learning.pdf
Logistic Regression - Intro to Data Analytics
Penalized Logistic Regression methods .pptx
lec+5+_part+1 cloud .pptx
Machine Learning.pdf
Supervised Machine Learning Algorithms
Logistic Regression.pptx
Machine learning in credit risk modeling : a James white paper
Supervised Learning.pdf

Similar to Logistic Regression : classification algorithm (20)

PPTX
DS103 - Unit04 - Part1DS103 - Unit04 - Part1.pptx
PPTX
logistic regression in Data science Presentation
PPTX
logistic regression in Data science Presentation
PPTX
Logistic Regression power point presentation.pptx
PDF
Poster
PDF
ML_Lec4 introduction to linear regression.pdf
PPTX
Classification Algortyhm of Machine Learning
PPTX
Logistic Regression.pptx
PPTX
Logistic Regression in machine learning ppt
PDF
MS CHAPETR 1-3 Students note_Managerial Economics
PPTX
PDF
Classification Techniques for Machine Learning
PDF
Causality without headaches
PPTX
Machine learning session 8
PPTX
basics of Logistic-regression power point presentation
PPTX
Advance Machine Learning presentation.pptx
PDF
Detection of credit card fraud
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PPTX
Logistic-regression.pptx
DS103 - Unit04 - Part1DS103 - Unit04 - Part1.pptx
logistic regression in Data science Presentation
logistic regression in Data science Presentation
Logistic Regression power point presentation.pptx
Poster
ML_Lec4 introduction to linear regression.pdf
Classification Algortyhm of Machine Learning
Logistic Regression.pptx
Logistic Regression in machine learning ppt
MS CHAPETR 1-3 Students note_Managerial Economics
Classification Techniques for Machine Learning
Causality without headaches
Machine learning session 8
basics of Logistic-regression power point presentation
Advance Machine Learning presentation.pptx
Detection of credit card fraud
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
Logistic-regression.pptx
Ad

More from habibaabderrahim1 (13)

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

Recently uploaded (20)

PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPT
Quality review (1)_presentation of this 21
PDF
annual-report-2024-2025 original latest.
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
.pdf is not working space design for the following data for the following dat...
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Introduction to machine learning and Linear Models
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Quality review (1)_presentation of this 21
annual-report-2024-2025 original latest.
climate analysis of Dhaka ,Banglades.pptx
Foundation of Data Science unit number two notes
Introduction-to-Cloud-ComputingFinal.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
IB Computer Science - Internal Assessment.pptx
Miokarditis (Inflamasi pada Otot Jantung)
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
.pdf is not working space design for the following data for the following dat...
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Supervised vs unsupervised machine learning algorithms
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Introduction to machine learning and Linear Models
Reliability_Chapter_ presentation 1221.5784
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb

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.