SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
LOGISTIC
REGRESSION
Senior Lecturer King
Faisal University,KSA
By Dr Zahid Khan
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
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
DECISION PROCESS
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
Y = Dependent Variables
ß˚ = Constant
ß1 = Coefficient of variable X1
X1 = Independent Variables
E = Error Term
BINARY
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. Take the
offer was coded as 1 and decline the offer was coded as 0.
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) Click Analyze
2) Select Regression
3) Select Binary Logistic
4) 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

Contenu connexe

Similaire à Log reg pdf.pdf

A researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docxA researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docx
evonnehoggarth79783
 
Multinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfMultinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdf
AlemAyahu
 
Research method ch09 statistical methods 3 estimation np
Research method ch09 statistical methods 3 estimation npResearch method ch09 statistical methods 3 estimation np
Research method ch09 statistical methods 3 estimation np
naranbatn
 

Similaire à Log reg pdf.pdf (20)

Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easy
 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variable
 
STATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSSTATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELS
 
Logistic regression sage
Logistic regression sageLogistic regression sage
Logistic regression sage
 
A presentation for Multiple linear regression.ppt
A presentation for Multiple linear regression.pptA presentation for Multiple linear regression.ppt
A presentation for Multiple linear regression.ppt
 
A Topic on REGRESSION Analysis conducted pptx
A Topic on REGRESSION Analysis conducted pptxA Topic on REGRESSION Analysis conducted pptx
A Topic on REGRESSION Analysis conducted pptx
 
Regression
RegressionRegression
Regression
 
PPT_logistic regression.pptx
PPT_logistic regression.pptxPPT_logistic regression.pptx
PPT_logistic regression.pptx
 
Logit and Probit and Tobit model: Basic Introduction
Logit and Probit  and Tobit model: Basic IntroductionLogit and Probit  and Tobit model: Basic Introduction
Logit and Probit and Tobit model: Basic Introduction
 
Multicollinearity PPT
Multicollinearity PPTMulticollinearity PPT
Multicollinearity PPT
 
Dependence Techniques
Dependence Techniques Dependence Techniques
Dependence Techniques
 
Lecture_16_Hope_to_skills.pptx
Lecture_16_Hope_to_skills.pptxLecture_16_Hope_to_skills.pptx
Lecture_16_Hope_to_skills.pptx
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Bus 173_6.pptx
Bus 173_6.pptxBus 173_6.pptx
Bus 173_6.pptx
 
Econometrics chapter 8
Econometrics chapter 8Econometrics chapter 8
Econometrics chapter 8
 
A researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docxA researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docx
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
 
Data-Analysis.pptx
Data-Analysis.pptxData-Analysis.pptx
Data-Analysis.pptx
 
Multinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfMultinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdf
 
Research method ch09 statistical methods 3 estimation np
Research method ch09 statistical methods 3 estimation npResearch method ch09 statistical methods 3 estimation np
Research method ch09 statistical methods 3 estimation np
 

Dernier

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 

Dernier (20)

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 

Log reg pdf.pdf

  • 1. LOGISTIC REGRESSION Senior Lecturer King Faisal University,KSA By Dr Zahid Khan 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. 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 DECISION PROCESS
  • 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 Y = Dependent Variables ß˚ = Constant ß1 = Coefficient of variable X1 X1 = Independent Variables E = Error Term BINARY
  • 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. Take the offer was coded as 1 and decline the offer was coded as 0.
  • 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) Click Analyze 2) Select Regression 3) Select Binary Logistic 4) 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
  • 19. Any Questions !!! • Thank You 20