Logistic Regression
Logistic Regression
COURSE INSTRUCTOR:
Dr.R.UMamaheswari
Assoc.prof & HoD ECM
Regression:
Regression analysis is a statistical method used to model
the relationship between a dependent (target) and
independent (predictor) variables with one or more
independent variables.
Types of Regression:
Logistic Regression:
Logistic regression is the appropriate regression analysis to conduct
when the dependent variable is dichotomous (binary).
The output of the Logistic Regression problem can be only between the
0 and 1.
How does the probability of getting lung cancer (yes vs. no) change for
every additional pound a person is overweight and for every pack of
cigarettes smoked per day?
Do body weight, calorie intake, fat intake, and age have an influence on the
probability of having a heart attack (yes vs. no)?
Department of Electronics and Computer Engineering Slide No. 7
Topic: Logistic Regression Course: Machine Learning
Example:
To predict whether an email is spam (1) or (0)
Whether the tumor is malignant (1) or not (0)
Model
Output = 0 or 1
Hypothesis => Z = WX + B
hΘ(x) = sigmoid (Z)
Sigmoid Function
Example 2:
The response variable in the model will be “acceptance” and it has two
potential outcomes:
A student gets accepted.
A student does not get accepted.
The results of the model will tell researchers exactly how changes in GPA,
ACT score, and number of AP classes taken affect the probability that a
given individual gets accepted into the university.
Department of Electronics and Computer Engineering Slide No. 12
Topic: Logistic Regression Course: Machine Learning
Linear Regression is used for solving Logistic regression is used for solving
Regression problem. Classification problems.
In Linear regression, we predict the In logistic Regression, we predict the
value of continuous variables. values of categorical variables.
In linear regression, we find the best fit In Logistic Regression, we find the S-
line, by which we can easily predict the curve by which we can classify the
output. samples.
Thank You