SlideShare a Scribd company logo
1 of 30
LOGISTIC
REGRESSION
By Dr Zahid Khan
Senior Lecturer King
Faisal University,KSA
1
Aims
ā€¢ When and Why do we Use Logistic Regression?
ā€¢ Binary
ā€¢ Multinomial

ā€¢ Theory Behind Logistic Regression
ā€¢ Assessing the Model
ā€¢ Assessing predictors
ā€¢ Things that can go Wrong

ā€¢ Interpreting Logistic Regression
When And Why
ā€¢ To predict an outcome variable that is categorical
from one or more categorical or continuous
predictor variables.
ā€¢ Used because having a categorical outcome
variable violates the assumption of linearity in
normal regression.

ā€¢ Does not assume a linear relationship
between DV and IV
When And Why
ļ±No assumptions about the distributions of the predictor
variables.
ļ±Predictors do not have to be normally distributed
ļ±Logistic regression does not make any assumptions of normality, linearity,
and homogeneity of variance for the independent variables.
ļ±Because it does not impose these requirements, it is preferred to
discriminant analysis when the data does not satisfy these assumptions.
4
Logistic regression
ā€¢ Logistic regression is used to analyze relationships between a
dichotomous dependent variable and continue or dichotomous
independent variables. (SPSS now supports Multinomial Logistic
Regression that can be used with more than two groups, but our
focus here is on binary logistic regression for two groups.)
ā€¢ Logistic regression combines the independent variables to estimate
the probability that a particular event will occur, i.e. a subject will
be a member of one of the groups defined by the dichotomous
dependent variable. In SPSS, the model is always constructed to
predict the group with higher numeric code. If responses are
coded 1 for Yes and 2 for No, SPSS will predict membership in the
No category. If responses are coded 1 for No and 2 for Yes, SPSS will
predict membership in the Yes category. We will refer to the
predicted event for a particular analysis as the modeled event.
With One Predictor
P(Y ) ļ€½

1

1ļ€« e ļ€­( b0 ļ€« b1X1ļ€« ļ„i )

ā€¢ Outcome
ā€¢ We predict the probability of the outcome
occurring

ā€¢ b0 and b0

ā€¢ Can be thought of in much the same way as
multiple regression
ā€¢ Note the normal regression equation forms part
of the logistic regression equation
With Several Predictor
P(Y ) ļ€½

1

1ļ€« e ļ€­( b0 ļ€« b1X1ļ€« b2 X 2 ļ€«...ļ€« bn X n ļ€« ļ„i )

ā€¢ Outcome
ā€¢ We still predict the probability of the outcome
occurring

ā€¢ Differences
ā€¢ Note the multiple regression equation forms
part of the logistic regression equation
ā€¢ This part of the equation expands to
accommodate additional predictors
The Logistic Regression
Logit p = Ī± + Ī²1X1 +Ī²2X2 + .. + Ī²pXp
Ī± represents the overall disease risk
Ī²1 represents the fraction by which the disease risk is altered by a unit
change in X1
Ī²2 is the fraction by which the disease risk is altered by a unit change
in X2
ā€¦ā€¦. and so on.
What changes is the log odds. The odds themselves are changed by eĪ²
If Ī² = 1.6 the odds are e1.6 = 4.95
Measuring the Probability of Outcome
The probability of the outcome is measured by the odds of occurrence
of an event.
If P is the probability of an event, then (1-P) is the probability of it not
occurring.
Odds of success = P / 1-P

P
1ļ€­ P
Methods of Regression
ā€¢ Forced Entry: All variables entered simultaneously.
ā€¢ Hierarchical: Variables entered in blocks.
ā€¢ Blocks should be based on past research, or theory being tested. Good
Method.

ā€¢ Stepwise: Variables entered on the basis of statistical criteria (i.e.
relative contribution to predicting outcome).
ā€¢ Should be used only for exploratory analysis.
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

13
Logistic Regression

Independent Variable

Dependent Variable

14
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.
Maximum Likelihood Estimation
(MLE)
ļ‚§ MLE is a statistical method for estimating the
coefficients of a model.
ļ‚§ The likelihood function (L) measures the
probability of observing the particular set of
dependent variable values (p1, p2, ..., pn) that
occur in the sample:
L = Prob (p1* p2* * * pn)
ļ‚§ The higher the L, the higher the probability of
observing the ps in the sample.
Transforming the dependent
variable

