SlideShare a Scribd company logo
1 of 15
Predicting Who Will Die
Presentation by: Matthew Dunning
Objective of work
• The objective of this work is to identify the probability of death based on
the diagnosis, medical history, category of diagnosis and reoccurring
diagnoses.
• I used Bayes Theorem to in order to solve for likelihood ratio, probability,
sensitivity and specificity.
• This work is important in order to make evidence based decisions on patient
ids that need more attention/follow up if they are alive, and if dead, use the
data to help understand the effects of these diseases.
Data & It’s Source
• In the original data
source, there are
17443442 rows of
data.
• Sorting by count of
icd9 desc, you would
have a left skewed.
Without sort, the
distribution would
be “all jumbled up”
0
100000
200000
300000
400000
500000
600000
700000
800000
900000
1000000
I401.9
I272.4
I305.1
I530.81
I496.
I309.81
I414.01
I311.
I427.31
I428.0
I600.00
I584.9
I285.9
I303.90
IV60.0
IV62.84
I403.90
I244.9
I724.2
I250.00
I303.91
I599.0
I070.54
I414.00
I338.29
I327.23
I585.9
I491.21
I486.
IV58.61
IV45.81
I300.00
I276.8
I786.59
I070.70
I291.81
I564.00
I305.00
I276.1
IV15.81
IV62.0
I296.80
I278.00
IV15.82
IV45.82
I443.9
IV57.89
I276.51
I427.89
I715.90
ICD9Count
ICD9 Code
Count of ICD9, Top 50
Preparation of the Data
Remove Cases
Where Patients
Died Before Visit
17443442 to
17439892 rows of
id,icd9
Original Data
Remove cases in a
year that exceed
365
17443442 rows
id, icd9
829801 to 828616
id’s
Final Data to use for
analysis
15715093 rows id, icd9
Randomization
• 80% of data was used for training
• 20% of data was used for validation
Calculation of Likelihood Ratios
LR = _______________________________________DeadwithDx/Dead
AlivewithDx/Alive
Top Ten Deadliest Diseases – Each Dx from
Training Set
1. Brain Death
2. Malignant Ascites
3. Malignant Neoplasm of bilary tract
4. Encounter for palliative care
5. Cardiac Arrest
6. Coma
7. Malignant Pleural Effusion
8. Secondary Malignant Neoplasm of Adrenal Gland
9. Disseminated Malignant Neoplasm without specification
of site
10. Secondary Malignant Neoplasm of brain and spinal cord
icd9 LR
I348.82 11.78
I789.51 5.53
I156.9 5.04
IV66.7 4.95
I427.5 4.85
I780.01 4.75
I511.81 4.62
I198.7 4.45
I199.0 4.42
I198.3 4.35
Least Ten Deadliest Diseases – Each Dx from
Training Set
1. Dysmenorrhea
2. Chondromalacia of patella
3. Hypertrophy of tonsils alone
4. Personal History of injury presenting hazards to health
5. Schizophrenic disorders, residual type, chronic with acute
exacerbation
6. Unspecified symptom associated with female genital organs
7. Pelvic peritoneal adhesions, female (postoperative)(post infection)
8. Cervicitis and endocervicitis
9. Migraine without aura, without mention of intractable migraine
without mention of status migrainosus
10. Amphetamine or related acting sympathomimetic abuse, episodic
icd9 LR
I625.3 0.0009
I717.7 0.001
I474.11 0.002
IV15.5 0.002
I295.64 0.002
I625.9 0.002
I614.6 0.003
I616.0 0.004
I346.10 0.004
I305.72 0.004
How medical history can be used to predict
prognosis
• Medical history can be used to predict future prognosis because it can be
used to look into probabilities of developing another medical condition,
developing the medical condition again X amount of times and your chances
of death within a certain timespan.
id icd9 ageatdx ageatdeath odds prob
463305 I529.4 63.5 NULL 9.646010674 0.906068101
463305 I300.00 64.333333 NULL 0.479591875 0.324137949
463305 I528.9 64.333333 NULL 0.441291616 0.306177883
463305 I528.9 60.416666 NULL 0.435537554 0.303396838
463305 I714.0 62.666666 NULL 0.330190365 0.248227903
463305 I300.00 60.083333 NULL 0.29491929 0.227751098
463305 I530.81 66.416666 NULL 0.260475898 0.206648853
463305 I401.9 62.916666 NULL 0.257884965 0.205014745
463305 I300.00 64.083333 NULL 0.255498056 0.203503346
463305 I401.9 60.166666 NULL 0.23220788 0.188448624
463305 I530.81 63 NULL 0.229879244 0.186912045
463305 I311. 64.083333 NULL 0.219384003 0.179913795
463305 IV15.81 62.916666 NULL 0.217714068 0.178789154
463305 I300.01 60.083333 NULL 0.131771237 0.116429215
463305 I278.00 60.166666 NULL 0.109584144 0.098761454
463305 I278.00 66.416666 NULL 0.107392413 0.09697774
463305 I296.7 63 NULL 0.099679257 0.090643936
463305 I296.7 63.583333 NULL 0.098795268 0.089912353
463305 I306.9 63 NULL 0.070926549 0.066229144
463305 I306.9 63.583333 NULL 0.06561912 0.0615784
463305 I296.50 63.5 NULL 0.062146048 0.05850989
463305 IV62.4 63 NULL 0.048503436 0.046259683
463305 IV62.0 62.916666 NULL 0.029597396 0.028746573
0
0.2
0.4
0.6
0.8
1
1.2
00.20.40.60.811.2
Sensitivity
Specificity
Sensitivity vs Specificity
Accuracy of the prediction
• I used the formula: Accuracy = (TN+TP)/(TN+TP+FN+FP)
Probability Sensitivity Specificity Accuracy
0 1 0 50%
0.2 0.738 0.493 62%
0.4 0.3033 0.86 58%
0.8 0.01206 0.997 50%
0.9 0.00001084 0.9999 50%
0.95 4.0669E-06 1 50%
1 0 1 50%
• Sensitivity – among patients with a
disease, the probability of a positive test
• Specificity – Among patients without
disease, the probability of a negative
test
Contingency Table
Dead Alive Total
Yes 23 14 47
No 141089 680473 821562
Total 141112 680487 821609
Usefulness of the Project
• The usefulness of the project to others is that hospitals can focus more time to
these patients which may result in a delay of death or an increase in patient
satisfaction.
• Researchers can use this project to better understand trends and stages of different
icd9’s, i.e: why there is such a high odds/probability or low odds/probability
associated with the corresponding id.
• For me, it gave me some insight on how to apply Bayes Theorem (statistical
processes) to a big dataset and how to use different functions within SQL to
complete the desired tasks.

