SlideShare a Scribd company logo
Statistics One
Lecture 20
Binary Logistic Regression
1
Two segments
•  Overview
•  Example

2
Lecture 20 ~ Segment 1
Binary Logistic Regression
Overview
3
Binary logistic regression
•  Appropriate when predicting a binary
categorical outcome variable from a set of
predictor variables that may be continuous
and/or categorical
–  Same logic as multiple regression but outcome
variable is categorical and binary
Binary logistic regression
•  When outcome has two levels
–  Binary logistic regression

•  When outcome has multiple levels
–  Multinomial regression
Multiple regression
•  Ŷ= B0 + Σ(BkXk)
Ŷ = predicted value on the outcome variable Y
B0 = predicted value on Y when all X = 0
Xk = predictor variables
Bk = unstandardized regression coefficients
(Y – Ŷ) = residual (prediction error)
k = the number of predictor variables
6
Binary logistic regression
•  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk)
Ŷ = predicted value on the outcome variable Y
B0 = predicted value on Y when all X = 0
Xk = predictor variables
Bk = unstandardized regression coefficients
(Y – Ŷ) = residual (prediction error)
k = the number of predictor variables
7
Binary logistic regression
•  Why ln(Ŷ / (1 – Ŷ))?
•  Predicted score must fall between 0 and 1

