SlideShare a Scribd company logo
2
Most read
6
Most read
9
Most read
LOGISTIC
REGRESSION
By Dr Zahid Khan
Senior Lecturer King
Faisal University,KSA
1
What is logistic regression?
Logit for short, a specialized form of regression
used when the dependent variable is dichotomous and categorical while
the independent variable(s) could be any type.

• Dependent variable is binary (yes/no, Male/Female ) outcome.
• Independent variables are continuous interval
• Examples:
• Relation of weight and BP to 10 year risk of death

• Relation of CD4 count to 1 year risk of AIDS diagnosis
2
Logistic Regression
• Form of regression that allows the prediction of discrete
variables by a mix of continuous and discrete/nominal
predictors.
• Addresses the same questions that discriminant
function analysis and multiple regression do but with no
distributional assumptions on the predictors (the
predictors do not have to be normally distributed,
linearly related or have equal variance in each group)
• Does not assume a linear relationship between DV and
IV
3
Why we use
logistic ?
No assumptions about the distributions of the predictor variables.
Predictors do not have to be normally distributed
Does not have to be linearly related.
When equal variances , covariance doesn't exist across the groups.
Predictor variables is not parametric and there is no
homoscedasticity. E.g variance of dependent and independent
variables are not equal.
4
DECISION PROCESS

Stage 1:
Objectives Of logistic regression
 Identify the independent variable that impact in

the dependent variable

 Establishing classification system based on the
logistic model for determining the group
membership
Types of logistic regression
• BINARY LOGISTIC REGRESSION
It is used when the dependent variable is dichotomous.
MULTINOMIAL LOGISTIC REGRESSION
It is used when the dependent or outcomes variable has more than
two categories.
Linear Regression

Independent Variable

Dependent Variable

7
Logistic Regression

Independent Variable

Dependent Variable

8
Binary logistic regression expression

BINARY

Y = Dependent Variables
ß˚ = Constant
ß1 = Coefficient of variable X1
X1 = Independent Variables
E = Error Term
SAMPLE SIZE
Very small samples have so much sampling
errors.
Very large sample size decreases the chances of
errors.
Logistic requires larger sample size than multiple
regression.
Hosmer and Lamshow recommended sample
size greater than 400.
SAMPLE SIZE PER CATEGORY OF THE
INDEPENDENT VARIABLE
 The recommended sample size for each group is at

least 10 observations per estimated parameters.
Estimation of logistic regression model
assessing overall fit
Logistic relationship describe earlier in both estimating the logistic
model and establishing the relationship between the dependent
and independent variables.
Result is a unique transformation of dependent variables which
impacts not only the estimation process but also the resulting
coefficients of independent variables.
Transforming the dependent
variable
S-shaped
Range (0-1)
Description of the data
The data used to conduct logistic regression is from a survey of 30
homeowners conducted by an electricity company about an offer of roof
solar panels with a 50% subsidy from the state government as part of the
state’s environmental policy.
The variables are:
•IVs: household income measured in units of a thousand dollars
age of householder
monthly mortgage
size of family household
•DV: whether the householder would take or decline the offer.
offer was coded as 1 and decline the offer was coded
as 0.

Take the
WHAT IS THE RESEARCH QUESTION?
To determine whether household income and monthly
mortgage will predict taking or declining the solar panel
offer

Independent Variables: household income and monthly
mortgage
Dependent Variables: Take the offer or decline the offer
Two hypotheses to be tested
• There are two hypotheses to test in relation to the overall fit of the
model:
H0: The model is a good fitting model
H1: The model is not a good fitting model (i.e. the predictors have a
significant effect)
How to perform logistic regression in spss
1)
2)
3)
4)

Click Analyze
Select Regression
Select Binary Logistic
Select the dependent variable, the one which is a grouping
variable (0 and 1) and place it into the Dependent Box, in this
case, take or decline offer
5) Enter the predictors (IVs) that you want to test into the
Covariates Box. In this case, Household Income and Monthly
Mortgage
6) Leave Enter as the default method
Continuation of SPSS Steps
•7) If there is any categorical IV, click on Categorical button and enter it.
There is none in this case.
•8) In the Options button, select Classification Plots, Hosmer-Lemeshow
goodness-of-fit, Casewise Listing of residuals. Retain default entries for
probability of stepwise, classification cutoff, and maximum iterations
•9) Continue, then, OK
Any Questions !!!

