SlideShare une entreprise Scribd logo
1  sur  44
Will a patient live or die after being admitted to a
hospital?
I don’t Know
But this is an issue which will help me to understand
Logistic regression as it is the way that can be used to model
categorical outcomes such as this.
Logistic Regression Regression
Independent
Variable
Dependent
Variable
Example
Quantitative,
Qualitative
Qualitative
Quantitative,
Qualitative
Quantitative
Result (Pass, Fail) is
the function of time
given to study
Marks obtained is
the function of time
given to study
Binomial Distribution
Data Qualitative Data with two categories
Number of
Trials
Fixed or known
Relation
betweenTrials
Independent
Probability Constant Probability of Success & Failure
Marks
Study
Hours
Passing
Marks
Study
Hours
Result
Pass
Fail
Logistic RegressionRegression
What is Logistic Regression?
Probability Odd Ratio
Let there be 7 chances of success and 3 chances of failure
out of total 10 chances
Chances of event / Chances
of not Event
Chances of event / Total
Chances
.01
.1
.5
.6
.9
.99
1:99
1:9
1:1
3:2
9:1
99:1
Change the Given
Probabilities into Odd ratio
Probability Odd Ratio
Log Odd Ratio
Logit Ratio
Formula
Values
.01
.1
.5
.6
.9
.99
1:99
1:9
1:1
3:2
9:1
99:1
-4.59
-2.20
0
.41
2.20
4.59
Logistic RegressionTheory
Different Methods to Express Logistic Regression
Odd Ratio
Form
Logit form
Conditional
Probability
form
Formula
0to +∞Range -∞ to +∞0 to 1
.01
.1
.5
.6
.9
.99
1:99
1:9
1:1
3:2
9:1
99:1
-4.59
-2.20
0
.41
2.20
4.59
Values
0.0101
0.11
1
1.5
9
99
Logistic RegressionTheory
Male Female Total
Pass 45 25 70
Fail 5 25 30
Total 50 50 100
Male Female Total
Pass 45[.9]
Pass/Male
25 [.5]
Pass/Female
70 (.7)
Fail 5 [.1]
Fail/Male
25 [.5]
Fail/Female
30 (.3)
Total 50 (.5) 50 (.5) 100 (1)
ContingencyTable
ContingencyTable
with Conditional
Probabilities [ ]
Males have more
chances of passing
Male Female Total
Pass 45 25 70
Fail 5 25 30
Total 50 50 100
Odd Ratio
Male Female Total
Pass 45:5 25:25 70:30
Fail 5:45 25:25 30:70
Total 50 50 100
ContingencyTable
Odd Ratio
Males Have Better
Odd Ratio
Male Female Total
Pass 9:1 1:1 7:3
Fail 1:9 1:1 3:7
Total 50 50 100
Simplified Odd
Ratio
Male’s
Odd of
Passing
Female’s
Odd of
Passing
Male Female Total
Pass 9 1 2.33
Fail .111 1 .433
Total 50 50 100
Odd Ratio in
fraction
Relative Odd RatioRatio of Two
Odd Ratios
9/1 = 9
We are interested in the relationship between unemployment & Ethnic
Group for a sample of 18 years old.The following data is available
Ethnic Groups
White Black Total
1700 40 1740
112 8 120
1812 48 1860
Calculate
1. Conditional Probability of Being unemployed given each ethnic
Group
2. Odd ratio of being unemployed for both the Ethnic Groups
3. Simplified Odd ratios and Odd Ratios in numbers
4. Relative Odd Ratios
Conditional Probability for being Unemployed given each ethnic Group
Ethnic Groups
White Black Total
1700 40 1740
112 8 120
1812 48 1860
Ethnic Groups
White Black Total
1700/1812 40/48 1740
112/1812 8/48 120
1812/1812 48/48 1860
Ethnic Groups
White Black Total
.94 .83 1740
.06 .17 120
1 1 1860
Conditional Probability for being Unemployed given each ethnic Group
Odd Ratio for being Unemployed for each ethnic Group
Ethnic Groups
White Black Total
1700 40 1740
112 8 120
1812 48 1860
Ethnic Groups
White Black Total
1700:112 40:8 1740
112:1700 8:40 120
1812 48 1860
Ethnic Groups
White Black Total
15.2 5 1740
.066 .2 120
1812 48 1860
Odd Ratio for being Unemployed for each ethnic Group
Ethnic Groups
White Black Total
1700:112 40:8 1740
112:1700 8:40 120
1812 48 1860
Relative Odd Ratio for being Unemployed forWhite and Black
Relative Odd Ratio =
Odd Ratio of One Group for
Being Unemployed
Odd Ratio of the other Group
for Being Unemployed
= 0.33 to 1 = 3 to 1&
Logistic Example Manually &
Through SPSS
Ethnic Groups
White Black Total
90 30 120
19 33 52
109 63 172
Ethnic Groups
White Black Total
90 30 120
19 33 52
109 63 172
Ethnic Groups
White Black Total
0.83 0.48 120 (.7)
0.17 0.52 52 (.3)
109 (.63) 63 (.37) 172 (1)
Frequency Data
Conditional
Probability
Ethnic Groups
White Black Total
90 30 120
19 33 52
109 63 172
Frequency Data
Ethnic Groups
White Black Total
90:19 30:33 120
19:90 33:30 52
109 63 172
Odd Ratio
Ethnic Groups
White Black Total
4.73 0.91 120
0.21 1.1 52
109 63 172
Odd Ratio in
Fraction
White Having
Behavioral Problem
Black Having
Behavioral Problem
Conditional
Probability
Odd Ratio, Fraction
Relative Odd Ratio
Ln of Odd Ratio
0.17 0.52
19:90 = 0.21 33:30 = 1.1
0.192 to 1 5.21 to 1
-1.561 0.095
Logistic Equation
Ln(Odd Ratio) = -1.56 +1.65X
X = 0,
LnOR = -1.56
X = 1,
LnOR = 0.095
X = 0,
OR = 0.21
X = 1, OR = 1.1
0.17 0.52
compare the fit of
two models. How
well a model fits as
compared to the other.
-2Logliklihood
Lower theValue
better the fit of
Alternative
Chi Square
Test
Base Model is
better
Alternative is
better
Table showing how many
observations have been
predicted correctly
Both Models are
same
Proposed is better
Larger difference
is better
P < 0.05
Diagnosis of LR
Classification
Table
Difference between
the Base Model and
Proposed Model
Higher the correct prediction
the better
Likelihood Ratio Test
Based On
it checks whether the fuller model is better than the
base model.
What is it?
Loglikelihood function= -2loglikelihood
Measures the discrepancy between the observed and
predicted values
Interpretation
loglikelihood
Lower the value the better
Wald Test
Based On
Squared ratio between b1 and Sb1 , (b1/Sb1)2What is it?
Chi Square distribution at 1 df
Interpretation Larger value is significant
Measure of the Proportion of Variance
Based On
Measure of the proportion of variation explainedWhat is it?
Comparison of log-liklihood of the base and proposed model
Measures Cox & Snell’s R2 Nagelkerke’s R2
Interpretation
The higher the better (Value is between 0 & 1)
Does not attain 1 for
the perfect model
Attains1 for the perfect
model
The Hosmer-Lemeshow Goodness-of-Fit Test
Based On
What is it?
Interpretation Significant means the fit is bad
Interpreting the Logistic ModelModel
With one unit
increase in x
log(OR) of the
success will
increase by 1.3
units on average
Interpretation
Logit Odd Ratio Probability
With one unit
increase in x OR of
success will
increase by e1.3
units or by 3.67
units.
It gives the
probability of
success for a
particular value of x
Conducting Logistic Regression Using SPSS
Data Codes
Interpreting the Logistic ModelModelInterpretation
Logit
• Log of Odd ratio of being unemployed is -1.6 for the white
• Log of Odd Ratio of being unemployed decreases by 1.1 for
the Black
Interpreting the Logistic ModelModelInterpretation
Odd Ratio
• Odd ratio of being unemployed is 0.2 for the white
• Odd Ratio of being unemployed is 0.61
= 0.20
= 0.061
Logistic Regression with
Quantitative IndependentVariable
 We want to determine whether marks of
