Logistic Regression
Dr. Dinesh Kumar Vishwakarma
Professor,
Department of Information Technology,
Delhi Technological University, Delhi
Logistic Regression: Intro
Logistic Regression
Linear vs Logistic
Example
Applications
Introduction Logistic Regression
Logistic Curve
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
x
Probability
Sigmoid cure
Logistic Function
Logistic Function
X
P(“Success”|X)
Logit Transformation
This is called the �Logit Transformation
Logit Transformation
0
1
LP Model
Logit Model
Comparing LP and Logit Models
Assumption
pi
(pi )
Logistic regression model with a single continuous predictor
The logistic Regression Model
The ratio:
is called the odds ratio
This quantity will also increase with the value of x, ranging from zero to infinity.
The quantity:
is called the log odds ratio
Example: odds ratio, log odds ratio
Suppose a die is rolled:
Success = “roll a six”, p = 1/6
The odds ratio
The log odds ratio
The logistic Regression Model
i. e. :
In terms of the odds ratio
Assumes the log odds ratio is linearly related to x.
The logistic Regression Model
or
Solving for p in terms x.
Interpretation of the parameter β0
p
x
Interpretation of the parameter β1
p
x
when
Also
when
is the rate of increase in p with respect to x when p = 0.50
Interpretation of the parameter β1…
Interpretation of the parameter β1
p
x
determines slope when p is 0.50
Binary Classification
Types of Logistic Regression
Example
X | Y |
1 | 0 |
2 | 0 |
3 | 0 |
4 | 1 |
5 | 1 |
Solution
Advantages
Limitations