•

Thank You

20

More Related Content

PPTX
Logistic regression
PPTX
Logistic regression
PPT
Logistic regression
PDF
Linear Regression vs Logistic Regression | Edureka
PDF
Logistic regression
PPTX
PPTX
Multinomial Logistic Regression Analysis
PDF
Logistic Regression Analysis
Logistic regression
Logistic regression
Logistic regression
Linear Regression vs Logistic Regression | Edureka
Logistic regression
Multinomial Logistic Regression Analysis
Logistic Regression Analysis

What's hot (20)

PPTX
Logistic regression with SPSS examples
PPTX
Logistic Regression.pptx
PPT
Multinomial logisticregression basicrelationships
PDF
Logistic regression
PDF
Multiple Regression and Logistic Regression
PDF
Multinomial Logistic Regression
PDF
7. logistics regression using spss
PPTX
Logistic regression
PDF
Simple linear regression
PPTX
Logistic Regression
PPT
Linear regression
PPTX
Logistic regression with SPSS
PPT
Logistic regression (blyth 2006) (simplified)
PPTX
Basics of Regression analysis
PPTX
Linear regression
PDF
Logistic regression
PPTX
Poisson regression models for count data
ODP
Multiple linear regression
PPTX
Correlation & Regression Analysis using SPSS
PDF
Ordinal logistic regression
Logistic regression with SPSS examples
Logistic Regression.pptx
Multinomial logisticregression basicrelationships
Logistic regression
Multiple Regression and Logistic Regression
Multinomial Logistic Regression
7. logistics regression using spss
Logistic regression
Simple linear regression
Logistic Regression
Linear regression
Logistic regression with SPSS
Logistic regression (blyth 2006) (simplified)
Basics of Regression analysis
Linear regression
Logistic regression
Poisson regression models for count data
Multiple linear regression
Correlation & Regression Analysis using SPSS
Ordinal logistic regression
Ad

Similar to Logistic regression (20)

PDF
Log reg pdf.pdf
PPTX
logisticregression-120102011227-phpapp01.pptx
PPTX
Module5.slp
PPTX
Module5.slp
PPTX
Module5.slp
PPTX
Correlation & Regression.pptx
PDF
Regression analysis made easy
PPTX
Regression analysis - Estimation of relationships between the variables
PPTX
STATISTICAL REGRESSION MODELS
PDF
Introduction to Limited Dependent variable
PDF
Logistic regression sage
PPT
A presentation for Multiple linear regression.ppt
PPTX
Predictive analytics and Type of Predictive Analytics
PPTX
Logit and Probit and Tobit model: Basic Introduction
PPTX
PPT_logistic regression.pptx
PPTX
A Topic on REGRESSION Analysis conducted pptx
PPTX
SSP PRESENTATION COMPLETE ( ADVANCE ) .pptx
PPTX
Regression of research methodlogyyy.pptx
PDF
Regression
PPTX
Econometrics chapter 8
Log reg pdf.pdf
logisticregression-120102011227-phpapp01.pptx
Module5.slp
Module5.slp
Module5.slp
Correlation & Regression.pptx
Regression analysis made easy
Regression analysis - Estimation of relationships between the variables
STATISTICAL REGRESSION MODELS
Introduction to Limited Dependent variable
Logistic regression sage
A presentation for Multiple linear regression.ppt
Predictive analytics and Type of Predictive Analytics
Logit and Probit and Tobit model: Basic Introduction
PPT_logistic regression.pptx
A Topic on REGRESSION Analysis conducted pptx
SSP PRESENTATION COMPLETE ( ADVANCE ) .pptx
Regression of research methodlogyyy.pptx
Regression
Econometrics chapter 8
Ad

More from DrZahid Khan (20)