the students really determine the result
of the studetns
Logistic Regression
Logistic Regression
Logistic Regression
Logistic Regression

Contenu connexe

Tendances

Theory of estimation
Theory of estimationTheory of estimation
Theory of estimationTech_MX
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionVARUN KUMAR
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAileen Balbido
 
Principal component analysis and lda
Principal component analysis and ldaPrincipal component analysis and lda
Principal component analysis and ldaSuresh Pokharel
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statisticsewhite00
 
Sampling and sampling distributions
Sampling and sampling distributionsSampling and sampling distributions
Sampling and sampling distributionsShakeel Nouman
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionpankaj8108
 
Ppt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencePpt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencevasu Chemistry
 
MODULE 1_Introduction to Data analytics and life cycle..pptx
MODULE 1_Introduction to Data analytics and life cycle..pptxMODULE 1_Introduction to Data analytics and life cycle..pptx
MODULE 1_Introduction to Data analytics and life cycle..pptxnikshaikh786
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSSLNIPE
 
R Programming: Introduction To R Packages
R Programming: Introduction To R PackagesR Programming: Introduction To R Packages
R Programming: Introduction To R PackagesRsquared Academy
 

Tendances (20)

Theory of estimation
Theory of estimationTheory of estimation
Theory of estimation
 