More Related Content

Similar to Predicting Who Will Die Within Six Months

1 Statistical analysis HypothesisAs mentio
1  Statistical analysis  HypothesisAs mentio1  Statistical analysis  HypothesisAs mentio
1 Statistical analysis HypothesisAs mentioMartineMccracken314
 
1 Statistical analysis HypothesisAs mentio
1  Statistical analysis  HypothesisAs mentio1  Statistical analysis  HypothesisAs mentio
1 Statistical analysis HypothesisAs mentioAbbyWhyte974
 
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...Bhoj Raj Singh
 
Chapter 3 Experimental Errors Statistics
Chapter 3 Experimental Errors  StatisticsChapter 3 Experimental Errors  Statistics
Chapter 3 Experimental Errors Statisticswanafif8
 
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...Stefanie Haustein
 
Aristotle presenter-wallentin-slides
Aristotle presenter-wallentin-slidesAristotle presenter-wallentin-slides
Aristotle presenter-wallentin-slidesAlejandro Panaro
 
4. Update on non-invasive prenatal testing
4. Update on non-invasive prenatal testing4. Update on non-invasive prenatal testing
4. Update on non-invasive prenatal testingPHEScreening
 
Covid19 and its effect on some social phenomena
 Covid19  and its effect on some social phenomena Covid19  and its effect on some social phenomena
Covid19 and its effect on some social phenomenamustaphabamou
 
PPT Bonora "Clinica e terapia dell'HIV"
PPT Bonora "Clinica e terapia dell'HIV"PPT Bonora "Clinica e terapia dell'HIV"
PPT Bonora "Clinica e terapia dell'HIV"StopTb Italia
 

Similar to Predicting Who Will Die Within Six Months (12)

1 Statistical analysis HypothesisAs mentio
1  Statistical analysis  HypothesisAs mentio1  Statistical analysis  HypothesisAs mentio
1 Statistical analysis HypothesisAs mentio
 
1 Statistical analysis HypothesisAs mentio
1  Statistical analysis  HypothesisAs mentio1  Statistical analysis  HypothesisAs mentio
1 Statistical analysis HypothesisAs mentio
 
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...
Impact of covid 19 vaccination on reduction of covid-19 cases and deaths duri...
 