PDF
Snakebite spiderbiteguidelinessa sa-health08(1)
PDF
Lastminutemrcp1revision 140622171105-phpapp02
PDF
94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...
PDF
3 elzohry mrcp questions - pass medicine 2013
PDF
Pass medicine MRCP 2013
PDF
3 clinical skills
PDF
Davis s pocket clinical drug reference
PPTX
Descrptive statistics
PPTX
Measures of dispersion
PPT
Burden of disease and determinants of health
PPTX
05 confidence interval & probability statements
PPTX
Population & sample lecture 04
PPTX
Data Display and Summary
PPTX
Hypothesis testing and p values 06
DOCX
Amc material
PDF
Manikins examination for Medical students
PPTX
Occupational Lung Diseases
PPTX
Hypothesis testing and p values 06
PPTX
Introduction to occupational diseases
PPTX
Occupational heat stress and occupational health services
Snakebite spiderbiteguidelinessa sa-health08(1)
Lastminutemrcp1revision 140622171105-phpapp02
94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...
3 elzohry mrcp questions - pass medicine 2013
Pass medicine MRCP 2013
3 clinical skills
Davis s pocket clinical drug reference
Descrptive statistics
Measures of dispersion
Burden of disease and determinants of health
05 confidence interval & probability statements
Population & sample lecture 04
Data Display and Summary
Hypothesis testing and p values 06
Amc material
Manikins examination for Medical students
Occupational Lung Diseases
Hypothesis testing and p values 06
Introduction to occupational diseases
Occupational heat stress and occupational health services

Recently uploaded (20)

PPT
genitourinary-cancers_1.ppt Nursing care of clients with GU cancer
PPTX
Neurotransmitter, Types of neurotransmitters,Neurotransmitter function, Neur...
PDF
NEET PG 2025 | 200 High-Yield Recall Topics Across All Subjects
PDF
Handout_ NURS 220 Topic 10-Abnormal Pregnancy.pdf
PDF
CT Anatomy for Radiotherapy.pdf eryuioooop
PPTX
ca esophagus molecula biology detailaed molecular biology of tumors of esophagus
PPTX
Fundamentals of human energy transfer .pptx
PPTX
DENTAL CARIES FOR DENTISTRY STUDENT.pptx
PDF
Human Health And Disease hggyutgghg .pdf
PPTX
Slider: TOC sampling methods for cleaning validation
PPTX
Electromyography (EMG) in Physiotherapy: Principles, Procedure & Clinical App...
PPTX
LUNG ABSCESS - respiratory medicine - ppt
PPTX
15.MENINGITIS AND ENCEPHALITIS-elias.pptx
PPTX
Note on Abortion.pptx for the student note
PPTX
Pathophysiology And Clinical Features Of Peripheral Nervous System .pptx
PDF
Neuro ED Bet Sexologist in Patna Bihar India Dr. Sunil Dubey
PPT
ASRH Presentation for students and teachers 2770633.ppt
PDF
Medical Evidence in the Criminal Justice Delivery System in.pdf
PPTX
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
PPT
Obstructive sleep apnea in orthodontics treatment
genitourinary-cancers_1.ppt Nursing care of clients with GU cancer
Neurotransmitter, Types of neurotransmitters,Neurotransmitter function, Neur...
NEET PG 2025 | 200 High-Yield Recall Topics Across All Subjects
Handout_ NURS 220 Topic 10-Abnormal Pregnancy.pdf
CT Anatomy for Radiotherapy.pdf eryuioooop
ca esophagus molecula biology detailaed molecular biology of tumors of esophagus
Fundamentals of human energy transfer .pptx
DENTAL CARIES FOR DENTISTRY STUDENT.pptx
Human Health And Disease hggyutgghg .pdf
Slider: TOC sampling methods for cleaning validation
Electromyography (EMG) in Physiotherapy: Principles, Procedure & Clinical App...
LUNG ABSCESS - respiratory medicine - ppt
15.MENINGITIS AND ENCEPHALITIS-elias.pptx
Note on Abortion.pptx for the student note
Pathophysiology And Clinical Features Of Peripheral Nervous System .pptx
Neuro ED Bet Sexologist in Patna Bihar India Dr. Sunil Dubey
ASRH Presentation for students and teachers 2770633.ppt
Medical Evidence in the Criminal Justice Delivery System in.pdf
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
Obstructive sleep apnea in orthodontics treatment

