Logistic Regression - AI-ML Developer Course
Logistic Regression - AI-ML Developer Course
Logistic Regression
Classification
2
Logistic regression
• It is used for predicting the categorical dependent variable using a
given set of independent variables.
• Linear Regression is used for solving Regression problems,
whereas Logistic regression is used for solving the classification
problems.
• In Logistic regression, instead of fitting a regression line, we fit an
"S" shaped logistic function, which predicts two values (0 or 1), also
it gives the probabilistic values which lie between 0 and 1.
3
Types of logistic regression
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".
4
Heart disease – Logistic Regression
5
Heart disease – Logistic Regression
6
Heart disease – Logistic Regression
7
Heart disease – Logistic Regression
8
Heart disease – Logistic Regression
9
Credit risk– Logistic Regression
10
Credit risk– Logistic Regression
11
Credit risk– Logistic Regression
12
Credit risk– Logistic Regression
13
Credit risk– Logistic Regression
14