SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control StudySatish Gupta
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionsaba khan
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsAnirudha si
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionVARUN KUMAR
 
Chapter 4 - multiple regression
Chapter 4  - multiple regressionChapter 4  - multiple regression
Chapter 4 - multiple regressionTauseef khan
 
Functional Forms of Regression Models | Eonomics
Functional Forms of Regression Models | EonomicsFunctional Forms of Regression Models | Eonomics
Functional Forms of Regression Models | EonomicsTransweb Global Inc
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regressionnaveedaliabad
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionKaushik Rajan
 
Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)JooneEltanal
 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easyWeam Banjar
 
linear probit model
linear probit modellinear probit model
linear probit modelSakthivel R
 
Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Alamin Milton
 

Tendances (20)

Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control Study
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Data Analyst - Interview Guide
Data Analyst - Interview GuideData Analyst - Interview Guide
Data Analyst - Interview Guide
 
The probit model
The probit modelThe probit model
The probit model
 
Logistic regression
  Logistic regression  Logistic regression
Logistic regression
 
Chapter 4 - multiple regression
Chapter 4  - multiple regressionChapter 4  - multiple regression
Chapter 4 - multiple regression
 
Simple linear regression
Simple linear regression Simple linear regression
Simple linear regression
 
Functional Forms of Regression Models | Eonomics
Functional Forms of Regression Models | EonomicsFunctional Forms of Regression Models | Eonomics
Functional Forms of Regression Models | Eonomics
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regression
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
 
Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)
 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easy
 
Multiple Linear Regression
Multiple Linear Regression Multiple Linear Regression
Multiple Linear Regression
 
linear probit model
linear probit modellinear probit model
linear probit model
 
Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-
 

En vedette

Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMNYC Predictive Analytics
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examplesGaurav Kamboj
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...Kurt Schulzke
 
Anthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationAnthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationANTHONY KIMEU
 
What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean? What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean? Terry Shaneyfelt
 
Stata statistics
Stata statisticsStata statistics
Stata statisticsizahn
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkDB Tsai
 
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseLogistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseMichael Lieberman
 
Case control & cohort study
Case control & cohort studyCase control & cohort study
Case control & cohort studyBhumika Bhatt
 
Measures Of Association
Measures Of AssociationMeasures Of Association
Measures Of Associationganesh kumar
 
Reporting a multiple linear regression in apa
Reporting a multiple linear regression in apaReporting a multiple linear regression in apa
Reporting a multiple linear regression in apaKen Plummer
 

En vedette (19)

Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVM
 
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
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
Game Theory & Logistic Regression: Monetizing Trust in Contracts Through Bina...
 
Anthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationAnthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_Presentation
 
Logistic regression teaching
Logistic regression teachingLogistic regression teaching
Logistic regression teaching
 
Binary Logistic Regression Example
Binary Logistic Regression ExampleBinary Logistic Regression Example
Binary Logistic Regression Example
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean? What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean?
 
Stata statistics
Stata statisticsStata statistics
Stata statistics
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
 
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseLogistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
 
Odds ratio
Odds ratioOdds ratio
Odds ratio
 
Odds ratio
Odds ratioOdds ratio
Odds ratio
 
Case control & cohort study
Case control & cohort studyCase control & cohort study
Case control & cohort study
 
Estimating risk
Estimating riskEstimating risk
Estimating risk
 
Measures Of Association
Measures Of AssociationMeasures Of Association
Measures Of Association
 
Reporting a multiple linear regression in apa
Reporting a multiple linear regression in apaReporting a multiple linear regression in apa
Reporting a multiple linear regression in apa
 

Similaire à Lecture slides stats1.13.l20.air

Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLKumud Arora
 
Design of Engineering Experiments Part 5
Design of Engineering Experiments Part 5Design of Engineering Experiments Part 5
Design of Engineering Experiments Part 5Stats Statswork
 
Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6Daria Bogdanova
 
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
 
PPT_logistic regression.pptx
PPT_logistic regression.pptxPPT_logistic regression.pptx
PPT_logistic regression.pptxCoePHNNITR
 
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdfAdityaKumarGupta21
 
L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learningYogendra Singh
 
1572 mean-a review of statistical principles
1572 mean-a review of statistical principles1572 mean-a review of statistical principles
1572 mean-a review of statistical principlesDr Fereidoun Dejahang
 
Iterative Graph Computation in the Big Data Era
Iterative Graph Computation in the Big Data EraIterative Graph Computation in the Big Data Era
Iterative Graph Computation in the Big Data EraWenlei Xie
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Modelsrichardchandler
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAsst.prof M.Gokilavani
 
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...Matthew Powers
 
Applied statistics lecture_7
Applied statistics lecture_7Applied statistics lecture_7
Applied statistics lecture_7Daria Bogdanova
 

Similaire à Lecture slides stats1.13.l20.air (20)

Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
 
Statistics-2 : Elements of Inference
Statistics-2 : Elements of InferenceStatistics-2 : Elements of Inference
Statistics-2 : Elements of Inference
 
PA_EPGDM_2_2023.pptx
PA_EPGDM_2_2023.pptxPA_EPGDM_2_2023.pptx
PA_EPGDM_2_2023.pptx
 
4646150.ppt
4646150.ppt4646150.ppt
4646150.ppt
 
Design of Engineering Experiments Part 5
Design of Engineering Experiments Part 5Design of Engineering Experiments Part 5
Design of Engineering Experiments Part 5
 
Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6
 
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
 
PPT_logistic regression.pptx
PPT_logistic regression.pptxPPT_logistic regression.pptx
PPT_logistic regression.pptx
 
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
 
L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learning
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
STAN_MS_PPT.pptx
STAN_MS_PPT.pptxSTAN_MS_PPT.pptx
STAN_MS_PPT.pptx
 
1572 mean-a review of statistical principles
1572 mean-a review of statistical principles1572 mean-a review of statistical principles
1572 mean-a review of statistical principles
 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
 
Iterative Graph Computation in the Big Data Era
Iterative Graph Computation in the Big Data EraIterative Graph Computation in the Big Data Era
Iterative Graph Computation in the Big Data Era
 
Machine Learning (Decisoion Trees)
Machine Learning (Decisoion Trees)Machine Learning (Decisoion Trees)
Machine Learning (Decisoion Trees)
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Models
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...
Factor Analysis and Correspondence Analysis Composite and Indicator Scores of...
 
Applied statistics lecture_7
Applied statistics lecture_7Applied statistics lecture_7
Applied statistics lecture_7
 

Plus de atutor_te

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

Plus de atutor_te (20)

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

Dernier

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Dernier (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

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