Malhotra19
Malhotra19Malhotra19
Malhotra19
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
One way anova
One way anovaOne way anova
One way anova
 
Data Analysis Using Spss T Test
Data Analysis Using Spss   T TestData Analysis Using Spss   T Test
Data Analysis Using Spss T Test
 
Logistic regression analysis
Logistic regression analysisLogistic regression analysis
Logistic regression analysis
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
MANOVA SPSS
MANOVA SPSSMANOVA SPSS
MANOVA SPSS
 
Principal component analysis and lda
Principal component analysis and ldaPrincipal component analysis and lda
Principal component analysis and lda
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Sampling and sampling distributions
Sampling and sampling distributionsSampling and sampling distributions
Sampling and sampling distributions
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Manova Report
Manova ReportManova Report
Manova Report
 
Ppt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencePpt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inference
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
MODULE 1_Introduction to Data analytics and life cycle..pptx
MODULE 1_Introduction to Data analytics and life cycle..pptxMODULE 1_Introduction to Data analytics and life cycle..pptx
MODULE 1_Introduction to Data analytics and life cycle..pptx
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
R Programming: Introduction To R Packages
R Programming: Introduction To R PackagesR Programming: Introduction To R Packages
R Programming: Introduction To R Packages
 

En vedette

Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)MikeBlyth
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regressionA M
 
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
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionsaba khan
 
Intro to Logistic Regression
Intro to Logistic RegressionIntro to Logistic Regression
Intro to Logistic RegressionJay Victoria
 
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating Hyperplane
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating HyperplaneESL 4.4.3-4.5: Logistic Reression (contd.) and Separating Hyperplane
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating HyperplaneShinichi Tamura
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkDB Tsai
 
Technique Presentation
Technique PresentationTechnique Presentation
Technique PresentationElizabeth Rego
 
Anthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationAnthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationANTHONY KIMEU
 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airatutor_te
 
Logistic Regression in Sports Research
Logistic Regression in Sports ResearchLogistic Regression in Sports Research
Logistic Regression in Sports ResearchJ P Verma
 
Module5.slp
Module5.slpModule5.slp
Module5.slpGimylin
 
