SlideShare a Scribd company logo
1 of 17
Binary logistic regression
Part 1: Introduction
Dr Heini Väisänen
University of Southampton
Outline
• Binary response
• Link functions
• Logistic regression model
• Parameter interpretation
Binary response & regression models
• Often in social science we are interested in relationships between
categorical variables.
• E.g. absence/presence of a disease, voting intention, Likert-scale…
• This session introduces binary logistic regression, which can be
used to study the association between:
• A binary outcome (dependent) variable; and
• Explanatory (independent) variable(s) of any kind
Binary response & regression models
• We have a binary (dichotomous) response variable Y defined as
Y = 1 if “success” (“yes”)
0 if “failure” (“no”)
• We want to model the probability Π that Y=1
Why not linear regression?
• Predicted values may lie outside the interval [0, 1].
• Assumption of constant variance is violated as variance depends
on x through its influence on п.
 var(ε) = пi(x)[1 – пi(x)]
 Standard errors not valid, and conclusions from them misleading.
Solution: Link Functions
• Good news: we can keep
пi (x) = β0 +β1x1i +β2x2i + … +βkxki
• …if we model a transformation of пi:
ηi = g(пi) = β0 +β1x1i +β2x2i + … +βkxki
where g(.) is the link function.
What is a ‘link function’?
• We require a link transformation that ensures our fitted values vary
between 0 and 1
1. The link function ensures that the expected value of the probability is
between 0 and 1
2. When the linear prediction decreases, the probability goes closer to 0
3. When the linear prediction increases, the probability goes closer to 1
Fig. source: https://commons.wikimedia.org/wiki/File:Logit.png
Probability
Predictor
Logit link function 
logistic regression
Transformation:
log[п/(1-п)]
Fundamental concepts:
• probability = п
• odds = п/(1-п)
• logit(п) = log(odds) =
log[п/(1-п)]
Characteristics of logits and probabilities
1. If Π = 0.5
then odds = 0.5/(1-0.5) = 1
and logit = log(1) = 0
2. If Π > 0.5, then Odds > 1 and logit > 0.
3. If Π < 0.5, then Odds < 1 and logit < 0.
4. Logit can take any values but Π is constrained between 0 and 1.
5. Π can never be exactly 0 or 1.
Example: Birth Weights
Is the probability of a normal birth weight, associated with
gestational age?
• Response: Birth weight (BWGHT: 1 = normal, 0 = low).
• Explanatory: Gestational age in weeks (GAGE).
• Low birthweight has been defined by WHO as weight at birth of less
than 2,500 grams (5.5 pounds).
Descriptive statistics: birth weight
N %
Normal birth
weight
17 70.8
Low birth
weight
7 29.2
Total 24 100.0
Results: Birth Weights (example)
• The fitted model with one explanatory variable gestational age
(GAGE) is:
𝑙𝑜𝑔𝑖𝑡 Π = −48.9 + 1.31 ∗ 𝐺𝐴𝐺𝐸
• How is gestational age associated with low birth weight?
Interpretation on logit scale
• A unit increase in x1 increases the logit (log of the odds) by β1 units.
• For a one week increase in gestational age the log of the odds of a
normal birth weight increases by 1.31.
𝑙𝑜𝑔𝑖𝑡 Π = −48.9 + 1.31 ∗ 𝐺𝐴𝐺𝐸
Interpretation on probability scale
• Predicted probabilities can be computed for any value of GAGE.
• For example, the estimated probability of a baby with gestational age 39 weeks
having a normal birth weight is:
𝜋 =
exp(−48.9 + 1.31 ∗ 39)
1 + exp(−48.9 + 1.31 ∗ 39)
= 0.9
• The predicted probability of normal birth weight at week 39 is 0.9 (90%)
Interpretation in the odds scale
• The effects of explanatory variables are multiplicative on the odds
scale. A unit increase in x1 multiplies the odds by exp(β1).
• So, a one week increase in gestational age multiplies the odds of a
normal birth by 3.71 [i.e. exp(1.31)].
• Alternatively, a one week increase in gestational age increases the
odds of a normal birth weight by
100 × [3.71 - 1] = 271%
How to report results?
• For a one week increase in gestational age the log of the odds of a
normal birth weight increases by 1.31.
• The predicted probability of normal birth weight at week 36 was 0.15,
whereas at week 39 it is 0.9.
• Each additional week of gestation increased the odds of normal birth
weight by 271%.
• OR: Each additional week of gestation multiplied the odds of normal
birth weight by 3.71.
Absolute level of risk /
Example at a specific value of X
Rarely used (not intuitive)
Relative level of risk /
Applies to the entire scale of X
Thank you!

More Related Content

Similar to BLR1.pptx

