Professional Documents
Culture Documents
Lecture 4
Lecture 4
Logistic Regression
Recap
Linear Regression
Cost Function
Gradient Descent
Topics to be Covered
Logistic Regression
Sigmoid Function
Examples
Advantages of LR
Disadvantages of LR
What is Logistic
Regression?
• Logistic regression is also used to estimate the relationship
between a dependent variable and one or more independent
variables.
• It is used to make a prediction about a categorical variable
versus a continuous one.
• A categorical variable can be true or false, yes or no, 1 or 0,
et cetera.
Why Logistic
Regression?
• Logistic regression
analysis is valuable for
predicting the likelihood
of an event.
• It helps determine the
probabilities between any
two classes.
Why Logistic not Linear?
Steps of Logistic Regression
Step 3: Finally, the
Step 1: To calculate output value of the
the binary separation, sigmoid function gets
first, we determine converted into 0 or
In logistic regression, the best-fitted line by 1(discreet values)
we decide a following the Linear based on the
probability threshold. Regression steps. threshold value.
Does your cat prefer wet food, dry food or human food?
Ordinal Regression
A tumor is fatal