No description available.
Last updated Mar 20, 2025
20
Stars
6
Forks
0
Issues
0
Stars/day
Attention Score
9
Topics
Language breakdown
No language data available.
▸ Files
click to expand
README
Heart Disease Prediction Project
Heart Disease Prediction using Logistic Regression
Problem:
World Health Organization has estimated 12 million deaths occur worldwide, every year due to Heart diseases. Half the deaths in the United States and other developed countries are due to cardio vascular diseases. The early prognosis of cardiovascular diseases can aid in making decisions on lifestyle changes in high risk patients and in turn reduce the complications. This research intends to pinpoint the most relevant/risk factors of heart disease as well as predict the overall risk using logistic regression.Solution:
The classification goal is to predict whether the patient has 10-year risk of future coronary heart disease (CHD).I have implemented Logistic Regression Model to predict Coronary Heart Disease.
What is Logistic Regression ?
Logistic Regression is a statistical and machine-learning techniques classifying records of a dataset based on the values of the input fields . It predicts a dependent variable based on one or more set of independent variables to predict outcomes . It can be used both for binary classification and multi-class classification.
Data info:
The dataset is available on the Kaggle website, and it is from an ongoing cardiovascular study on residents of the town of Framingham, Massachusetts. The dataset provides the patients’ information. It includes over 4,000 records and 15 attributes.The dataset is already provided in the repository (here).
Framingham Heart study dataset includes several demographic risk factors:-
sex: male or femaleage: age of the patienteducation: levels coded 1 for some high school, 2 for a high school diploma or GED, 3 for some college or vocational school, and 4 for a college degree.
currentSmoker: whether or not the patient is a current smokercigsPerDay: the number of cigarettes that the person smoked on average in one day.
BPMeds: whether or not the patient was on blood pressure medicationprevalentStroke: whether or not the patient had previously had a strokeprevalentHyp: whether or not the patient was hypertensivediabetes: whether or not the patient had diabetes
totChol: total cholesterol levelsysBP: systolic blood pressurediaBP: diastolic blood pressureBMI: Body Mass IndexheartRate: heart rateglucose: glucose levelTenYearCHD: 10 year risk of coronary heart disease CHD (TARGET VARIABLE)
Libraries Used -
1. Pandas (for data manipulation) 2. Matplotlib (for data visualization) 3. Seaborn (for data visualization) 4. Scikit-Learn (for data modeling)Contents:
- Importing the required libraries.
- Importing and Reading the dataset.
- Exploratory Data Analysis (EDA)
- Data-Preprocessing
- Data Visualization
- Data Modeling
🔗 More in this category