Chapter 3 Experimental Errors Statistics
Chapter 3 Experimental Errors  StatisticsChapter 3 Experimental Errors  Statistics
Chapter 3 Experimental Errors Statistics
 
 
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...
Mendeley as a Source of Readership by Students and Postdocs? Evaluating Ar...
 
Salud Mesoamérica 2015 Initiative: Select results from the first operation me...
Salud Mesoamérica 2015 Initiative: Select results from the first operation me...Salud Mesoamérica 2015 Initiative: Select results from the first operation me...
Salud Mesoamérica 2015 Initiative: Select results from the first operation me...
 
Aristotle presenter-wallentin-slides
Aristotle presenter-wallentin-slidesAristotle presenter-wallentin-slides
Aristotle presenter-wallentin-slides
 
Unidad ii medical equipment
Unidad ii medical equipmentUnidad ii medical equipment
Unidad ii medical equipment
 
4. Update on non-invasive prenatal testing
4. Update on non-invasive prenatal testing4. Update on non-invasive prenatal testing
4. Update on non-invasive prenatal testing
 
Covid19 and its effect on some social phenomena
 Covid19  and its effect on some social phenomena Covid19  and its effect on some social phenomena
Covid19 and its effect on some social phenomena
 
PPT Bonora "Clinica e terapia dell'HIV"
PPT Bonora "Clinica e terapia dell'HIV"PPT Bonora "Clinica e terapia dell'HIV"
PPT Bonora "Clinica e terapia dell'HIV"
 

More from Matthew Dunning

Ms powerpoint certificate_Dunning
Ms powerpoint certificate_DunningMs powerpoint certificate_Dunning
Ms powerpoint certificate_DunningMatthew Dunning
 
Data Breaches: Electronic Medical Records
Data Breaches: Electronic Medical RecordsData Breaches: Electronic Medical Records
Data Breaches: Electronic Medical RecordsMatthew Dunning
 
Integration of Behavioral and Primary Care
Integration of Behavioral and Primary CareIntegration of Behavioral and Primary Care
Integration of Behavioral and Primary CareMatthew Dunning
 
Tablet Driven Paradigm for Hybrid Reality Surgery Interaction
Tablet Driven Paradigm for Hybrid Reality Surgery InteractionTablet Driven Paradigm for Hybrid Reality Surgery Interaction
Tablet Driven Paradigm for Hybrid Reality Surgery InteractionMatthew Dunning
 
Enhancement of bone fracture image using filtering techniques
Enhancement of bone fracture image using filtering techniquesEnhancement of bone fracture image using filtering techniques
Enhancement of bone fracture image using filtering techniquesMatthew Dunning
 
Nanotechnology Paper - Prostate Cancer
Nanotechnology Paper - Prostate CancerNanotechnology Paper - Prostate Cancer
Nanotechnology Paper - Prostate CancerMatthew Dunning
 
Beng 420 Project, Prostate Cancer
Beng 420 Project, Prostate CancerBeng 420 Project, Prostate Cancer
Beng 420 Project, Prostate CancerMatthew Dunning
 

More from Matthew Dunning (8)

Ms powerpoint certificate_Dunning
Ms powerpoint certificate_DunningMs powerpoint certificate_Dunning
Ms powerpoint certificate_Dunning
 
Detection of Arrhythmia
Detection of ArrhythmiaDetection of Arrhythmia
Detection of Arrhythmia
 
Data Breaches: Electronic Medical Records
Data Breaches: Electronic Medical RecordsData Breaches: Electronic Medical Records
Data Breaches: Electronic Medical Records
 
Integration of Behavioral and Primary Care
Integration of Behavioral and Primary CareIntegration of Behavioral and Primary Care
Integration of Behavioral and Primary Care
 
Tablet Driven Paradigm for Hybrid Reality Surgery Interaction
Tablet Driven Paradigm for Hybrid Reality Surgery InteractionTablet Driven Paradigm for Hybrid Reality Surgery Interaction
Tablet Driven Paradigm for Hybrid Reality Surgery Interaction
 
Enhancement of bone fracture image using filtering techniques
Enhancement of bone fracture image using filtering techniquesEnhancement of bone fracture image using filtering techniques
Enhancement of bone fracture image using filtering techniques
 
Nanotechnology Paper - Prostate Cancer
Nanotechnology Paper - Prostate CancerNanotechnology Paper - Prostate Cancer
Nanotechnology Paper - Prostate Cancer
 
