Logistic RegressionwithMathematicalExamplesonit.pdf

ansarinazish958 16 views 15 slides Jul 14, 2024
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

This document i about the Logistic Regression. it includes the needs for Logistic Regression , Logistic Function, Sigmoid Function, Virtual Representions, Advantages, and disadvantages, Applications Of Logistic Regression, mathemtical examples for better understanding .


Slide Content

LOGISTIC
REGRESSION
(BINARY
CLASSIFICATIO )

NEED OF LOGISTIC
REGRESSION
•In linear regression, dependent variable is continuous.
•If we add an outlier in our dataset, the best fit line in linear
regression shiftsto fit that point.

•The predictive values may be outof range (may exceed 1 or go
below 0).

LOGISTIC REGRESSION
•SupervisedMachine Learning technique.
•Used for solving the binary classification problems.
•Predicts the output of a categoricaldependent variable.
•Outcome must be
categorical or discrete
value. It can be either
Yesor No.

LOGISTIC FUNCTION
•Also called SigmoidFunction.
•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 0or 1.
(Default threshold value

•Equationof sigmoid function is:
where,
y= dependent variable
e= Euler’s constant (value: 2.178)
x= independent variable

DERIVATION OF
SIGMOID FUNCTION
•Equationof best-fit line in linear regression is:
•Take ‘odds’ of P:

•Take the ‘log of odds’:
•Multiply by exponenton both sides:

EXAMPLE
•Predict whether or not
the patient has diabetes
on the base of blood
glucose level.

APPLICABLE IN WHICH
FIELDS:
•Spam or not spam emails.
•Fraud detection.
•Disease diagnosis.

DRAWBACKS
•Logistic regression failsto predict a continuousoutcome.
•Notworks well for cases where the dataset is not linearly
separable.
•May not be accurate when the dataset is too small.

THANK
YOU!
Tags