Boosted Tree-based Multinomial Logit Model for Aggregated Market Data
Boosted Tree-based Multinomial Logit Model for Aggregated Market DataBoosted Tree-based Multinomial Logit Model for Aggregated Market Data
Boosted Tree-based Multinomial Logit Model for Aggregated Market DataJay (Jianqiang) Wang
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsAnirudha si
 

En vedette (20)

Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
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
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Intro to Logistic Regression
Intro to Logistic RegressionIntro to Logistic Regression
Intro to Logistic Regression
 
Binary Logistic Regression Example
Binary Logistic Regression ExampleBinary Logistic Regression Example
Binary Logistic Regression Example
 
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating Hyperplane
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating HyperplaneESL 4.4.3-4.5: Logistic Reression (contd.) and Separating Hyperplane
ESL 4.4.3-4.5: Logistic Reression (contd.) and Separating Hyperplane
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
 
Multilevel Binary Logistic Regression
Multilevel Binary Logistic RegressionMultilevel Binary Logistic Regression
Multilevel Binary Logistic Regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
Logistic regression sage
Logistic regression sageLogistic regression sage
Logistic regression sage
 
Technique Presentation
Technique PresentationTechnique Presentation
Technique Presentation
 
Anthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_PresentationAnthony_Kimeu_Geospat_Presentation
Anthony_Kimeu_Geospat_Presentation
 
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 in Sports Research
Logistic Regression in Sports ResearchLogistic Regression in Sports Research
Logistic Regression in Sports Research
 
Module5.slp
Module5.slpModule5.slp
Module5.slp
 
Boosted Tree-based Multinomial Logit Model for Aggregated Market Data
Boosted Tree-based Multinomial Logit Model for Aggregated Market DataBoosted Tree-based Multinomial Logit Model for Aggregated Market Data
Boosted Tree-based Multinomial Logit Model for Aggregated Market Data
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
 

Similaire à Hospital Patient Outcome Prediction Using Logistic Regression

Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...
Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...
Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...Shamir Montazid
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learningSadia Zafar
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithmsAkhil Kaushik
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDouglas Joubert
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar SemwalIIIT Allahabad
 
Data DistributionM (1).pptx
Data DistributionM (1).pptxData DistributionM (1).pptx
Data DistributionM (1).pptxhodakamal6
 
Spss cross tab n chi sq bivariate analysis
Spss  cross tab n chi sq bivariate analysisSpss  cross tab n chi sq bivariate analysis
Spss cross tab n chi sq bivariate analysisRaja Azrul Raja Ahmad
 
Neutral theory 2019
Neutral theory 2019Neutral theory 2019
Neutral theory 2019RanajitDas12
 
Chp11 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp11  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp11  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp11 - Research Methods for Business By Authors Uma Sekaran and Roger BougieHassan Usman
 
Table 2Survival Status Disease SeverityDon.docx
Table 2Survival Status      Disease         SeverityDon.docxTable 2Survival Status      Disease         SeverityDon.docx
Table 2Survival Status Disease SeverityDon.docxperryk1
 
3D PRINTING FOR PHARMACEUTICAL MANUFACTURING
3D PRINTING FOR PHARMACEUTICAL MANUFACTURING3D PRINTING FOR PHARMACEUTICAL MANUFACTURING
3D PRINTING FOR PHARMACEUTICAL MANUFACTURINGJiwaRaone
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalAnggi Andriyadi
 
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docx
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docxSummer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docx
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docxpicklesvalery
 
p. 1Lab 6 Population Genetics Hardy-Weinberg TheoremOBJEC.docx
p. 1Lab 6 Population Genetics  Hardy-Weinberg TheoremOBJEC.docxp. 1Lab 6 Population Genetics  Hardy-Weinberg TheoremOBJEC.docx
p. 1Lab 6 Population Genetics Hardy-Weinberg TheoremOBJEC.docxalfred4lewis58146
 

Similaire à Hospital Patient Outcome Prediction Using Logistic Regression (20)

Logistic regression teaching
Logistic regression teachingLogistic regression teaching
Logistic regression teaching
 
Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...
Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...
Importance of X-STR Linkage Groups in the Establishment of Maternal Relatedne...
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data Visualization
 