Beng 420 Project, Prostate Cancer
Beng 420 Project, Prostate CancerBeng 420 Project, Prostate Cancer
Beng 420 Project, Prostate Cancer
 

Recently uploaded

Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...mahaiklolahd
 
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMuzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetTirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Sheetaleventcompany
 
Jaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthan
Jaipur Call Girls 9257276172 Call Girl in Jaipur RajasthanJaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthan
Jaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthanindiancallgirl4rent
 
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetbhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetbhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Sheetaleventcompany
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Chandigarh
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetdhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...Ahmedabad Call Girls
 
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Memriyagarg453
 
Call Girls in Udaipur Girija Udaipur Call Girl ✔ VQRWTO ❤️ 100% offer with...
Call Girls in Udaipur  Girija  Udaipur Call Girl  ✔ VQRWTO ❤️ 100% offer with...Call Girls in Udaipur  Girija  Udaipur Call Girl  ✔ VQRWTO ❤️ 100% offer with...
Call Girls in Udaipur Girija Udaipur Call Girl ✔ VQRWTO ❤️ 100% offer with...mahaiklolahd
 
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near MeRussian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Memriyagarg453
 
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetNanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetRajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...chandigarhentertainm
 
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetkochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 

Recently uploaded (20)

Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
 
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMuzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetTirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024
 
Jaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthan
Jaipur Call Girls 9257276172 Call Girl in Jaipur RajasthanJaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthan
Jaipur Call Girls 9257276172 Call Girl in Jaipur Rajasthan
 
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetbhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhopal Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetbhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
bhubaneswar Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetdhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
dhanbad Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
 
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
 
Call Girls in Udaipur Girija Udaipur Call Girl ✔ VQRWTO ❤️ 100% offer with...
Call Girls in Udaipur  Girija  Udaipur Call Girl  ✔ VQRWTO ❤️ 100% offer with...Call Girls in Udaipur  Girija  Udaipur Call Girl  ✔ VQRWTO ❤️ 100% offer with...
Call Girls in Udaipur Girija Udaipur Call Girl ✔ VQRWTO ❤️ 100% offer with...
 
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near MeRussian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
 
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetNanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Nanded Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetRajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Rajkot Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
 
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetkochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kochi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 

