--- task_categories: - tabular-classification language: - en tags: - health - medical size_categories: - 1K **Which factors have the strongest impact on the likelihood of heart disease?** --- ## ๐Ÿ“ฆ Dataset - Source: Kaggle - Format: CSV - ~302 samples - Contains various clinical features ### Target `target` - **1 = Heart disease** - **0 = No heart disease** --- ## ๐Ÿท Feature Overview | Feature | Description | |---------|-------------| | age | Age | | sex | 0 = female, 1 = male | | cp | Chest pain type | | trestbps | Resting blood pressure | | chol | Cholesterol | | fbs | Fasting blood sugar | | restecg | Resting ECG results | | thalach | Maximum heart rate | | exang | Exercise-induced angina | | oldpeak | ST depression | | slope | Slope of ST | | ca | Number of major vessels | | thal | Thallium test result | | target | Heart disease indicator | --- # ๐Ÿ”ง Data Preparation ### โœ… Cleaning Steps - Checked for missing values โ€” none found - Checked for duplicate records - Verified valid ranges - Adjusted and simplified column names --- # ๐Ÿ“Š Exploratory Data Analysis (EDA) ## Target Distribution ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/ytjKjluhwJL6I66y5wEEF.png) --- ## โœ… Key Features & Insights ### 1) Age Patients with heart disease are slightly younger on average. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/HJfXSFOxtjcb5yfjj2Cbx.png) --- ### 2) Chest Pain (cp) One of the strongest predictors: Higher chest pain type is strongly linked to heart disease. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/_zR4KdtpHuVmrYEiYSoFy.png) --- ### 3) Max Heart Rate (thalach) Patients with heart disease tend to have a higher maximum heart rate. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/SklL0tx4sze3Ss6hDjclP.png) --- ### 4) ST Depression (oldpeak) Lower oldpeak values are more common among heart-disease patients. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/CNk3OjhxqjjCrQCwCT_0w.png) --- ### 5) Exercise-Induced Angina (exang) Most patients **do not** experience chest pain during exercise. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/vqYWmlwiiBGCykqaKvgST.png) --- ### 6) Thal Moderate difference between groups, still noticeable. ![image](https://cdn-uploads.huggingface.co/production/uploads/6909b9db75ba88c195adac42/dlQl3wxYVdf5R6iFQ-s00.png) --- # ๐Ÿ“‘ Summary Table | Feature | No Disease (0) | Disease (1) | Insight | |---------|----------------|-------------|---------| | cp | 0.48 | 1.38 | Strong relationship | | thalach | 139 | 159 | Higher among disease | | oldpeak | 1.60 | 0.57 | Lower among disease | | exang | 0.55 | 0.14 | Less common in disease | | age | 56.6 | 52.4 | Slightly younger | | chol | 251 | 241 | Small difference | | ca | 1.16 | 0.37 | โš ๏ธ Opposite trend | | trestbps | 134 | 129 | Weak effect | | thal | 2.54 | 2.12 | Moderate effect | --- # โœ… Main Insights ๐Ÿ“Œ Strong indicators of heart disease: 1) **Chest Pain (cp)** 2) **Max Heart Rate (thalach)** 3) **ST Depression (oldpeak)** 4) **Exercise-Induced Angina (exang)** ๐Ÿ“Œ Additional observations: - Exercise-induced angina (exang) is less common among patients with heart disease - Cholesterol and blood pressure show weaker relationships - `ca` shows an unexpected pattern โ†’ may indicate data/coding issues --- # โœ… Conclusions Several clinical measurements appear strongly connected to heart disease, including chest pain type, maximum heart rate, and ST-related metrics. Other features, such as cholesterol and resting blood pressure, show weaker influence. --- # ๐ŸŽฌ Video Presentation > ๐Ÿ”— https://www.loom.com/share/d5891c3d0c20490ba79884fc701f4bc7 --- # ๐Ÿงพ Files Included | File | Description | |------|-------------| | Assignment_1_oded_fuchs.ipynb | Analysis & visuals | | README.md | Project summary | | heart.csv | Original dataset | ---