Statistics excellent
Statistics excellentStatistics excellent
Statistics excellent
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
 
Chapter12
Chapter12Chapter12
Chapter12
 
Data DistributionM (1).pptx
Data DistributionM (1).pptxData DistributionM (1).pptx
Data DistributionM (1).pptx
 
Spss cross tab n chi sq bivariate analysis
Spss  cross tab n chi sq bivariate analysisSpss  cross tab n chi sq bivariate analysis
Spss cross tab n chi sq bivariate analysis
 
Chi square
Chi squareChi square
Chi square
 
Chi square test
Chi square testChi square test
Chi square test
 
Neutral theory 2019
Neutral theory 2019Neutral theory 2019
Neutral theory 2019
 
Chp11 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp11  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp11  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp11 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
 
Table 2Survival Status Disease SeverityDon.docx
Table 2Survival Status      Disease         SeverityDon.docxTable 2Survival Status      Disease         SeverityDon.docx
Table 2Survival Status Disease SeverityDon.docx
 
ECONOMETRICS I ASA
ECONOMETRICS I ASAECONOMETRICS I ASA
ECONOMETRICS I ASA
 
3D PRINTING FOR PHARMACEUTICAL MANUFACTURING
3D PRINTING FOR PHARMACEUTICAL MANUFACTURING3D PRINTING FOR PHARMACEUTICAL MANUFACTURING
3D PRINTING FOR PHARMACEUTICAL MANUFACTURING
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm Fundamental
 
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docx
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docxSummer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docx
Summer (June) 2017BIA2610Exam 1Multiple Choice, Questions 1-.docx
 
p. 1Lab 6 Population Genetics Hardy-Weinberg TheoremOBJEC.docx
p. 1Lab 6 Population Genetics  Hardy-Weinberg TheoremOBJEC.docxp. 1Lab 6 Population Genetics  Hardy-Weinberg TheoremOBJEC.docx
p. 1Lab 6 Population Genetics Hardy-Weinberg TheoremOBJEC.docx
 

Plus de Pakistan Gum Industries Pvt. Ltd (20)

Transportation management
Transportation  managementTransportation  management
Transportation management
 
Anum alam initial pages. 090
Anum alam initial pages. 090Anum alam initial pages. 090
Anum alam initial pages. 090
 
Airlineres
AirlineresAirlineres
Airlineres
 
Farehalet
FarehaletFarehalet
Farehalet
 
Cv ali final
Cv ali finalCv ali final
Cv ali final
 
Ali hasan
Ali hasanAli hasan
Ali hasan
 
(Resume) tariq pervez
(Resume) tariq pervez(Resume) tariq pervez
(Resume) tariq pervez
 
Graded businessvocabularylist
Graded businessvocabularylistGraded businessvocabularylist
Graded businessvocabularylist
 
Vacation accrued
Vacation accruedVacation accrued
Vacation accrued
 
Sick time
Sick timeSick time
Sick time
 
Blank employee letter
Blank employee letterBlank employee letter
Blank employee letter
 
Mobile advertising final
Mobile advertising finalMobile advertising final
Mobile advertising final
 
Introduction
IntroductionIntroduction
Introduction
 
Final iran
Final iranFinal iran
Final iran
 
Saudi arabia
Saudi arabiaSaudi arabia
Saudi arabia
 
The united nations security council
The united nations security councilThe united nations security council
The united nations security council
 
Presentation 6
Presentation 6Presentation 6
Presentation 6
 
Paper saad niazi
Paper saad niaziPaper saad niazi
Paper saad niazi
 
History of e bay in china
History of e bay in chinaHistory of e bay in china
History of e bay in china
 
Case 1
Case 1Case 1
Case 1
 

Dernier

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 

Dernier (20)

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 