8
Binary logistic regression
Binary logistic regression
•  Why not P(outcome) = B0 + Σ(BkXk) ???
•  There is no guarantee that the linear
combination of predictors will produce a
score between 0 and 1
•  A transformation is therefore applied
10
Binary logistic regression
•  Odds = P(outcome) / (1 – P(outcome))
•  For example, what are the odds a flipped coin will land
heads? Odds = .5 / .5 = 1
•  Then take the natural log of the odds, which is called the
log-odds or logit
•  Logit = ln(P(outcome) / (1 – P(outcome))
•  Logit = ln(Ŷ / (1 – Ŷ))
11
Binary logistic regression
•  Logit = ln(Ŷ / (1 – Ŷ))
•  Ŷ = P(outcome)
Binary logistic regression
•  P(outcome) = odds / (1 + odds)
•  Odds = P(outcome) / P(~outcome)
•  For example,
•  If P = .50 then Odds = 1 and Logit = 0
Binary logistic regression
•  Example

•  Outcome variable = Faculty Promotion to tenure
•  Predictor variable = Publications (Pubs)
•  Logit(Promotion) = B0 + B1(Pubs)
•  Logit(Promotion) = 0.00 + .39(Pubs)
•  For every one unit increase in Pubs, the Logit
increases .39
Binary logistic regression
•  Logit = ln(P(outcome) / (1 – P(outcome))
•  Odds = P(outcome) / (1 – P(outcome))
•  Logit = .39 translates to an odds ratio of 1.48
–  This means that the odds of promotion are
multiplied by 1.48 for each increment in Pubs
Binary logistic regression
•  Thus, if the odds of Promotion with 16 publications
is 1.27 then the Odds of Promotion with 17
publications is 1.27*1.48 = 1.88
•  This can also be presented in terms of probability
•  Pubs = 17 means P(Promotion) = .65 because
P(Promotion) = Odds / (1 + Odds) = 1.88/2.88 = .65
Binary logistic regression
•  Hypothesis tests

•  Is an individual predictor variable significant?
•  Is the overall model significant?
•  Is Model A significantly better than Model B?
Binary logistic regression
•  To test each predictor variable
•  Regression coefficient
•  Odds ratio
•  Wald test

•  Tests the model vs. the model without the predictor
Binary logistic regression
•  To test the overall model

•  Compare the chi-square for the model to the chi-square
of a model with no predictors (the null model)
•  And/or compare multiple models
•  Also, does the model classify cases correctly?
Segment summary
•  Binary logistic regression is appropriate
when predicting a binary categorical
outcome variable from a set of predictor
variables that may be continuous and/or
categorical
Segment summary
•  Main components of the output are
–  Regression coefficients
–  Odds ratios
–  Wald tests
–  Model chi-square
–  Classification success
END SEGMENT

22
Lecture 20 ~ Segment 2
Binary Logistic Regression
Example
23
Binary logistic regression
•  This example is based on “mock jury” research by
Diamond & Casper (1992)

–  People (mock jurors) watched a video of the sentencing
phase of a murder trial in which the defendant had already
been found guilty
–  The issue for the jurors to decide was whether the
defendant deserved the death penalty
Binary logistic regression
•  This example is based on “mock jury” research by
Diamond & Casper (1992)

–  Assume the data were collected “pre-deliberation”, which
means that each juror was asked to provide his or her vote
on the death penalty verdict before the jurors met as a group
to decide the overall jury verdict
Binary logistic regression
•  Outcome variable (Y)
•  Verdict

•  1 = Voted for the death penalty
•  0 = Voted against the death penalty

•  Predictors (Xs)
• 
• 
• 
• 
• 
• 

Danger
Rehab
Punish
Gendet
Specdet
Incap

•  All measured on a scale of 0 – 10
Binary logistic regression
•  Danger (Dangerousness)

•  Individual’s beliefs as to the future dangerousness of the
defendant

•  Rehab (Rehabilitation)

•  Individual’s beliefs as to the importance of rehabilitation as a
goal of criminal sentencing

•  Punish (Punishment)

•  Individual’s beliefs as to the importance of punishment as a
goal of criminal sentencing
Binary logistic regression
•  Gendet (General deterrence)

•  Individual’s beliefs as to the importance of general deterrence as a
goal of criminal sentencing (sentencing should deter the general
public)

•  Specdet (Specific deterrence)

•  Individual’s beliefs as to the importance of specific deterrence as a
goal of criminal sentencing (sentencing should deter the specific
defendant)

•  Incap (Incapacitation)

•  Individual’s beliefs as to the importance of punishment as a goal of
criminal sentencing
Binary logistic regression
•  The General Linear Model will not guarantee a
predicted outcome score between 0 and 1
•  The Logit transformation is a feature of an even more
“general” mathematical framework in regression
•  The Generalized Linear Model

•  Allows for non-linear relationships between predictors and
the outcome variable (see Lecture 23)
Binary logistic regression
Binary logistic regression
Binary logistic regression
Binary logistic regression
Binary logistic regression
Binary logistic regression
Binary logistic regression
Binary logistic regression
•  Evaluation of individual predictors
–  Odds ratios

•  For a one unit increase in X, the predicted change in odds
•  Can also report confidence intervals for odds

–  Wald test

•  A function of the regression coefficient. A Wald tests is
calculated for each predictor variable and compares the fit of
the model to the fit of the model without the predictor.
Binary logistic regression
•  Evaluation of the model
–  Model chi-square

–  Compares the fit of the model to the fit of the null model

–  Classification success

•  Percentage of cases classified correctly
Binary logistic regression
•  More than 2 categories on the outcome
–  Multinomial logistic regression
•  A-1 logistic regression equations are formed
–  Where A = # of groups
–  One group serves as reference group
END SEGMENT

40
END LECTURE 20

41

More Related Content

PDF
Multilevel Binary Logistic Regression
PPT
Logistic regression (blyth 2006) (simplified)
PPTX
Logistic regression with SPSS
PDF
Logistic Regression Analysis
PDF
7. logistics regression using spss
PDF
Logistic Ordinal Regression
PPTX
Multinomial Logistic Regression Analysis
PDF
Linear Regression vs Logistic Regression | Edureka
Multilevel Binary Logistic Regression
Logistic regression (blyth 2006) (simplified)
Logistic regression with SPSS
Logistic Regression Analysis
7. logistics regression using spss
Logistic Ordinal Regression
Multinomial Logistic Regression Analysis
Linear Regression vs Logistic Regression | Edureka

What's hot (20)

PPT
Logistic Regression in Case-Control Study
PPTX
Logistic regression
PPTX
Logistic regression
DOCX
Binary Logistic Regression
PPT
Multinomial logisticregression basicrelationships
PDF
Logistic regression
PPT
Logistic regression
PDF
Data Analyst - Interview Guide
PPTX
The probit model
PDF
Logistic regression
PPT
Chapter 4 - multiple regression
PPTX
Simple linear regression
PPTX
Functional Forms of Regression Models | Eonomics
PPTX
Polynomial regression
PDF
Multiple Regression and Logistic Regression
PPTX
Managerial Economics - Demand Estimation (regression analysis)
PDF
Regression analysis made easy
PPTX
Multiple Linear Regression
PPTX
linear probit model
PPTX
Econometrics chapter 5-two-variable-regression-interval-estimation-
Logistic Regression in Case-Control Study
Logistic regression
Logistic regression
Binary Logistic Regression
Multinomial logisticregression basicrelationships
Logistic regression
Logistic regression
Data Analyst - Interview Guide
The probit model
Logistic regression
Chapter 4 - multiple regression
Simple linear regression
Functional Forms of Regression Models | Eonomics
Polynomial regression
Multiple Regression and Logistic Regression
Managerial Economics - Demand Estimation (regression analysis)
Regression analysis made easy
Multiple Linear Regression
linear probit model
Econometrics chapter 5-two-variable-regression-interval-estimation-
Ad

Viewers also liked (19)

PDF
Intro to Classification: Logistic Regression & SVM
PPTX
Logistic regression with SPSS examples
PDF
Logistic regression
PPTX
Logistic regression
PDF
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
PDF
Anthony_Kimeu_Geospat_Presentation
PDF
Logistic regression teaching
PDF
Binary Logistic Regression Example
PPTX
PPTX
What does an odds ratio or relative risk mean?
PDF
Stata statistics
PDF
Multinomial Logistic Regression with Apache Spark
PPT
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
PPTX
Odds ratio
DOCX
PPTX
Case control & cohort study
PPTX
Estimating risk
PPT
Measures Of Association
PPTX
Reporting a multiple linear regression in apa
Intro to Classification: Logistic Regression & SVM
Logistic regression with SPSS examples
Logistic regression
Logistic regression
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
Anthony_Kimeu_Geospat_Presentation
Logistic regression teaching
Binary Logistic Regression Example
What does an odds ratio or relative risk mean?
Stata statistics
Multinomial Logistic Regression with Apache Spark
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
Odds ratio
Case control & cohort study
Estimating risk
Measures Of Association
Reporting a multiple linear regression in apa
Ad

Similar to Lecture slides stats1.13.l20.air (20)

PDF
Regression-Logistic-4.pdf
PPT
Estatística aplicada a saúde: regressão logística
PPTX
7. The sixCategorical data analysis.pptx
PPT
M8.logreg.ppt
PPT
M8.logreg.ppt
PPTX
logisticregression-120102011227-phpapp01.pptx
PDF
the unconditional Logistic Regression .pdf
PDF
4_logit_printable_.pdf
PPTX
Logistic Regression in machine learning ppt
PPT
RegressionwithABinaryDependentVariables.ppt
PPT
Logisticregression
PPTX
Logistic Regression.pptx
PPT
logistic regression.............................................................
PPT
logisticregressionJeffWitnerMarch2016.ppt
PPTX
Discrete Choice Model
PPTX
Regresión Logística (Disdier OM)
PPT
Logisticregression
PPT
logisticregression.ppt
PPT
logisticregression
PPT
unconditional binary logisticregression.ppt
Regression-Logistic-4.pdf
Estatística aplicada a saúde: regressão logística
7. The sixCategorical data analysis.pptx
M8.logreg.ppt
M8.logreg.ppt
logisticregression-120102011227-phpapp01.pptx
the unconditional Logistic Regression .pdf
4_logit_printable_.pdf
Logistic Regression in machine learning ppt
RegressionwithABinaryDependentVariables.ppt
Logisticregression
Logistic Regression.pptx
logistic regression.............................................................
logisticregressionJeffWitnerMarch2016.ppt
Discrete Choice Model
Regresión Logística (Disdier OM)
Logisticregression
logisticregression.ppt
logisticregression
unconditional binary logisticregression.ppt

More from atutor_te (20)

PDF
Lecture slides stats1.13.l24.air
PDF
Lecture slides stats1.13.l22.air
PDF
Lecture slides stats1.13.l21.air
PDF
Lecture slides stats1.13.l19.air
PDF
Lecture slides stats1.13.l18.air
PDF
Lecture slides stats1.13.l17.air
PDF
Lecture slides stats1.13.l16.air
PDF
Lecture slides stats1.13.l15.air
PDF
Lecture slides stats1.13.l14.air
PDF
Lecture slides stats1.13.l13.air
PDF
Lecture slides stats1.13.l12.air
PDF
Lecture slides stats1.13.l11.air
PDF
Lecture slides stats1.13.l10.air
PDF
Lecture slides stats1.13.l09.air
PDF
Lecture slides stats1.13.l08.air
PDF
Lecture slides stats1.13.l07.air
PDF
Lecture slides stats1.13.l06.air
PDF
Lecture slides stats1.13.l05.air
PDF
Lecture slides stats1.13.l04.air
PDF
Lecture slides stats1.13.l23.air
Lecture slides stats1.13.l24.air
Lecture slides stats1.13.l22.air
Lecture slides stats1.13.l21.air
Lecture slides stats1.13.l19.air
Lecture slides stats1.13.l18.air
Lecture slides stats1.13.l17.air
Lecture slides stats1.13.l16.air
Lecture slides stats1.13.l15.air
Lecture slides stats1.13.l14.air
Lecture slides stats1.13.l13.air
Lecture slides stats1.13.l12.air
Lecture slides stats1.13.l11.air
Lecture slides stats1.13.l10.air
Lecture slides stats1.13.l09.air
Lecture slides stats1.13.l08.air
Lecture slides stats1.13.l07.air
Lecture slides stats1.13.l06.air
Lecture slides stats1.13.l05.air
Lecture slides stats1.13.l04.air
Lecture slides stats1.13.l23.air

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
RMMM.pdf make it easy to upload and study
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
master seminar digital applications in india
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharma ospi slides which help in ospi learning
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Cell Structure & Organelles in detailed.
Anesthesia in Laparoscopic Surgery in India
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
RMMM.pdf make it easy to upload and study
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
VCE English Exam - Section C Student Revision Booklet
202450812 BayCHI UCSC-SV 20250812 v17.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
master seminar digital applications in india
Supply Chain Operations Speaking Notes -ICLT Program
Microbial diseases, their pathogenesis and prophylaxis
Pharma ospi slides which help in ospi learning
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf

Lecture slides stats1.13.l20.air

  • 1. Statistics One Lecture 20 Binary Logistic Regression 1
  • 3. Lecture 20 ~ Segment 1 Binary Logistic Regression Overview 3
  • 4. Binary logistic regression •  Appropriate when predicting a binary categorical outcome variable from a set of predictor variables that may be continuous and/or categorical –  Same logic as multiple regression but outcome variable is categorical and binary
  • 5. Binary logistic regression •  When outcome has two levels –  Binary logistic regression •  When outcome has multiple levels –  Multinomial regression
  • 6. Multiple regression •  Ŷ= B0 + Σ(BkXk) Ŷ = predicted value on the outcome variable Y B0 = predicted value on Y when all X = 0 Xk = predictor variables Bk = unstandardized regression coefficients (Y – Ŷ) = residual (prediction error) k = the number of predictor variables 6
  • 7. Binary logistic regression •  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk) Ŷ = predicted value on the outcome variable Y B0 = predicted value on Y when all X = 0 Xk = predictor variables Bk = unstandardized regression coefficients (Y – Ŷ) = residual (prediction error) k = the number of predictor variables 7
  • 8. Binary logistic regression •  Why ln(Ŷ / (1 – Ŷ))? •  Predicted score must fall between 0 and 1 8
  • 10. Binary logistic regression •  Why not P(outcome) = B0 + Σ(BkXk) ??? •  There is no guarantee that the linear combination of predictors will produce a score between 0 and 1 •  A transformation is therefore applied 10
  • 11. Binary logistic regression •  Odds = P(outcome) / (1 – P(outcome)) •  For example, what are the odds a flipped coin will land heads? Odds = .5 / .5 = 1 •  Then take the natural log of the odds, which is called the log-odds or logit •  Logit = ln(P(outcome) / (1 – P(outcome)) •  Logit = ln(Ŷ / (1 – Ŷ)) 11
  • 12. Binary logistic regression •  Logit = ln(Ŷ / (1 – Ŷ)) •  Ŷ = P(outcome)
  • 13. Binary logistic regression •  P(outcome) = odds / (1 + odds) •  Odds = P(outcome) / P(~outcome) •  For example, •  If P = .50 then Odds = 1 and Logit = 0
  • 14. Binary logistic regression •  Example •  Outcome variable = Faculty Promotion to tenure •  Predictor variable = Publications (Pubs) •  Logit(Promotion) = B0 + B1(Pubs) •  Logit(Promotion) = 0.00 + .39(Pubs) •  For every one unit increase in Pubs, the Logit increases .39
  • 15. Binary logistic regression •  Logit = ln(P(outcome) / (1 – P(outcome)) •  Odds = P(outcome) / (1 – P(outcome)) •  Logit = .39 translates to an odds ratio of 1.48 –  This means that the odds of promotion are multiplied by 1.48 for each increment in Pubs
  • 16. Binary logistic regression •  Thus, if the odds of Promotion with 16 publications is 1.27 then the Odds of Promotion with 17 publications is 1.27*1.48 = 1.88 •  This can also be presented in terms of probability •  Pubs = 17 means P(Promotion) = .65 because P(Promotion) = Odds / (1 + Odds) = 1.88/2.88 = .65
  • 17. Binary logistic regression •  Hypothesis tests •  Is an individual predictor variable significant? •  Is the overall model significant? •  Is Model A significantly better than Model B?
  • 18. Binary logistic regression •  To test each predictor variable •  Regression coefficient •  Odds ratio •  Wald test •  Tests the model vs. the model without the predictor
  • 19. Binary logistic regression •  To test the overall model •  Compare the chi-square for the model to the chi-square of a model with no predictors (the null model) •  And/or compare multiple models •  Also, does the model classify cases correctly?
  • 20. Segment summary •  Binary logistic regression is appropriate when predicting a binary categorical outcome variable from a set of predictor variables that may be continuous and/or categorical
  • 21. Segment summary •  Main components of the output are –  Regression coefficients –  Odds ratios –  Wald tests –  Model chi-square –  Classification success
  • 23. Lecture 20 ~ Segment 2 Binary Logistic Regression Example 23
  • 24. Binary logistic regression •  This example is based on “mock jury” research by Diamond & Casper (1992) –  People (mock jurors) watched a video of the sentencing phase of a murder trial in which the defendant had already been found guilty –  The issue for the jurors to decide was whether the defendant deserved the death penalty
  • 25. Binary logistic regression •  This example is based on “mock jury” research by Diamond & Casper (1992) –  Assume the data were collected “pre-deliberation”, which means that each juror was asked to provide his or her vote on the death penalty verdict before the jurors met as a group to decide the overall jury verdict
  • 26. Binary logistic regression •  Outcome variable (Y) •  Verdict •  1 = Voted for the death penalty •  0 = Voted against the death penalty •  Predictors (Xs) •  •  •  •  •  •  Danger Rehab Punish Gendet Specdet Incap •  All measured on a scale of 0 – 10
  • 27. Binary logistic regression •  Danger (Dangerousness) •  Individual’s beliefs as to the future dangerousness of the defendant •  Rehab (Rehabilitation) •  Individual’s beliefs as to the importance of rehabilitation as a goal of criminal sentencing •  Punish (Punishment) •  Individual’s beliefs as to the importance of punishment as a goal of criminal sentencing
  • 28. Binary logistic regression •  Gendet (General deterrence) •  Individual’s beliefs as to the importance of general deterrence as a goal of criminal sentencing (sentencing should deter the general public) •  Specdet (Specific deterrence) •  Individual’s beliefs as to the importance of specific deterrence as a goal of criminal sentencing (sentencing should deter the specific defendant) •  Incap (Incapacitation) •  Individual’s beliefs as to the importance of punishment as a goal of criminal sentencing
  • 29. Binary logistic regression •  The General Linear Model will not guarantee a predicted outcome score between 0 and 1 •  The Logit transformation is a feature of an even more “general” mathematical framework in regression •  The Generalized Linear Model •  Allows for non-linear relationships between predictors and the outcome variable (see Lecture 23)
  • 37. Binary logistic regression •  Evaluation of individual predictors –  Odds ratios •  For a one unit increase in X, the predicted change in odds •  Can also report confidence intervals for odds –  Wald test •  A function of the regression coefficient. A Wald tests is calculated for each predictor variable and compares the fit of the model to the fit of the model without the predictor.
  • 38. Binary logistic regression •  Evaluation of the model –  Model chi-square –  Compares the fit of the model to the fit of the null model –  Classification success •  Percentage of cases classified correctly
  • 39. Binary logistic regression •  More than 2 categories on the outcome –  Multinomial logistic regression •  A-1 logistic regression equations are formed –  Where A = # of groups –  One group serves as reference group