Applied statistics lecture_7
Applied statistics lecture_7Applied statistics lecture_7
Applied statistics lecture_7Daria Bogdanova
 
Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptxsherinjoyson
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examplesGaurav Kamboj
 
classification_methods-logistic regression Machine Learning
classification_methods-logistic regression Machine Learning classification_methods-logistic regression Machine Learning
classification_methods-logistic regression Machine Learning Shiraz316
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionRupak Roy
 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airatutor_te
 
Lecture 3 quantitative traits and heritability full
Lecture 3 quantitative traits and heritability fullLecture 3 quantitative traits and heritability full
Lecture 3 quantitative traits and heritability fullLekki Frazier-Wood
 
Foundations of Statistics in Ecology and Evolution. 8. Bayesian Statistics
Foundations of Statistics in Ecology and Evolution. 8. Bayesian StatisticsFoundations of Statistics in Ecology and Evolution. 8. Bayesian Statistics
Foundations of Statistics in Ecology and Evolution. 8. Bayesian StatisticsAndres Lopez-Sepulcre
 
Biostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptBiostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptletayh2016
 
Topic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingTopic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingRyan Herzog
 
For this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The dFor this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The dMerrileeDelvalle969
 
Data classification sammer
Data classification sammer Data classification sammer
Data classification sammer Sammer Qader
 
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
 
biv_sssssssssssssssssssssssssssssssssssmult.ppt
biv_sssssssssssssssssssssssssssssssssssmult.pptbiv_sssssssssssssssssssssssssssssssssssmult.ppt
biv_sssssssssssssssssssssssssssssssssssmult.pptSAnjayKumar3129
 
Mixed Effects Models - Logit Models
Mixed Effects Models - Logit ModelsMixed Effects Models - Logit Models
Mixed Effects Models - Logit ModelsScott Fraundorf
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t testwajihahwafa
 

Similar to BLR1.pptx (20)

Applied statistics lecture_7
Applied statistics lecture_7Applied statistics lecture_7
Applied statistics lecture_7
 
Logistic-regression.pptx
Logistic-regression.pptxLogistic-regression.pptx
Logistic-regression.pptx
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
 
classification_methods-logistic regression Machine Learning
classification_methods-logistic regression Machine Learning classification_methods-logistic regression Machine Learning
classification_methods-logistic regression Machine Learning
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.air
 
Lecture 3 quantitative traits and heritability full
Lecture 3 quantitative traits and heritability fullLecture 3 quantitative traits and heritability full
Lecture 3 quantitative traits and heritability full
 
Foundations of Statistics in Ecology and Evolution. 8. Bayesian Statistics
Foundations of Statistics in Ecology and Evolution. 8. Bayesian StatisticsFoundations of Statistics in Ecology and Evolution. 8. Bayesian Statistics
Foundations of Statistics in Ecology and Evolution. 8. Bayesian Statistics
 
Biostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptBiostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.ppt
 
Topic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingTopic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis Testing
 
For this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The dFor this assignment, use the aschooltest.sav dataset.The d
For this assignment, use the aschooltest.sav dataset.The d
 
Data classification sammer
Data classification sammer Data classification sammer
Data classification sammer
 
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
 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
 
biv_mult.ppt
biv_mult.pptbiv_mult.ppt
biv_mult.ppt
 
biv_sssssssssssssssssssssssssssssssssssmult.ppt
biv_sssssssssssssssssssssssssssssssssssmult.pptbiv_sssssssssssssssssssssssssssssssssssmult.ppt
biv_sssssssssssssssssssssssssssssssssssmult.ppt
 
Mixed Effects Models - Logit Models
Mixed Effects Models - Logit ModelsMixed Effects Models - Logit Models
Mixed Effects Models - Logit Models
 
Machine Learning (Classification Models)
Machine Learning (Classification Models)Machine Learning (Classification Models)
Machine Learning (Classification Models)
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t test
 

Recently uploaded

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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
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
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
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"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

