SlideShare a Scribd company logo
L O G I S T I C
R E G R E S S I O N
( B I N A R Y
C L A S S I F I C A T I O )
N E E D O F L O G I S T I C
R E G R E S S I O N
• In linear regression, dependent variable is continuous.
• If we add an outlier in our dataset, the best fit line in linear
regression shifts to fit that point.
• The predictive values may be out of range (may exceed 1 or go
below 0).
L O G I S T I C R E G R E S S I O N
• Supervised Machine Learning technique.
• Used for solving the binary classification problems.
• Predicts the output of a categorical dependent variable.
• Outcome must be
categorical or discrete
value. It can be either
Yes or No.
L O G I S T I C F U N C T I O N
• Also called Sigmoid Function.
• Maps any real value into another value within a
range of 0 and 1.
• It forms a curve like the ‘S’ shape. This S-shaped
curve is called the Sigmoid or Logistic function.
• Use the concept of
threshold value,
defines the probability
of either 0 or 1.
• Equation of sigmoid function is:
where,
y= dependent variable
e= Euler’s constant (value: 2.178)
x= independent variable
D E R I V AT I O N O F
S I G M O I D F U N C T I O N
• Equation of best-fit line in linear regression is:
• Take ‘odds’ of P:
• Take the ‘log of odds’:
• Multiply by exponent on both sides:
Logistic RegressionwithMathematicalExamplesonit.pdf
Logistic RegressionwithMathematicalExamplesonit.pdf
E X A M P L E
• Predict whether or not
the patient has diabetes
on the base of blood
glucose level.
Logistic RegressionwithMathematicalExamplesonit.pdf
A P P L I C A B L E I N W H I C H
F I E L D S :
• Spam or not spam emails.
• Fraud detection.
• Disease diagnosis.
D R A W B A C K S
• Logistic regression fails to predict a continuous outcome.
• Not works well for cases where the dataset is not linearly
separable.
• May not be accurate when the dataset is too small.
T H A N K
Y O U !

More Related Content

PDF
Module -6.pdf Machine Learning Types and examples
PPTX
lec+5+_part+1 cloud .pptx
PPTX
Logistic Regression in machine learning ppt
PPTX
Logistic regression is a data analysis technique that uses mathematics to fin...
PDF
3ml.pdf
PPTX
Logistic regression is a data analysis technique that uses mathematics to fin...
PPTX
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
PDF
15-Data Analytics in IoT - Supervised Learning-04-09-2024.pdf
Module -6.pdf Machine Learning Types and examples
lec+5+_part+1 cloud .pptx
Logistic Regression in machine learning ppt
Logistic regression is a data analysis technique that uses mathematics to fin...
3ml.pdf
Logistic regression is a data analysis technique that uses mathematics to fin...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
15-Data Analytics in IoT - Supervised Learning-04-09-2024.pdf

Similar to Logistic RegressionwithMathematicalExamplesonit.pdf (20)

PPTX
Logistic Regression ml machine learning.pptx
PPTX
Supervised Machine Learning Algorithms
PDF
Lecture 6 - Logistic Regression, a lecture in subject module Statistical & Ma...
PDF
Regresion logistica-modelo de clasificacion
PDF
Logistic Regression Classifier - Conceptual Guide
PPTX
Logistic regression
DOCX
Logistic Regression in machine learning.docx
PDF
Machine Learning.pdf
PPTX
Logistical Regression.pptx
PDF
7_logistic-regression presentation sur la regression logistique.pdf
PPTX
Logistic-regression-Supervised-MachineLearning.pptx
PPTX
Logistic Regression power point presentation.pptx
PPT
Logistic regression.ppt
PPTX
Supervised learning - Linear and Logistic Regression( AI, ML)
PPTX
logistic regression in Data science Presentation
PPTX
Logistic Regression.pptx
PPTX
Classification Algortyhm of Machine Learning
PPTX
Logistic Regression.pptx
PDF
Logistic regression in Machine Learning
PPTX
Group 20_Logistic Regression devara.pptx
Logistic Regression ml machine learning.pptx
Supervised Machine Learning Algorithms
Lecture 6 - Logistic Regression, a lecture in subject module Statistical & Ma...
Regresion logistica-modelo de clasificacion
Logistic Regression Classifier - Conceptual Guide
Logistic regression
Logistic Regression in machine learning.docx
Machine Learning.pdf
Logistical Regression.pptx
7_logistic-regression presentation sur la regression logistique.pdf
Logistic-regression-Supervised-MachineLearning.pptx
Logistic Regression power point presentation.pptx
Logistic regression.ppt
Supervised learning - Linear and Logistic Regression( AI, ML)
logistic regression in Data science Presentation
Logistic Regression.pptx
Classification Algortyhm of Machine Learning
Logistic Regression.pptx
Logistic regression in Machine Learning
Group 20_Logistic Regression devara.pptx
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Understanding_Digital_Forensics_Presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Digital-Transformation-Roadmap-for-Companies.pptx
Ad

Logistic RegressionwithMathematicalExamplesonit.pdf

  • 1. L O G I S T I C R E G R E S S I O N ( B I N A R Y C L A S S I F I C A T I O )
  • 2. N E E D O F L O G I S T I C R E G R E S S I O N • In linear regression, dependent variable is continuous. • If we add an outlier in our dataset, the best fit line in linear regression shifts to fit that point.
  • 3. • The predictive values may be out of range (may exceed 1 or go below 0).
  • 4. L O G I S T I C R E G R E S S I O N • Supervised Machine Learning technique. • Used for solving the binary classification problems. • Predicts the output of a categorical dependent variable. • Outcome must be categorical or discrete value. It can be either Yes or No.
  • 5. L O G I S T I C F U N C T I O N • Also called Sigmoid Function. • Maps any real value into another value within a range of 0 and 1. • It forms a curve like the ‘S’ shape. This S-shaped curve is called the Sigmoid or Logistic function. • Use the concept of threshold value, defines the probability of either 0 or 1.
  • 6. • Equation of sigmoid function is: where, y= dependent variable e= Euler’s constant (value: 2.178) x= independent variable
  • 7. D E R I V AT I O N O F S I G M O I D F U N C T I O N • Equation of best-fit line in linear regression is: • Take ‘odds’ of P:
  • 8. • Take the ‘log of odds’: • Multiply by exponent on both sides:
  • 11. E X A M P L E • Predict whether or not the patient has diabetes on the base of blood glucose level.
  • 13. A P P L I C A B L E I N W H I C H F I E L D S : • Spam or not spam emails. • Fraud detection. • Disease diagnosis.
  • 14. D R A W B A C K S • Logistic regression fails to predict a continuous outcome. • Not works well for cases where the dataset is not linearly separable. • May not be accurate when the dataset is too small.
  • 15. T H A N K Y O U !