ļ±S-shaped
ļ±Range (0-1)
Comparing LP and Logit Models
LP Model
1
Logit Model

0
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)
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
Logistic Regression-Demo
ā€¢ MS-Excel: No default functions
ā€¢ SPSS: Analyze > Regression > Binary Logistic > Select
Dependent variable: > Select independent variable
(covariate)
Writing Up Results
ļ‚§ Present descriptive statistics in a table
ļ‚§ Make it clear that the dependent variable is discrete (0, 1) and not
continuous and that you will use logistic regression.
ļ‚§ Logistic regression is a standard statistical procedure so you don't
(necessarily) need to write out the formula for it. You also (usually)
don't need to justify that you are using Logit instead of the LP model
or Probit (similar to Logit but based on the normal distribution [the
tails are less fat]).
Any Questions !!!

ā€¢

Thank You

30

More Related Content

What's hot

Logistic regression
Logistic regressionLogistic regression
Logistic regressionYashwantGahlot1
Ā 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examplesGaurav Kamboj
Ā 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spssDr Nisha Arora
Ā 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionKaushik Rajan
Ā 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
Ā 
Linear regression
Linear regressionLinear regression
Linear regressionTech_MX
Ā 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
Ā 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisHARISH Kumar H R
Ā 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in RAlichy Sowmya
Ā 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regressiondessybudiyanti
Ā 
multiple regression
multiple regressionmultiple regression
multiple regressionPriya Sharma
Ā 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
Ā 
Lecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysisLecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysisDr Rajeev Kumar
Ā 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Rizwan S A
Ā 

What's hot (20)

Logistic regression
Logistic regressionLogistic regression
Logistic regression
Ā 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
Ā 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
Ā 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
Ā 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
Ā 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
Ā 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
Ā 
Linear regression
Linear regressionLinear regression
Linear regression
Ā 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
Ā 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
Ā 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
Ā 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
Ā 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regression
Ā 
multiple regression
multiple regressionmultiple regression
multiple regression
Ā 
Logistic regression analysis
Logistic regression analysisLogistic regression analysis
Logistic regression analysis
Ā 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Ā 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Ā 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
Ā 
Lecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysisLecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysis
Ā 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)
Ā 

Similar to Logistic regression

Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptxsherinjoyson
Ā 
Correlation & Regression.pptx
Correlation & Regression.pptxCorrelation & Regression.pptx
Correlation & Regression.pptxMuhammadUsman653449
Ā 
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.pptvigia41
Ā 
Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6Daria Bogdanova
Ā 
PPT_logistic regression.pptx
PPT_logistic regression.pptxPPT_logistic regression.pptx
PPT_logistic regression.pptxCoePHNNITR
Ā 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airatutor_te
Ā 
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 IntroductionRabeesh Verma
Ā 
Factor analysis (fa)
Factor analysis (fa)Factor analysis (fa)
Factor analysis (fa)Rajdeep Raut
Ā 
logisticregression-120102011227-phpapp01.pptx
logisticregression-120102011227-phpapp01.pptxlogisticregression-120102011227-phpapp01.pptx
logisticregression-120102011227-phpapp01.pptxShrutiPanda12
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slpGimylin
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slpGimylin
Ā 
2.2 Logit and Probit.pptx
2.2 Logit and Probit.pptx2.2 Logit and Probit.pptx
2.2 Logit and Probit.pptxRahul Borate
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slpGimylin
Ā 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variableAshok Dsouza
Ā 
STATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSSTATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSAneesa K Ayoob
Ā 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easyWeam Banjar
Ā 

Similar to Logistic regression (20)

