odedf2001 commited on
Commit
3d28674
·
verified ·
1 Parent(s): 3df363d

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +175 -0
README.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - tabular-classification
4
+ language:
5
+ - en
6
+ tags:
7
+ - health
8
+ - medical
9
+ size_categories:
10
+ - 1K<n<10K
11
+ ---
12
+ # ❤️ Heart Disease — Exploratory Data Analysis
13
+
14
+ ## 👤 Author
15
+ **Oded Fuchs**
16
+
17
+ ---
18
+
19
+ ## 🎯 Project Goal
20
+ The goal of this project is to explore which factors are most strongly related to heart disease,
21
+ using statistical analysis and data visualization.
22
+
23
+ ---
24
+
25
+ ## 🔍 Research Question
26
+ > **Which factors have the strongest impact on the likelihood of heart disease?**
27
+
28
+ ---
29
+
30
+ ## 📦 Dataset
31
+ - Source: Kaggle
32
+ - Format: CSV
33
+ - ~302 samples
34
+ - Contains various clinical features
35
+
36
+ ### Target
37
+ `target`
38
+ - **1 = Heart disease**
39
+ - **0 = No heart disease**
40
+
41
+ ---
42
+
43
+ ## 🏷 Feature Overview
44
+ | Feature | Description |
45
+ |---------|-------------|
46
+ | age | Age |
47
+ | sex | 0 = female, 1 = male |
48
+ | cp | Chest pain type |
49
+ | trestbps | Resting blood pressure |
50
+ | chol | Cholesterol |
51
+ | fbs | Fasting blood sugar |
52
+ | restecg | Resting ECG results |
53
+ | thalach | Maximum heart rate |
54
+ | exang | Exercise-induced angina |
55
+ | oldpeak | ST depression |
56
+ | slope | Slope of ST |
57
+ | ca | Number of major vessels |
58
+ | thal | Thallium test result |
59
+ | target | Heart disease indicator |
60
+
61
+ ---
62
+
63
+ # 🔧 Data Preparation
64
+
65
+ ### ✅ Cleaning Steps
66
+ - Checked for missing values — none found
67
+ - Checked for duplicate records
68
+ - Verified valid ranges
69
+ - Adjusted and simplified column names
70
+
71
+ ---
72
+
73
+ # 📊 Exploratory Data Analysis (EDA)
74
+
75
+ ## Target Distribution
76
+
77
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/ytjKjluhwJL6I66y5wEEF.png)
78
+
79
+ ---
80
+
81
+ ## ✅ Key Features & Insights
82
+
83
+ ### 1) Age
84
+ Patients with heart disease are slightly younger on average.
85
+
86
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/HJfXSFOxtjcb5yfjj2Cbx.png)
87
+
88
+ ---
89
+
90
+ ### 2) Chest Pain (cp)
91
+ One of the strongest predictors:
92
+ Higher chest pain type is strongly linked to heart disease.
93
+
94
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/_zR4KdtpHuVmrYEiYSoFy.png)
95
+
96
+ ---
97
+
98
+ ### 3) Max Heart Rate (thalach)
99
+ Patients with heart disease tend to have a higher maximum heart rate.
100
+
101
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/SklL0tx4sze3Ss6hDjclP.png)
102
+
103
+ ---
104
+
105
+ ### 4) ST Depression (oldpeak)
106
+ Lower oldpeak values are more common among heart-disease patients.
107
+
108
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/CNk3OjhxqjjCrQCwCT_0w.png)
109
+
110
+ ---
111
+
112
+ ### 5) Exercise-Induced Angina (exang)
113
+ Most patients **do not** experience chest pain during exercise.
114
+
115
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/vqYWmlwiiBGCykqaKvgST.png)
116
+
117
+ ---
118
+
119
+ ### 6) Thal
120
+ Moderate difference between groups, still noticeable.
121
+
122
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/dlQl3wxYVdf5R6iFQ-s00.png)
123
+
124
+ ---
125
+
126
+ # 📑 Summary Table
127
+
128
+ | Feature | No Disease (0) | Disease (1) | Insight |
129
+ |---------|----------------|-------------|---------|
130
+ | cp | 0.48 | 1.38 | Strong relationship |
131
+ | thalach | 139 | 159 | Higher among disease |
132
+ | oldpeak | 1.60 | 0.57 | Lower among disease |
133
+ | exang | 0.55 | 0.14 | Less common in disease |
134
+ | age | 56.6 | 52.4 | Slightly younger |
135
+ | chol | 251 | 241 | Small difference |
136
+ | ca | 1.16 | 0.37 | ⚠️ Opposite trend |
137
+ | trestbps | 134 | 129 | Weak effect |
138
+ | thal | 2.54 | 2.12 | Moderate effect |
139
+
140
+ ---
141
+
142
+ # ✅ Main Insights
143
+
144
+ 📌 Strong indicators of heart disease:
145
+ 1) **Chest Pain (cp)**
146
+ 2) **Max Heart Rate (thalach)**
147
+ 3) **ST Depression (oldpeak)**
148
+ 4) **Exercise-Induced Angina (exang)**
149
+
150
+ 📌 Additional observations:
151
+ - Exercise-induced angina (exang) is less common among patients with heart disease
152
+ - Cholesterol and blood pressure show weaker relationships
153
+ - `ca` shows an unexpected pattern → may indicate data/coding issues
154
+
155
+ ---
156
+
157
+ # ✅ Conclusions
158
+ Several clinical measurements appear strongly connected to heart disease, including chest pain type, maximum heart rate, and ST-related metrics.
159
+ Other features, such as cholesterol and resting blood pressure, show weaker influence.
160
+
161
+ ---
162
+
163
+ # 🎬 Video Presentation
164
+ > 🔗 **Insert video link here**
165
+
166
+ ---
167
+
168
+ # 🧾 Files Included
169
+ | File | Description |
170
+ |------|-------------|
171
+ | Assignment_1_oded_fuchs.ipynb | Analysis & visuals |
172
+ | README.md | Project summary |
173
+ | heart.csv | Original dataset |
174
+
175
+ ---