Logistic Regression (heart disease) - Python

  Рет қаралды 77

Anderson Kanju

Anderson Kanju

Күн бұрын

🚀 Project Showcase: Heart Disease Prediction Using Python 🐍❤
I recently completed an exciting data science project where I analyzed a heart disease dataset and built a predictive model using Python. Here's a brief overview of the steps I followed:
Data Loading and Exploration:
Imported necessary libraries like Pandas, NumPy, Matplotlib, Seaborn, Plotly, and Scikit-learn.
Loaded the dataset and checked for missing values, data types, and unique values.
Generated descriptive statistics to understand the data better.
Data Visualization:
Created histograms with KDE plots for each variable to understand their distributions.
Visualized the correlation matrix to identify relationships between features.
Built bar charts to visualize heart disease occurrences by sex and exercise-induced angina.
Logistic Regression Model:
Used Statsmodels for logistic regression to identify significant variables.
Split the data into training and testing sets.
Trained a logistic regression model using Scikit-learn.
Evaluated the model using accuracy score, classification report, and confusion matrix.
Results:
Achieved an accuracy of 81.79% in predicting heart disease.
Visualized key findings and shared insights from the model.
This project was a great opportunity to apply data science techniques and gain deeper insights into heart disease risk factors. Check out the code snippets and visualizations below!
#DataScience #Python #MachineLearning #HeartDisease #DataVisualization #LogisticRegression #DataAnalysis #HealthcareAnalytics #LinkedInLearning

Пікірлер
Journalist grills US state dept on Israeli occupation | Dawn News English
11:09
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 70 МЛН
ROC and AUC, Clearly Explained!
16:17
StatQuest with Josh Starmer
Рет қаралды 1,5 МЛН
Animation vs. Math
14:03
Alan Becker
Рет қаралды 70 МЛН
Regression Analysis | Full Course
45:17
DATAtab
Рет қаралды 821 М.
I Quit My Job as a Data Scientist
12:31
julia fei
Рет қаралды 688 М.
Statistics 101: Linear Regression, The Very Basics 📈
22:56
Brandon Foltz
Рет қаралды 1,9 МЛН