Hospital Patient Outcome Prediction Using Logistic Regression

  • 1.
  • 2. Will a patient live or die after being admitted to a hospital? I don’t Know But this is an issue which will help me to understand Logistic regression as it is the way that can be used to model categorical outcomes such as this.
  • 3.
  • 4. Logistic Regression Regression Independent Variable Dependent Variable Example Quantitative, Qualitative Qualitative Quantitative, Qualitative Quantitative Result (Pass, Fail) is the function of time given to study Marks obtained is the function of time given to study
  • 5. Binomial Distribution Data Qualitative Data with two categories Number of Trials Fixed or known Relation betweenTrials Independent Probability Constant Probability of Success & Failure
  • 7. What is Logistic Regression?
  • 8. Probability Odd Ratio Let there be 7 chances of success and 3 chances of failure out of total 10 chances Chances of event / Chances of not Event Chances of event / Total Chances .01 .1 .5 .6 .9 .99 1:99 1:9 1:1 3:2 9:1 99:1 Change the Given Probabilities into Odd ratio
  • 9. Probability Odd Ratio Log Odd Ratio Logit Ratio Formula Values .01 .1 .5 .6 .9 .99 1:99 1:9 1:1 3:2 9:1 99:1 -4.59 -2.20 0 .41 2.20 4.59
  • 10.
  • 11.
  • 13. Different Methods to Express Logistic Regression Odd Ratio Form Logit form Conditional Probability form Formula 0to +∞Range -∞ to +∞0 to 1 .01 .1 .5 .6 .9 .99 1:99 1:9 1:1 3:2 9:1 99:1 -4.59 -2.20 0 .41 2.20 4.59 Values 0.0101 0.11 1 1.5 9 99
  • 14. Logistic RegressionTheory Male Female Total Pass 45 25 70 Fail 5 25 30 Total 50 50 100 Male Female Total Pass 45[.9] Pass/Male 25 [.5] Pass/Female 70 (.7) Fail 5 [.1] Fail/Male 25 [.5] Fail/Female 30 (.3) Total 50 (.5) 50 (.5) 100 (1) ContingencyTable ContingencyTable with Conditional Probabilities [ ] Males have more chances of passing
  • 15. Male Female Total Pass 45 25 70 Fail 5 25 30 Total 50 50 100 Odd Ratio Male Female Total Pass 45:5 25:25 70:30 Fail 5:45 25:25 30:70 Total 50 50 100 ContingencyTable Odd Ratio Males Have Better Odd Ratio Male Female Total Pass 9:1 1:1 7:3 Fail 1:9 1:1 3:7 Total 50 50 100 Simplified Odd Ratio Male’s Odd of Passing Female’s Odd of Passing
  • 16. Male Female Total Pass 9 1 2.33 Fail .111 1 .433 Total 50 50 100 Odd Ratio in fraction Relative Odd RatioRatio of Two Odd Ratios 9/1 = 9
  • 17. We are interested in the relationship between unemployment & Ethnic Group for a sample of 18 years old.The following data is available Ethnic Groups White Black Total 1700 40 1740 112 8 120 1812 48 1860 Calculate 1. Conditional Probability of Being unemployed given each ethnic Group 2. Odd ratio of being unemployed for both the Ethnic Groups 3. Simplified Odd ratios and Odd Ratios in numbers 4. Relative Odd Ratios
  • 18. Conditional Probability for being Unemployed given each ethnic Group Ethnic Groups White Black Total 1700 40 1740 112 8 120 1812 48 1860 Ethnic Groups White Black Total 1700/1812 40/48 1740 112/1812 8/48 120 1812/1812 48/48 1860
  • 19. Ethnic Groups White Black Total .94 .83 1740 .06 .17 120 1 1 1860 Conditional Probability for being Unemployed given each ethnic Group
  • 20. Odd Ratio for being Unemployed for each ethnic Group Ethnic Groups White Black Total 1700 40 1740 112 8 120 1812 48 1860 Ethnic Groups White Black Total 1700:112 40:8 1740 112:1700 8:40 120 1812 48 1860
  • 21. Ethnic Groups White Black Total 15.2 5 1740 .066 .2 120 1812 48 1860 Odd Ratio for being Unemployed for each ethnic Group Ethnic Groups White Black Total 1700:112 40:8 1740 112:1700 8:40 120 1812 48 1860
  • 22. Relative Odd Ratio for being Unemployed forWhite and Black Relative Odd Ratio = Odd Ratio of One Group for Being Unemployed Odd Ratio of the other Group for Being Unemployed = 0.33 to 1 = 3 to 1&
  • 23. Logistic Example Manually & Through SPSS Ethnic Groups White Black Total 90 30 120 19 33 52 109 63 172
  • 24. Ethnic Groups White Black Total 90 30 120 19 33 52 109 63 172 Ethnic Groups White Black Total 0.83 0.48 120 (.7) 0.17 0.52 52 (.3) 109 (.63) 63 (.37) 172 (1) Frequency Data Conditional Probability
  • 25. Ethnic Groups White Black Total 90 30 120 19 33 52 109 63 172 Frequency Data Ethnic Groups White Black Total 90:19 30:33 120 19:90 33:30 52 109 63 172 Odd Ratio Ethnic Groups White Black Total 4.73 0.91 120 0.21 1.1 52 109 63 172 Odd Ratio in Fraction
  • 26. White Having Behavioral Problem Black Having Behavioral Problem Conditional Probability Odd Ratio, Fraction Relative Odd Ratio Ln of Odd Ratio 0.17 0.52 19:90 = 0.21 33:30 = 1.1 0.192 to 1 5.21 to 1 -1.561 0.095 Logistic Equation Ln(Odd Ratio) = -1.56 +1.65X X = 0, LnOR = -1.56 X = 1, LnOR = 0.095 X = 0, OR = 0.21 X = 1, OR = 1.1 0.17 0.52
  • 27.
  • 28. compare the fit of two models. How well a model fits as compared to the other. -2Logliklihood Lower theValue better the fit of Alternative Chi Square Test Base Model is better Alternative is better Table showing how many observations have been predicted correctly Both Models are same Proposed is better Larger difference is better P < 0.05 Diagnosis of LR Classification Table Difference between the Base Model and Proposed Model Higher the correct prediction the better
  • 29. Likelihood Ratio Test Based On it checks whether the fuller model is better than the base model. What is it? Loglikelihood function= -2loglikelihood Measures the discrepancy between the observed and predicted values Interpretation loglikelihood Lower the value the better
  • 30. Wald Test Based On Squared ratio between b1 and Sb1 , (b1/Sb1)2What is it? Chi Square distribution at 1 df Interpretation Larger value is significant
  • 31. Measure of the Proportion of Variance Based On Measure of the proportion of variation explainedWhat is it? Comparison of log-liklihood of the base and proposed model Measures Cox & Snell’s R2 Nagelkerke’s R2 Interpretation The higher the better (Value is between 0 & 1) Does not attain 1 for the perfect model Attains1 for the perfect model
  • 32. The Hosmer-Lemeshow Goodness-of-Fit Test Based On What is it? Interpretation Significant means the fit is bad
  • 33. Interpreting the Logistic ModelModel With one unit increase in x log(OR) of the success will increase by 1.3 units on average Interpretation Logit Odd Ratio Probability With one unit increase in x OR of success will increase by e1.3 units or by 3.67 units. It gives the probability of success for a particular value of x
  • 36.
  • 37.
  • 38. Interpreting the Logistic ModelModelInterpretation Logit • Log of Odd ratio of being unemployed is -1.6 for the white • Log of Odd Ratio of being unemployed decreases by 1.1 for the Black
  • 39. Interpreting the Logistic ModelModelInterpretation Odd Ratio • Odd ratio of being unemployed is 0.2 for the white • Odd Ratio of being unemployed is 0.61 = 0.20 = 0.061
  • 40. Logistic Regression with Quantitative IndependentVariable  We want to determine whether marks of the students really determine the result of the studetns