Logistic regression

  • 1. LOGISTIC REGRESSION By Dr Zahid Khan Senior Lecturer King Faisal University,KSA 1
  • 2. What is logistic regression? Logit for short, a specialized form of regression used when the dependent variable is dichotomous and categorical while the independent variable(s) could be any type. • Dependent variable is binary (yes/no, Male/Female ) outcome. • Independent variables are continuous interval • Examples: • Relation of weight and BP to 10 year risk of death • Relation of CD4 count to 1 year risk of AIDS diagnosis 2
  • 3. Logistic Regression • Form of regression that allows the prediction of discrete variables by a mix of continuous and discrete/nominal predictors. • Addresses the same questions that discriminant function analysis and multiple regression do but with no distributional assumptions on the predictors (the predictors do not have to be normally distributed, linearly related or have equal variance in each group) • Does not assume a linear relationship between DV and IV 3
  • 4. Why we use logistic ? No assumptions about the distributions of the predictor variables. Predictors do not have to be normally distributed Does not have to be linearly related. When equal variances , covariance doesn't exist across the groups. Predictor variables is not parametric and there is no homoscedasticity. E.g variance of dependent and independent variables are not equal. 4
  • 5. DECISION PROCESS Stage 1: Objectives Of logistic regression  Identify the independent variable that impact in the dependent variable  Establishing classification system based on the logistic model for determining the group membership
  • 6. Types of logistic regression • BINARY LOGISTIC REGRESSION It is used when the dependent variable is dichotomous. MULTINOMIAL LOGISTIC REGRESSION It is used when the dependent or outcomes variable has more than two categories.
  • 9. Binary logistic regression expression BINARY Y = Dependent Variables ß˚ = Constant ß1 = Coefficient of variable X1 X1 = Independent Variables E = Error Term
  • 10. SAMPLE SIZE Very small samples have so much sampling errors. Very large sample size decreases the chances of errors. Logistic requires larger sample size than multiple regression. Hosmer and Lamshow recommended sample size greater than 400.
  • 11. SAMPLE SIZE PER CATEGORY OF THE INDEPENDENT VARIABLE  The recommended sample size for each group is at least 10 observations per estimated parameters.
  • 12. Estimation of logistic regression model assessing overall fit Logistic relationship describe earlier in both estimating the logistic model and establishing the relationship between the dependent and independent variables. Result is a unique transformation of dependent variables which impacts not only the estimation process but also the resulting coefficients of independent variables.
  • 14. Description of the data The data used to conduct logistic regression is from a survey of 30 homeowners conducted by an electricity company about an offer of roof solar panels with a 50% subsidy from the state government as part of the state’s environmental policy. The variables are: •IVs: household income measured in units of a thousand dollars age of householder monthly mortgage size of family household •DV: whether the householder would take or decline the offer. offer was coded as 1 and decline the offer was coded as 0. Take the
  • 15. WHAT IS THE RESEARCH QUESTION? To determine whether household income and monthly mortgage will predict taking or declining the solar panel offer Independent Variables: household income and monthly mortgage Dependent Variables: Take the offer or decline the offer
  • 16. Two hypotheses to be tested • There are two hypotheses to test in relation to the overall fit of the model: H0: The model is a good fitting model H1: The model is not a good fitting model (i.e. the predictors have a significant effect)
  • 17. How to perform logistic regression in spss 1) 2) 3) 4) Click Analyze Select Regression Select Binary Logistic Select the dependent variable, the one which is a grouping variable (0 and 1) and place it into the Dependent Box, in this case, take or decline offer 5) Enter the predictors (IVs) that you want to test into the Covariates Box. In this case, Household Income and Monthly Mortgage 6) Leave Enter as the default method
  • 18. Continuation of SPSS Steps •7) If there is any categorical IV, click on Categorical button and enter it. There is none in this case. •8) In the Options button, select Classification Plots, Hosmer-Lemeshow goodness-of-fit, Casewise Listing of residuals. Retain default entries for probability of stepwise, classification cutoff, and maximum iterations •9) Continue, then, OK