Logistic Regression Report
Logistic Regression Report
Example.
Animal Not Animal
Logistic Regression
Features of An
Animal
Independent Variable
Dependent Variable
Logistic Regression
Age Diseased
Gender
Smoking Status Not Diseased
Independent Dependent
Variables Variables
3 Types of Logistic Regression
Examples include:
o Whether to lend or not to lend a bank customer
Dependent Variables: Yes or No
o Assessing Cancer Risk
Dependent Variables: High or Low
3 Types of Logistic Regression
Examples include:
o Predicting whether a student will go to college, trade school or into the workforce.
o Does your cat prefer wet food, dry food or human food?
3 Types of Logistic Regression
Examples include:
Business Example
For an online retailer, you need to predict which product a particular a customer
is most likely to buy.
Political Example
Predicting whether a political candidate will win or lose an election.
Banking Example
Predicting the chances that a loan applicant will default on a loan or not.
Logistic Regression Theory and Concepts
So what are the theory and concept of Logistic
Regression
Logistic regression is a supervised machine learning algorithm
used for binary classification problems, where the goal is to predict
whether an input belongs to one of two possible classes. The
algorithm learns the relationship between input variables and their
corresponding binary output by finding the optimal set of
parameters or weights that minimize the error between predicted
and actual values.
In logistic regression, the input features are combined linearly
using weights, and the output is transformed using a sigmoid
function to give a probability score between 0 and 1. This
probability score represents the likelihood of the input belonging to
one of the two classes. If the probability score is above a certain
threshold (usually 0.5), the input is classified as belonging to the
positive class, otherwise, it is classified as belonging to the
negative class.
The mathematical formula for logistic
regression is:
p(y=1|x;w) = 1 / (1 + exp(-wTx))
where p(y=1|x;w) is the probability of the input x belonging to the
positive class, w is the weight vector, x is the input feature vector,
and exp is the exponential function.