SlideShare a Scribd company logo
1 of 9
PREDICTING HEART ATTACKS
BASED ON PATIENT’S SYMPTOMS
AN APPLICATION OF BAYES’ THEOREM CL ASSIFIER
A u t h o r : A n t h o n y M o k
D a t e : 1 6 N o v 2 0 2 3
E m a i l : x x i a o h a o @ y a h o o . c o m
AGENDA
• Briefs On Bayes’ Theorem, Classifiers &
Naïve Bayes’ Classifiers
• Project’s Objectives
• Context, Dataset & Dictionary
• Strategies For Modelling & Data Analysis
• Findings & Conclusions
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER 2
BAYES’ THEOREM
Bayes’ Theorem (Bayes' rule or Bayes' law), is a
mathematical formula that describes the
probability of an event, based on prior knowledge
of conditions that might be related to the event.
Bayes' theorem talks about the probability of
event A after we have observed event B since it
accounts that event B is related to event A
3
A Classifier is a type of
algorithm that automatically
assigns a class label to a data
input. Classifiers are trained
on labelled data, which means
the data are pre-classified into
different categories before
use. Once trained, it classifies
a new data point by analysing
its features and assigning it to
a class label based on the
training data used by the
Classifier
Are a simple but powerful type of
probabilistic classifier based on Bayes'
Theorem. They assume that the features of a
data point are independent of each other,
which is often not the case in real-world
scenarios. Despite this assumption, Naive
Bayes’ Classifiers often perform well in
practice, especially when a large amount of
training data are being used
NAÏVE BAYES CLASSIFIERS
CLASSIFIERS
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
Project Goal
Use Naive Bayes’ Classifier to Predict Heart
Attacks Based on Patient’s Symptoms
2023 An Application of Bayes’ Theorem Classifier
CONTEXT, DATASET & DICTIONARY
5
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
Context
After completing the project to identify the rules
that predict patient’s heart disease, the Clinic
reached out wanting to know who is likely to have
a heart attack based on his/her symptoms
Dataset & Data Dictionary
The dataset was explored for its relationships and
patterns, and it’s found that, through its univariate,
bivariate and multivariate analysis, the data is highly
correlated and suitable for modelling
1. DATA PREPARATION​​
T HREE N EW C ATEGORICAL
F EATURES WERE C REATED
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
‘ age_group’ fe ature (from the ‘age’
column)
Where Patients:
• U n d e r t h e a g e of 1 4 a re t o b e g ro u p e d
a s c h i l d re n
• G re a t e r t h a n o r e q u a l t o t h e a g e 1 4 a n d
l e s s t h a n 2 5 a re t o b e g ro u p e d a s Yo u t h
• G re a t e r t h a n o r e q u a l t o t h e a g e 2 5
a n d l e s s t h a n 6 4 a re t o b e g ro u p e d a s
A d u l t s
• O f t h e a g e of 6 4 a n d a b o v e a re t o b e
g ro u p e d a s S e n i o r s
F o r m u l a e U s e d
= I F ( A 4 < 1 4 , " C h i l d re n" , I F ( A 4 < 2 5 , " Yo u t h s " , I F ( A
4 > = 6 4 , " S e n i o r s " , " A d u l t s " ) ) )
‘chol_level ’ fe ature (from the
‘chol’ column), using VLOOKUP
Where ‘chol’:
• B e t w e e n 0 - 2 0 0 i s c l a s s i f i e d a s
‘g o o d ’
• B e t w e e n 2 0 1 - 2 4 0 i s c l a s s i f i e d
a s ‘ b o rd e r l i n e ’
• > 2 4 0 i s c l a s s i f i e d a s ‘ h i g h ’
F o r m u l a e U s e d
= V LO O K U P ( @ G 4 : G 3 0 6 , $ P $ 1 2 : $ Q $ 1 4
, 2 , T R U E )
‘ bp_level ’ fe ature (from the
‘rest_bp’ column), using VLOOKUP
Where ‘rest)_bp’:
• B e t w e e n 0 - 9 0 i s l a b e l l e d a s ‘ l o w ’
• B e t w e e n 9 1 - 1 4 0 i s l a b e l l e d a s
‘ i d e a l ’
• > 1 4 0 i s l a b e l l e d a s ‘ h i g h ’
F o r m u l a e U s e d
= V LO O K U P ( @ F 4 : F 3 0 6 , $ P $ 7 : $ Q $ 9 , 2 , T R
U E )
STRATEGIES FOR MODELLING & DATA ANALYSIS
2. TRAIN MODEL​​
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
P i votTables
PivotTables are created for the following
features:
• Age Group
• Sex
• BP Level
• EXNG
• Chol_level
• Target
C alculation of P robabilities
S a m p l e of F o r m u l a e U s e d
= G E T P I V OT DATA ( " a g e" , $ S $ 3 , " t a rg e t " , 1 , " A g e _ G ro u p s " , " A
d u l t s " )
STRATEGIES FOR MODELLING & DATA ANALYSIS
3. MAKING PREDICTIONS​​
2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
What is the probability that these patients
have a hear t attack?
FINDINGS & CONCLUSIONS*
Snapshot of Two Health Report From the Clinic
Patient A Patient B
• age: 34
• sex: Female (i.e., 0)
• bp_level: ideal
• exng: has exercise induced
angina (i.e., 1) chol_level:
borderline
• age: 72
• sex: Male (i.e., 1)
• bp_level: high
• exng: has exercise induced
angina (i.e., 1)
• chol_level: high
Conclusions
The probability of Patient A , given her attributes, is 53.66% more likely to
have an hear t attack as compared to Patient B, whose probability of
experiencing an hear t attack is merely 9.79%, given his attributes
Findings
* More findings and conclusions are found in the project report, which are not released at the request of the Clinic
PREDICTING HEART ATTACKS
BASED ON PATIENT’S SYMPTOMS
AN APPLICATION OF BAYES’ THEOREM CL ASSIFIER
A u t h o r : A n t h o n y M o k
D a t e : 1 6 N o v 2 0 2 3
E m a i l : x x i a o h a o @ y a h o o . c o m

More Related Content

Similar to Decision Making Under Uncertainty - Predict the Chances of a Person Suffering a Heart Attack - An Application of a Classifier Using Bayes' Theorem

Assigment 1
Assigment 1Assigment 1
Assigment 1Shaf Fik
 
Confidence Intervals in the Life Sciences PresentationNamesS.docx
Confidence Intervals in the Life Sciences PresentationNamesS.docxConfidence Intervals in the Life Sciences PresentationNamesS.docx
Confidence Intervals in the Life Sciences PresentationNamesS.docxmaxinesmith73660
 
sience 2.0 : an illustration of good research practices in a real study
sience 2.0 : an illustration of good research practices in a real studysience 2.0 : an illustration of good research practices in a real study
sience 2.0 : an illustration of good research practices in a real studywolf vanpaemel
 
Setting the stage with beginning data analyses
Setting the stage with beginning data analysesSetting the stage with beginning data analyses
Setting the stage with beginning data analyseshuebner14
 
Overview of Patient Reported Outcomes in SAFTINet
Overview of Patient Reported Outcomes in SAFTINet Overview of Patient Reported Outcomes in SAFTINet
Overview of Patient Reported Outcomes in SAFTINet Marion Sills
 
Undergraduate Research work
Undergraduate Research workUndergraduate Research work
Undergraduate Research workPeter M Addo
 
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
ReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docxReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docx
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docxmalbert5
 
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
ReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docxReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docx
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docxhealdkathaleen
 
Epidemiological Analysis Workshop By Dr Suzanne Campbell
Epidemiological Analysis Workshop By Dr Suzanne Campbell Epidemiological Analysis Workshop By Dr Suzanne Campbell
Epidemiological Analysis Workshop By Dr Suzanne Campbell COUNTDOWN on NTDs
 
Chapter 7 Estimation Chapter Learning Objectives 1.docx
Chapter 7 Estimation Chapter Learning Objectives 1.docxChapter 7 Estimation Chapter Learning Objectives 1.docx
Chapter 7 Estimation Chapter Learning Objectives 1.docxchristinemaritza
 
Research on Haberman dataset also business required document
Research on Haberman dataset also business required documentResearch on Haberman dataset also business required document
Research on Haberman dataset also business required documentManjuYadav65
 
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...Diego Molla-Aliod
 
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docx
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docxRunning head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docx
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docxsusanschei
 
COM 301 INFERENTIAL STATISTICS SLIDES.ppt
COM 301   INFERENTIAL STATISTICS SLIDES.pptCOM 301   INFERENTIAL STATISTICS SLIDES.ppt
COM 301 INFERENTIAL STATISTICS SLIDES.pptdanielayo912
 
Statistics for DP Biology IA
Statistics for DP Biology IAStatistics for DP Biology IA
Statistics for DP Biology IAVeronika Garga
 
Multivariate Regression using Skull Structures
Multivariate Regression using Skull StructuresMultivariate Regression using Skull Structures
Multivariate Regression using Skull StructuresJustin Pierce
 

Similar to Decision Making Under Uncertainty - Predict the Chances of a Person Suffering a Heart Attack - An Application of a Classifier Using Bayes' Theorem (20)

Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Assigment 1
Assigment 1Assigment 1
Assigment 1
 
Confidence Intervals in the Life Sciences PresentationNamesS.docx
Confidence Intervals in the Life Sciences PresentationNamesS.docxConfidence Intervals in the Life Sciences PresentationNamesS.docx
Confidence Intervals in the Life Sciences PresentationNamesS.docx
 
sience 2.0 : an illustration of good research practices in a real study
sience 2.0 : an illustration of good research practices in a real studysience 2.0 : an illustration of good research practices in a real study
sience 2.0 : an illustration of good research practices in a real study
 
Setting the stage with beginning data analyses
Setting the stage with beginning data analysesSetting the stage with beginning data analyses
Setting the stage with beginning data analyses
 
Overview of Patient Reported Outcomes in SAFTINet
Overview of Patient Reported Outcomes in SAFTINet Overview of Patient Reported Outcomes in SAFTINet
Overview of Patient Reported Outcomes in SAFTINet
 
Undergraduate Research work
Undergraduate Research workUndergraduate Research work
Undergraduate Research work
 
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
ReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docxReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docx
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
 
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
ReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docxReviewE ffe c ts  o f N u rs e -M a n a g e d  P ro to c o.docx
ReviewE ffe c ts o f N u rs e -M a n a g e d P ro to c o.docx
 
Math Statistics Essay
Math Statistics EssayMath Statistics Essay
Math Statistics Essay
 
Epidemiological Analysis Workshop By Dr Suzanne Campbell
Epidemiological Analysis Workshop By Dr Suzanne Campbell Epidemiological Analysis Workshop By Dr Suzanne Campbell
Epidemiological Analysis Workshop By Dr Suzanne Campbell
 
Final_Presentation.pptx
Final_Presentation.pptxFinal_Presentation.pptx
Final_Presentation.pptx
 
Chapter 7 Estimation Chapter Learning Objectives 1.docx
Chapter 7 Estimation Chapter Learning Objectives 1.docxChapter 7 Estimation Chapter Learning Objectives 1.docx
Chapter 7 Estimation Chapter Learning Objectives 1.docx
 
Research on Haberman dataset also business required document
Research on Haberman dataset also business required documentResearch on Haberman dataset also business required document
Research on Haberman dataset also business required document
 
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...
Extractive Evidence Based Medicine Summarisation Based on Sentence-Specific S...
 
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docx
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docxRunning head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docx
Running head COURSE PROJECT –PHASE 3 COURSE PROJECT –PHASE 3.docx
 
COM 301 INFERENTIAL STATISTICS SLIDES.ppt
COM 301   INFERENTIAL STATISTICS SLIDES.pptCOM 301   INFERENTIAL STATISTICS SLIDES.ppt
COM 301 INFERENTIAL STATISTICS SLIDES.ppt
 
Statistics for DP Biology IA
Statistics for DP Biology IAStatistics for DP Biology IA
Statistics for DP Biology IA
 
Multivariate Regression using Skull Structures
Multivariate Regression using Skull StructuresMultivariate Regression using Skull Structures
Multivariate Regression using Skull Structures
 
Descriptive Analysis.pptx
Descriptive Analysis.pptxDescriptive Analysis.pptx
Descriptive Analysis.pptx
 

More from ThinkInnovation

Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...ThinkInnovation
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...ThinkInnovation
 
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...ThinkInnovation
 
Decision Making Under Uncertainty - Decide Whether Or Not to Take Precautions
Decision Making Under Uncertainty - Decide Whether Or Not to Take PrecautionsDecision Making Under Uncertainty - Decide Whether Or Not to Take Precautions
Decision Making Under Uncertainty - Decide Whether Or Not to Take PrecautionsThinkInnovation
 
Optimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in LogisticsOptimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in LogisticsThinkInnovation
 
Create Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopCreate Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopThinkInnovation
 
Using DAX & Time-based Analysis in Data Warehouse
Using DAX & Time-based Analysis in Data WarehouseUsing DAX & Time-based Analysis in Data Warehouse
Using DAX & Time-based Analysis in Data WarehouseThinkInnovation
 
Creating Data Warehouse Using Power Query & Power Pivot
Creating Data Warehouse Using Power Query & Power PivotCreating Data Warehouse Using Power Query & Power Pivot
Creating Data Warehouse Using Power Query & Power PivotThinkInnovation
 
Unlocking New Insights Into the World of European Soccer Through the European...
Unlocking New Insights Into the World of European Soccer Through the European...Unlocking New Insights Into the World of European Soccer Through the European...
Unlocking New Insights Into the World of European Soccer Through the European...ThinkInnovation
 
Breakfast Talk - Manage Projects
Breakfast Talk - Manage ProjectsBreakfast Talk - Manage Projects
Breakfast Talk - Manage ProjectsThinkInnovation
 
Think innovation issue 4 share - scamper
Think innovation issue 4   share - scamperThink innovation issue 4   share - scamper
Think innovation issue 4 share - scamperThinkInnovation
 
Reverse Assumption Method
Reverse Assumption MethodReverse Assumption Method
Reverse Assumption MethodThinkInnovation
 
Psyche of Facilitation - The New Language of Facilitating Conversations
Psyche of Facilitation - The New Language of Facilitating ConversationsPsyche of Facilitation - The New Language of Facilitating Conversations
Psyche of Facilitation - The New Language of Facilitating ConversationsThinkInnovation
 
Visual Connection - Ideation Through Word Association
Visual Connection - Ideation Through Word AssociationVisual Connection - Ideation Through Word Association
Visual Connection - Ideation Through Word AssociationThinkInnovation
 

More from ThinkInnovation (17)

Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...
Ordinary Least Square Regression & Stage-2 Regression - Factors Influencing M...
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...
Decision Making Under Uncertainty - Is It Better Off Joining a Partnership or...
 
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...
Predictive Analysis - Using Insight-informed Data to Plan Inventory in Next 6...
 
Decision Making Under Uncertainty - Decide Whether Or Not to Take Precautions
Decision Making Under Uncertainty - Decide Whether Or Not to Take PrecautionsDecision Making Under Uncertainty - Decide Whether Or Not to Take Precautions
Decision Making Under Uncertainty - Decide Whether Or Not to Take Precautions
 
Optimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in LogisticsOptimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in Logistics
 
Create Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopCreate Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI Desktop
 
Using DAX & Time-based Analysis in Data Warehouse
Using DAX & Time-based Analysis in Data WarehouseUsing DAX & Time-based Analysis in Data Warehouse
Using DAX & Time-based Analysis in Data Warehouse
 
Creating Data Warehouse Using Power Query & Power Pivot
Creating Data Warehouse Using Power Query & Power PivotCreating Data Warehouse Using Power Query & Power Pivot
Creating Data Warehouse Using Power Query & Power Pivot
 
Unlocking New Insights Into the World of European Soccer Through the European...
Unlocking New Insights Into the World of European Soccer Through the European...Unlocking New Insights Into the World of European Soccer Through the European...
Unlocking New Insights Into the World of European Soccer Through the European...
 
Breakfast Talk - Manage Projects
Breakfast Talk - Manage ProjectsBreakfast Talk - Manage Projects
Breakfast Talk - Manage Projects
 
Think innovation issue 4 share - scamper
Think innovation issue 4   share - scamperThink innovation issue 4   share - scamper
Think innovation issue 4 share - scamper
 
SCAMPER
SCAMPERSCAMPER
SCAMPER
 
Reverse Assumption Method
Reverse Assumption MethodReverse Assumption Method
Reverse Assumption Method
 
Psyche of Facilitation - The New Language of Facilitating Conversations
Psyche of Facilitation - The New Language of Facilitating ConversationsPsyche of Facilitation - The New Language of Facilitating Conversations
Psyche of Facilitation - The New Language of Facilitating Conversations
 
Visual Connection - Ideation Through Word Association
Visual Connection - Ideation Through Word AssociationVisual Connection - Ideation Through Word Association
Visual Connection - Ideation Through Word Association
 

Recently uploaded

Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 

Recently uploaded (20)

Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 

Decision Making Under Uncertainty - Predict the Chances of a Person Suffering a Heart Attack - An Application of a Classifier Using Bayes' Theorem

  • 1. PREDICTING HEART ATTACKS BASED ON PATIENT’S SYMPTOMS AN APPLICATION OF BAYES’ THEOREM CL ASSIFIER A u t h o r : A n t h o n y M o k D a t e : 1 6 N o v 2 0 2 3 E m a i l : x x i a o h a o @ y a h o o . c o m
  • 2. AGENDA • Briefs On Bayes’ Theorem, Classifiers & Naïve Bayes’ Classifiers • Project’s Objectives • Context, Dataset & Dictionary • Strategies For Modelling & Data Analysis • Findings & Conclusions 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER 2
  • 3. BAYES’ THEOREM Bayes’ Theorem (Bayes' rule or Bayes' law), is a mathematical formula that describes the probability of an event, based on prior knowledge of conditions that might be related to the event. Bayes' theorem talks about the probability of event A after we have observed event B since it accounts that event B is related to event A 3 A Classifier is a type of algorithm that automatically assigns a class label to a data input. Classifiers are trained on labelled data, which means the data are pre-classified into different categories before use. Once trained, it classifies a new data point by analysing its features and assigning it to a class label based on the training data used by the Classifier Are a simple but powerful type of probabilistic classifier based on Bayes' Theorem. They assume that the features of a data point are independent of each other, which is often not the case in real-world scenarios. Despite this assumption, Naive Bayes’ Classifiers often perform well in practice, especially when a large amount of training data are being used NAÏVE BAYES CLASSIFIERS CLASSIFIERS 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER
  • 4. Project Goal Use Naive Bayes’ Classifier to Predict Heart Attacks Based on Patient’s Symptoms 2023 An Application of Bayes’ Theorem Classifier
  • 5. CONTEXT, DATASET & DICTIONARY 5 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER Context After completing the project to identify the rules that predict patient’s heart disease, the Clinic reached out wanting to know who is likely to have a heart attack based on his/her symptoms Dataset & Data Dictionary The dataset was explored for its relationships and patterns, and it’s found that, through its univariate, bivariate and multivariate analysis, the data is highly correlated and suitable for modelling
  • 6. 1. DATA PREPARATION​​ T HREE N EW C ATEGORICAL F EATURES WERE C REATED 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER ‘ age_group’ fe ature (from the ‘age’ column) Where Patients: • U n d e r t h e a g e of 1 4 a re t o b e g ro u p e d a s c h i l d re n • G re a t e r t h a n o r e q u a l t o t h e a g e 1 4 a n d l e s s t h a n 2 5 a re t o b e g ro u p e d a s Yo u t h • G re a t e r t h a n o r e q u a l t o t h e a g e 2 5 a n d l e s s t h a n 6 4 a re t o b e g ro u p e d a s A d u l t s • O f t h e a g e of 6 4 a n d a b o v e a re t o b e g ro u p e d a s S e n i o r s F o r m u l a e U s e d = I F ( A 4 < 1 4 , " C h i l d re n" , I F ( A 4 < 2 5 , " Yo u t h s " , I F ( A 4 > = 6 4 , " S e n i o r s " , " A d u l t s " ) ) ) ‘chol_level ’ fe ature (from the ‘chol’ column), using VLOOKUP Where ‘chol’: • B e t w e e n 0 - 2 0 0 i s c l a s s i f i e d a s ‘g o o d ’ • B e t w e e n 2 0 1 - 2 4 0 i s c l a s s i f i e d a s ‘ b o rd e r l i n e ’ • > 2 4 0 i s c l a s s i f i e d a s ‘ h i g h ’ F o r m u l a e U s e d = V LO O K U P ( @ G 4 : G 3 0 6 , $ P $ 1 2 : $ Q $ 1 4 , 2 , T R U E ) ‘ bp_level ’ fe ature (from the ‘rest_bp’ column), using VLOOKUP Where ‘rest)_bp’: • B e t w e e n 0 - 9 0 i s l a b e l l e d a s ‘ l o w ’ • B e t w e e n 9 1 - 1 4 0 i s l a b e l l e d a s ‘ i d e a l ’ • > 1 4 0 i s l a b e l l e d a s ‘ h i g h ’ F o r m u l a e U s e d = V LO O K U P ( @ F 4 : F 3 0 6 , $ P $ 7 : $ Q $ 9 , 2 , T R U E ) STRATEGIES FOR MODELLING & DATA ANALYSIS
  • 7. 2. TRAIN MODEL​​ 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER P i votTables PivotTables are created for the following features: • Age Group • Sex • BP Level • EXNG • Chol_level • Target C alculation of P robabilities S a m p l e of F o r m u l a e U s e d = G E T P I V OT DATA ( " a g e" , $ S $ 3 , " t a rg e t " , 1 , " A g e _ G ro u p s " , " A d u l t s " ) STRATEGIES FOR MODELLING & DATA ANALYSIS
  • 8. 3. MAKING PREDICTIONS​​ 2023 AN APPLIC A TI O N OF BAYES’ THEOREM CLASSIF IER What is the probability that these patients have a hear t attack? FINDINGS & CONCLUSIONS* Snapshot of Two Health Report From the Clinic Patient A Patient B • age: 34 • sex: Female (i.e., 0) • bp_level: ideal • exng: has exercise induced angina (i.e., 1) chol_level: borderline • age: 72 • sex: Male (i.e., 1) • bp_level: high • exng: has exercise induced angina (i.e., 1) • chol_level: high Conclusions The probability of Patient A , given her attributes, is 53.66% more likely to have an hear t attack as compared to Patient B, whose probability of experiencing an hear t attack is merely 9.79%, given his attributes Findings * More findings and conclusions are found in the project report, which are not released at the request of the Clinic
  • 9. PREDICTING HEART ATTACKS BASED ON PATIENT’S SYMPTOMS AN APPLICATION OF BAYES’ THEOREM CL ASSIFIER A u t h o r : A n t h o n y M o k D a t e : 1 6 N o v 2 0 2 3 E m a i l : x x i a o h a o @ y a h o o . c o m