Predicting Who Will Die Within Six Months

  • 1. Predicting Who Will Die Presentation by: Matthew Dunning
  • 2.
  • 3. Objective of work • The objective of this work is to identify the probability of death based on the diagnosis, medical history, category of diagnosis and reoccurring diagnoses. • I used Bayes Theorem to in order to solve for likelihood ratio, probability, sensitivity and specificity. • This work is important in order to make evidence based decisions on patient ids that need more attention/follow up if they are alive, and if dead, use the data to help understand the effects of these diseases.
  • 4. Data & It’s Source • In the original data source, there are 17443442 rows of data. • Sorting by count of icd9 desc, you would have a left skewed. Without sort, the distribution would be “all jumbled up” 0 100000 200000 300000 400000 500000 600000 700000 800000 900000 1000000 I401.9 I272.4 I305.1 I530.81 I496. I309.81 I414.01 I311. I427.31 I428.0 I600.00 I584.9 I285.9 I303.90 IV60.0 IV62.84 I403.90 I244.9 I724.2 I250.00 I303.91 I599.0 I070.54 I414.00 I338.29 I327.23 I585.9 I491.21 I486. IV58.61 IV45.81 I300.00 I276.8 I786.59 I070.70 I291.81 I564.00 I305.00 I276.1 IV15.81 IV62.0 I296.80 I278.00 IV15.82 IV45.82 I443.9 IV57.89 I276.51 I427.89 I715.90 ICD9Count ICD9 Code Count of ICD9, Top 50
  • 5. Preparation of the Data Remove Cases Where Patients Died Before Visit 17443442 to 17439892 rows of id,icd9 Original Data Remove cases in a year that exceed 365 17443442 rows id, icd9 829801 to 828616 id’s Final Data to use for analysis 15715093 rows id, icd9
  • 6. Randomization • 80% of data was used for training • 20% of data was used for validation
  • 7. Calculation of Likelihood Ratios LR = _______________________________________DeadwithDx/Dead AlivewithDx/Alive
  • 8. Top Ten Deadliest Diseases – Each Dx from Training Set 1. Brain Death 2. Malignant Ascites 3. Malignant Neoplasm of bilary tract 4. Encounter for palliative care 5. Cardiac Arrest 6. Coma 7. Malignant Pleural Effusion 8. Secondary Malignant Neoplasm of Adrenal Gland 9. Disseminated Malignant Neoplasm without specification of site 10. Secondary Malignant Neoplasm of brain and spinal cord icd9 LR I348.82 11.78 I789.51 5.53 I156.9 5.04 IV66.7 4.95 I427.5 4.85 I780.01 4.75 I511.81 4.62 I198.7 4.45 I199.0 4.42 I198.3 4.35
  • 9. Least Ten Deadliest Diseases – Each Dx from Training Set 1. Dysmenorrhea 2. Chondromalacia of patella 3. Hypertrophy of tonsils alone 4. Personal History of injury presenting hazards to health 5. Schizophrenic disorders, residual type, chronic with acute exacerbation 6. Unspecified symptom associated with female genital organs 7. Pelvic peritoneal adhesions, female (postoperative)(post infection) 8. Cervicitis and endocervicitis 9. Migraine without aura, without mention of intractable migraine without mention of status migrainosus 10. Amphetamine or related acting sympathomimetic abuse, episodic icd9 LR I625.3 0.0009 I717.7 0.001 I474.11 0.002 IV15.5 0.002 I295.64 0.002 I625.9 0.002 I614.6 0.003 I616.0 0.004 I346.10 0.004 I305.72 0.004
  • 10. How medical history can be used to predict prognosis • Medical history can be used to predict future prognosis because it can be used to look into probabilities of developing another medical condition, developing the medical condition again X amount of times and your chances of death within a certain timespan.
  • 11. id icd9 ageatdx ageatdeath odds prob 463305 I529.4 63.5 NULL 9.646010674 0.906068101 463305 I300.00 64.333333 NULL 0.479591875 0.324137949 463305 I528.9 64.333333 NULL 0.441291616 0.306177883 463305 I528.9 60.416666 NULL 0.435537554 0.303396838 463305 I714.0 62.666666 NULL 0.330190365 0.248227903 463305 I300.00 60.083333 NULL 0.29491929 0.227751098 463305 I530.81 66.416666 NULL 0.260475898 0.206648853 463305 I401.9 62.916666 NULL 0.257884965 0.205014745 463305 I300.00 64.083333 NULL 0.255498056 0.203503346 463305 I401.9 60.166666 NULL 0.23220788 0.188448624 463305 I530.81 63 NULL 0.229879244 0.186912045 463305 I311. 64.083333 NULL 0.219384003 0.179913795 463305 IV15.81 62.916666 NULL 0.217714068 0.178789154 463305 I300.01 60.083333 NULL 0.131771237 0.116429215 463305 I278.00 60.166666 NULL 0.109584144 0.098761454 463305 I278.00 66.416666 NULL 0.107392413 0.09697774 463305 I296.7 63 NULL 0.099679257 0.090643936 463305 I296.7 63.583333 NULL 0.098795268 0.089912353 463305 I306.9 63 NULL 0.070926549 0.066229144 463305 I306.9 63.583333 NULL 0.06561912 0.0615784 463305 I296.50 63.5 NULL 0.062146048 0.05850989 463305 IV62.4 63 NULL 0.048503436 0.046259683 463305 IV62.0 62.916666 NULL 0.029597396 0.028746573
  • 13. Accuracy of the prediction • I used the formula: Accuracy = (TN+TP)/(TN+TP+FN+FP) Probability Sensitivity Specificity Accuracy 0 1 0 50% 0.2 0.738 0.493 62% 0.4 0.3033 0.86 58% 0.8 0.01206 0.997 50% 0.9 0.00001084 0.9999 50% 0.95 4.0669E-06 1 50% 1 0 1 50% • Sensitivity – among patients with a disease, the probability of a positive test • Specificity – Among patients without disease, the probability of a negative test
  • 14. Contingency Table Dead Alive Total Yes 23 14 47 No 141089 680473 821562 Total 141112 680487 821609
  • 15. Usefulness of the Project • The usefulness of the project to others is that hospitals can focus more time to these patients which may result in a delay of death or an increase in patient satisfaction. • Researchers can use this project to better understand trends and stages of different icd9’s, i.e: why there is such a high odds/probability or low odds/probability associated with the corresponding id. • For me, it gave me some insight on how to apply Bayes Theorem (statistical processes) to a big dataset and how to use different functions within SQL to complete the desired tasks.