Log reg pdf.pdf
Log reg pdf.pdfLog reg pdf.pdf
Log reg pdf.pdf
Ā 
Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptx
Ā 
Correlation & Regression.pptx
Correlation & Regression.pptxCorrelation & Regression.pptx
Correlation & Regression.pptx
Ā 
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
Ā 
Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6
Ā 
PPT_logistic regression.pptx
PPT_logistic regression.pptxPPT_logistic regression.pptx
PPT_logistic regression.pptx
Ā 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.air
Ā 
Logistic regression sage
Logistic regression sageLogistic regression sage
Logistic regression sage
Ā 
Lecture 4
Lecture 4Lecture 4
Lecture 4
Ā 
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
Ā 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
Ā 
Factor analysis (fa)
Factor analysis (fa)Factor analysis (fa)
Factor analysis (fa)
Ā 
logisticregression-120102011227-phpapp01.pptx
logisticregression-120102011227-phpapp01.pptxlogisticregression-120102011227-phpapp01.pptx
logisticregression-120102011227-phpapp01.pptx
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slp
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slp
Ā 
2.2 Logit and Probit.pptx
2.2 Logit and Probit.pptx2.2 Logit and Probit.pptx
2.2 Logit and Probit.pptx
Ā 
Module5.slp
Module5.slpModule5.slp
Module5.slp
Ā 
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
Ā 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easy
Ā 

More from DrZahid Khan

Snakebite spiderbiteguidelinessa sa-health08(1)
Snakebite spiderbiteguidelinessa sa-health08(1)Snakebite spiderbiteguidelinessa sa-health08(1)
Snakebite spiderbiteguidelinessa sa-health08(1)DrZahid Khan
Ā 
Lastminutemrcp1revision 140622171105-phpapp02
Lastminutemrcp1revision 140622171105-phpapp02Lastminutemrcp1revision 140622171105-phpapp02
Lastminutemrcp1revision 140622171105-phpapp02DrZahid Khan
Ā 
94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...
94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...
94570764 diagnostic-procedures-in-ophthalmology-full-colour1-140426073515-php...DrZahid Khan
Ā 
3 elzohry mrcp questions - pass medicine 2013
3  elzohry mrcp questions - pass medicine 20133  elzohry mrcp questions - pass medicine 2013
3 elzohry mrcp questions - pass medicine 2013DrZahid Khan
Ā 
Pass medicine MRCP 2013
Pass medicine  MRCP 2013Pass medicine  MRCP 2013
Pass medicine MRCP 2013DrZahid Khan
Ā 
3 clinical skills
3 clinical skills3 clinical skills
3 clinical skillsDrZahid Khan
Ā 
Davis s pocket clinical drug reference
Davis s pocket clinical drug referenceDavis s pocket clinical drug reference
Davis s pocket clinical drug referenceDrZahid Khan
Ā 
Descrptive statistics
Descrptive statisticsDescrptive statistics
Descrptive statisticsDrZahid Khan
Ā 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersionDrZahid Khan
Ā 
Burden of disease and determinants of health
Burden of disease and determinants of healthBurden of disease and determinants of health
Burden of disease and determinants of healthDrZahid Khan
Ā 
05 confidence interval & probability statements
05 confidence interval & probability statements05 confidence interval & probability statements
05 confidence interval & probability statementsDrZahid Khan
Ā 
Population & sample lecture 04
Population & sample lecture 04Population & sample lecture 04
Population & sample lecture 04DrZahid Khan
Ā 
Data Display and Summary
Data Display and SummaryData Display and Summary
Data Display and SummaryDrZahid Khan
Ā 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06DrZahid Khan
Ā 
Amc material
Amc materialAmc material
Amc materialDrZahid Khan
Ā 
Manikins examination for Medical students
Manikins examination for Medical studentsManikins examination for Medical students
Manikins examination for Medical studentsDrZahid Khan
Ā 
Occupational Lung Diseases
Occupational Lung DiseasesOccupational Lung Diseases
Occupational Lung DiseasesDrZahid Khan
Ā 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06DrZahid Khan
Ā 
Introduction to occupational diseases
Introduction to occupational diseasesIntroduction to occupational diseases
Introduction to occupational diseasesDrZahid Khan
Ā 
Occupational heat stress and occupational health services
Occupational heat stress and occupational health servicesOccupational heat stress and occupational health services
Occupational heat stress and occupational health servicesDrZahid Khan
Ā 

More from DrZahid Khan (20)

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

Recently uploaded

Pharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingPharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingArunagarwal328757
Ā 
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...narwatsonia7
Ā 
Call Girls Viman Nagar 7001305949 All Area Service COD available Any Time
Call Girls Viman Nagar 7001305949 All Area Service COD available Any TimeCall Girls Viman Nagar 7001305949 All Area Service COD available Any Time
Call Girls Viman Nagar 7001305949 All Area Service COD available Any Timevijaych2041
Ā 
call girls in Connaught Place DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...
call girls in Connaught Place  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...call girls in Connaught Place  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...
call girls in Connaught Place DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...saminamagar
Ā 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipurparulsinha
Ā 
97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAAjennyeacort
Ā 
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...rajnisinghkjn
Ā 
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaCall Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaPooja Gupta
Ā 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Suratnarwatsonia7
Ā 
Glomerular Filtration and determinants of glomerular filtration .pptx
Glomerular Filtration and  determinants of glomerular filtration .pptxGlomerular Filtration and  determinants of glomerular filtration .pptx
Glomerular Filtration and determinants of glomerular filtration .pptxDr.Nusrat Tariq
Ā 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowNehru place Escorts
Ā 
Call Girl Nagpur Sia 7001305949 Independent Escort Service Nagpur
Call Girl Nagpur Sia 7001305949 Independent Escort Service NagpurCall Girl Nagpur Sia 7001305949 Independent Escort Service Nagpur
Call Girl Nagpur Sia 7001305949 Independent Escort Service NagpurRiya Pathan
Ā 
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfHemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfMedicoseAcademics
Ā 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...narwatsonia7
Ā 
call girls in munirka DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in munirka  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in munirka  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in munirka DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøsaminamagar
Ā 
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...rajnisinghkjn
Ā 
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...narwatsonia7
Ā 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknownarwatsonia7
Ā 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girlsnehamumbai
Ā 
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service MumbaiVIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbaisonalikaur4
Ā 

Recently uploaded (20)

Pharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingPharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, Pricing
Ā 
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...
Housewife Call Girls Bangalore - Call 7001305949 Rs-3500 with A/C Room Cash o...
Ā 
Call Girls Viman Nagar 7001305949 All Area Service COD available Any Time
Call Girls Viman Nagar 7001305949 All Area Service COD available Any TimeCall Girls Viman Nagar 7001305949 All Area Service COD available Any Time
Call Girls Viman Nagar 7001305949 All Area Service COD available Any Time
Ā 
call girls in Connaught Place DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...
call girls in Connaught Place  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...call girls in Connaught Place  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...
call girls in Connaught Place DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service ...
Ā 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
Ā 
97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA
Ā 
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Ā 
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaCall Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Ā 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Ā 
Glomerular Filtration and determinants of glomerular filtration .pptx
Glomerular Filtration and  determinants of glomerular filtration .pptxGlomerular Filtration and  determinants of glomerular filtration .pptx
Glomerular Filtration and determinants of glomerular filtration .pptx
Ā 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Ā 
Call Girl Nagpur Sia 7001305949 Independent Escort Service Nagpur
Call Girl Nagpur Sia 7001305949 Independent Escort Service NagpurCall Girl Nagpur Sia 7001305949 Independent Escort Service Nagpur
Call Girl Nagpur Sia 7001305949 Independent Escort Service Nagpur
Ā 
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfHemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Ā 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Ā 
call girls in munirka DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in munirka  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in munirka  DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in munirka DELHI šŸ” >ą¼’9540349809 šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
Ā 
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...
Noida Sector 135 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few C...
Ā 
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Ā 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
Ā 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Ā 
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service MumbaiVIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
Ā 