BLR1.pptx

  • 1. Binary logistic regression Part 1: Introduction Dr Heini Väisänen University of Southampton
  • 2. Outline • Binary response • Link functions • Logistic regression model • Parameter interpretation
  • 3. Binary response & regression models • Often in social science we are interested in relationships between categorical variables. • E.g. absence/presence of a disease, voting intention, Likert-scale… • This session introduces binary logistic regression, which can be used to study the association between: • A binary outcome (dependent) variable; and • Explanatory (independent) variable(s) of any kind
  • 4. Binary response & regression models • We have a binary (dichotomous) response variable Y defined as Y = 1 if “success” (“yes”) 0 if “failure” (“no”) • We want to model the probability Π that Y=1
  • 5. Why not linear regression? • Predicted values may lie outside the interval [0, 1]. • Assumption of constant variance is violated as variance depends on x through its influence on п.  var(ε) = пi(x)[1 – пi(x)]  Standard errors not valid, and conclusions from them misleading.
  • 6. Solution: Link Functions • Good news: we can keep пi (x) = β0 +β1x1i +β2x2i + … +βkxki • …if we model a transformation of пi: ηi = g(пi) = β0 +β1x1i +β2x2i + … +βkxki where g(.) is the link function.
  • 7. What is a ‘link function’? • We require a link transformation that ensures our fitted values vary between 0 and 1 1. The link function ensures that the expected value of the probability is between 0 and 1 2. When the linear prediction decreases, the probability goes closer to 0 3. When the linear prediction increases, the probability goes closer to 1
  • 8. Fig. source: https://commons.wikimedia.org/wiki/File:Logit.png Probability Predictor Logit link function  logistic regression Transformation: log[п/(1-п)] Fundamental concepts: • probability = п • odds = п/(1-п) • logit(п) = log(odds) = log[п/(1-п)]
  • 9. Characteristics of logits and probabilities 1. If Π = 0.5 then odds = 0.5/(1-0.5) = 1 and logit = log(1) = 0 2. If Π > 0.5, then Odds > 1 and logit > 0. 3. If Π < 0.5, then Odds < 1 and logit < 0. 4. Logit can take any values but Π is constrained between 0 and 1. 5. Π can never be exactly 0 or 1.
  • 10. Example: Birth Weights Is the probability of a normal birth weight, associated with gestational age? • Response: Birth weight (BWGHT: 1 = normal, 0 = low). • Explanatory: Gestational age in weeks (GAGE). • Low birthweight has been defined by WHO as weight at birth of less than 2,500 grams (5.5 pounds).
  • 11. Descriptive statistics: birth weight N % Normal birth weight 17 70.8 Low birth weight 7 29.2 Total 24 100.0
  • 12. Results: Birth Weights (example) • The fitted model with one explanatory variable gestational age (GAGE) is: 𝑙𝑜𝑔𝑖𝑡 Π = −48.9 + 1.31 ∗ 𝐺𝐴𝐺𝐸 • How is gestational age associated with low birth weight?
  • 13. Interpretation on logit scale • A unit increase in x1 increases the logit (log of the odds) by β1 units. • For a one week increase in gestational age the log of the odds of a normal birth weight increases by 1.31. 𝑙𝑜𝑔𝑖𝑡 Π = −48.9 + 1.31 ∗ 𝐺𝐴𝐺𝐸
  • 14. Interpretation on probability scale • Predicted probabilities can be computed for any value of GAGE. • For example, the estimated probability of a baby with gestational age 39 weeks having a normal birth weight is: 𝜋 = exp(−48.9 + 1.31 ∗ 39) 1 + exp(−48.9 + 1.31 ∗ 39) = 0.9 • The predicted probability of normal birth weight at week 39 is 0.9 (90%)
  • 15. Interpretation in the odds scale • The effects of explanatory variables are multiplicative on the odds scale. A unit increase in x1 multiplies the odds by exp(β1). • So, a one week increase in gestational age multiplies the odds of a normal birth by 3.71 [i.e. exp(1.31)]. • Alternatively, a one week increase in gestational age increases the odds of a normal birth weight by 100 × [3.71 - 1] = 271%
  • 16. How to report results? • For a one week increase in gestational age the log of the odds of a normal birth weight increases by 1.31. • The predicted probability of normal birth weight at week 36 was 0.15, whereas at week 39 it is 0.9. • Each additional week of gestation increased the odds of normal birth weight by 271%. • OR: Each additional week of gestation multiplied the odds of normal birth weight by 3.71. Absolute level of risk / Example at a specific value of X Rarely used (not intuitive) Relative level of risk / Applies to the entire scale of X

Editor's Notes

  1. We want to find a transformation of phi (the probability of success) such that we can express it as a linear function of the explanatory variables. In other words, in the equation of the model, we want to keep the part on the right-hand-side of the equality sign as it is in the linear regression, and we want to find an expression for what is on the left-hand side which allows us to write the model in this way.
  2. 1. Thus when the probability of an event happening is equal to the probability of the event not happening, the odds are one and the logit is zero. 2. Thus the logit is positive when the probability of an event happening is greater than the probability of the event not happening. 3. Thus the logit is negative when the probability of an event happening is smaller than the probability of the event not happening.
  3. In this table, the probability (pi) that a given individual in the dataset has Y=1 is equal to their proportion in the dataset. That’s what we want to model in logistic regression. The probability of Y=0 is 1-(p | y=1), bc Y can only be 0 or 1. Suppose we want to model the association between bw and gestational age. What should we do?