Logistic regression

  • 1. LOGISTIC REGRESSION By Dr Zahid Khan Senior Lecturer King Faisal University,KSA 1
  • 2. Aims ā€¢ When and Why do we Use Logistic Regression? ā€¢ Binary ā€¢ Multinomial ā€¢ Theory Behind Logistic Regression ā€¢ Assessing the Model ā€¢ Assessing predictors ā€¢ Things that can go Wrong ā€¢ Interpreting Logistic Regression
  • 3. When And Why ā€¢ To predict an outcome variable that is categorical from one or more categorical or continuous predictor variables. ā€¢ Used because having a categorical outcome variable violates the assumption of linearity in normal regression. ā€¢ Does not assume a linear relationship between DV and IV
  • 4. When And Why ļ±No assumptions about the distributions of the predictor variables. ļ±Predictors do not have to be normally distributed ļ±Logistic regression does not make any assumptions of normality, linearity, and homogeneity of variance for the independent variables. ļ±Because it does not impose these requirements, it is preferred to discriminant analysis when the data does not satisfy these assumptions. 4
  • 5. Logistic regression ā€¢ Logistic regression is used to analyze relationships between a dichotomous dependent variable and continue or dichotomous independent variables. (SPSS now supports Multinomial Logistic Regression that can be used with more than two groups, but our focus here is on binary logistic regression for two groups.) ā€¢ Logistic regression combines the independent variables to estimate the probability that a particular event will occur, i.e. a subject will be a member of one of the groups defined by the dichotomous dependent variable. In SPSS, the model is always constructed to predict the group with higher numeric code. If responses are coded 1 for Yes and 2 for No, SPSS will predict membership in the No category. If responses are coded 1 for No and 2 for Yes, SPSS will predict membership in the Yes category. We will refer to the predicted event for a particular analysis as the modeled event.
  • 6. With One Predictor P(Y ) ļ€½ 1 1ļ€« e ļ€­( b0 ļ€« b1X1ļ€« ļ„i ) ā€¢ Outcome ā€¢ We predict the probability of the outcome occurring ā€¢ b0 and b0 ā€¢ Can be thought of in much the same way as multiple regression ā€¢ Note the normal regression equation forms part of the logistic regression equation
  • 7. With Several Predictor P(Y ) ļ€½ 1 1ļ€« e ļ€­( b0 ļ€« b1X1ļ€« b2 X 2 ļ€«...ļ€« bn X n ļ€« ļ„i ) ā€¢ Outcome ā€¢ We still predict the probability of the outcome occurring ā€¢ Differences ā€¢ Note the multiple regression equation forms part of the logistic regression equation ā€¢ This part of the equation expands to accommodate additional predictors
  • 8. The Logistic Regression Logit p = Ī± + Ī²1X1 +Ī²2X2 + .. + Ī²pXp Ī± represents the overall disease risk Ī²1 represents the fraction by which the disease risk is altered by a unit change in X1 Ī²2 is the fraction by which the disease risk is altered by a unit change in X2 ā€¦ā€¦. and so on. What changes is the log odds. The odds themselves are changed by eĪ² If Ī² = 1.6 the odds are e1.6 = 4.95
  • 9. Measuring the Probability of Outcome The probability of the outcome is measured by the odds of occurrence of an event. If P is the probability of an event, then (1-P) is the probability of it not occurring. Odds of success = P / 1-P P 1ļ€­ P
  • 10. Methods of Regression ā€¢ Forced Entry: All variables entered simultaneously. ā€¢ Hierarchical: Variables entered in blocks. ā€¢ Blocks should be based on past research, or theory being tested. Good Method. ā€¢ Stepwise: Variables entered on the basis of statistical criteria (i.e. relative contribution to predicting outcome). ā€¢ Should be used only for exploratory analysis.
  • 11. 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
  • 12. 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.
  • 15. Binary logistic regression expression BINARY Y = Dependent Variables ƟĖš = Constant Ɵ1 = Coefficient of variable X1 X1 = Independent Variables E = Error Term
  • 16. 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.
  • 17. SAMPLE SIZE PER CATEGORY OF THE INDEPENDENT VARIABLE ļ± The recommended sample size for each group is at least 10 observations per estimated parameters.
  • 18. 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.
  • 19. Maximum Likelihood Estimation (MLE) ļ‚§ MLE is a statistical method for estimating the coefficients of a model. ļ‚§ The likelihood function (L) measures the probability of observing the particular set of dependent variable values (p1, p2, ..., pn) that occur in the sample: L = Prob (p1* p2* * * pn) ļ‚§ The higher the L, the higher the probability of observing the ps in the sample.
  • 21.
  • 22. Comparing LP and Logit Models LP Model 1 Logit Model 0
  • 23. 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.
  • 24. 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
  • 25. 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)
  • 26. 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
  • 27. 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
  • 28. Logistic Regression-Demo ā€¢ MS-Excel: No default functions ā€¢ SPSS: Analyze > Regression > Binary Logistic > Select Dependent variable: > Select independent variable (covariate)
  • 29. Writing Up Results ļ‚§ Present descriptive statistics in a table ļ‚§ Make it clear that the dependent variable is discrete (0, 1) and not continuous and that you will use logistic regression. ļ‚§ Logistic regression is a standard statistical procedure so you don't (necessarily) need to write out the formula for it. You also (usually) don't need to justify that you are using Logit instead of the LP model or Probit (similar to Logit but based on the normal distribution [the tails are less fat]).