Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Project1_backup

Backup repositry

Link to the original repo - https://github.com/prez212/Project1-Team6 We had too complicated problems with this repo so we decided to just create a new repo.

Team members - Suad Godax, Lucas Perez, Harshh Patel, Jaskirat Singh, Halima Saleh

Approx. size of data>340K Shape of data - csv

Problem Statement: What are the associatedd risk factors of Heart disease?

Sub Questions:

  1. Does age, gender play a role?

  2. Does race play a role?

  3. Does lifestyle (smoking/drinking) play a factor?

  4. Does general/mental/physical health and status play a role?

  5. Does sleep time play a role?

  6. Does any co-morbidity (asthma, kidney disease, skin cancer, and diabities) play a role?

Lucas Lucas' role was to tackle: Does age and gender play a role in heart disease? Data sorted and grouped Created charts - https://stackoverflow.com/questions/61130168/stacked-bar-chart-in-matplotlib-how-to-code-with-lots-and-lots-of-categories https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.unstack.html Created summary description Put together the presentation. https://create.microsoft.com/en-us/template/futuristic-pitch-deck-82ab8cf7-ff25-4ec2-9c52-78be3d98c6ec Controlled board.

Halima Halima's Role in this project was to find out : Does Race, General Health, Physical health play role for heart disease?

the data was located in Resources folder heart_2020_cleaned.csv

1, as the data was already cleaned, just planed to use the following columns • HeartDisease • Race • PhysicalHealth • GenHealth

2, Tried to calculate • Race vs HeartDisease • physicalHealth vs HeartDisease • GenHealth vs Heart disease

Link for coding from the original CDC data form for Physical Health variable and General Health https://www.cdc.gov/brfss/annual_data/2020/pdf/codebook20_llcp-v2-508.pdf

3, The result was showing bias because some populations were under represented inoverall sample. the data was not collected equally So for each total race , physicalHealth, GenHealth tried to calculate the average of each Heartdisease=yes / Total

4, for each (Race , PhysicalHealth, GenHealth) created suitable chart

5, for each (Race , PhysicalHealth, GenHealth) calculated summary stastics That means (Total cases, mean, Median, std)

At the end declared my analysis and coming back to the main question:

DOES RACE , PHYSICAL HEALTH, GENERAL HEALTH PLAYS ROLE FOR HAVING HEART DISEASE:

The answer is: According to the data group of races we can conclude American Indian/Alaskan Native sample has 10% heart diseases which is the highest. (but the population sample is not large enough to verify)

	and Asians 3.3% of the group has heart disease which is the lowest %.

for physical Health analysis we can definitly say that heart disease can be affected by physical health, the more you are fit the less you will be affected by heart disease also general health plays role on heart disease.

Harshh Harshh's main role in the project - To answer the sub-question: Does sleep time plays a role?

First checked the documentation on the CDC website to understand how the sleep time data was collected. ##REFERENCE: https://www.cdc.gov/brfss/annual_data/2020/pdf/codebook20_llcp-v2-508.pdf (page 23) Began by checking the distribution of the sleep time data. Plotted a bar chart for this purpose. Based on the chart, decided to get rid of sleep times data which had less than 1% of the total data. The cut-offs are represented with a vline.

Next, calculated the total no. of people, no. of people having heart disease and not having heart disease. Further, I calculated the percentage of the later 2 categories.

Then, plotted a bar chart to visualize the analysis and finally, infered conclusions:

Suad Suad's part of the Project1- team 6 was to find out if lifetyles play a factor in heart disease : Question: Does Smoking, and Drinking alcohol play in heart disease? The data was located in Resources folder heart_2020_cleaned.csv https://www.kaggle.com/code/christophergd/introduction-to-seaborn-heart-attack-data/input? select=heart.csv

  1. as the data was already cleaned, Suad used the following columns to analyze Smoking and Alcohol drinking • HeartDisease • Smoking • Dringking alcohol

Smoking and Heart Disease

  1. Suad calculated The total smoker with heart disease • Smoking vs HeartDisease • Dringking alcohol
  2. The result was showing bias because the majority of the population didn't suffer heart disease in the overall sample.
  3. Suad Plotted a pie chart for Smokers who had heart disease, Smokers who had no heart disease, non smokers who had heart disease, non smokers who had heart disease

Alcohol Drinking and Heart Disease

  1. The result was showing bias because alcohol consumption population was under represented in the overall sample. Thus, Suad calculated total number of Alcohol Drinking and non Alcohol Drinking
  2. Plotted a pie chart for Alcohol drinkers who had heart disease, Alcohol drinkers who had no heart disease, Alcohol drinkers who had heart disease, Alcohol drinkers who had heart disease

Jaskirat Problem statement Sub Question: Effect of co-morbidities: Asthma, Kidney Disease, Skin Cancer, Stroke, Diabetes on Heart Disease predictor.

Comorbities increase the risk profile of Heart Disease in the given sample set

Data wa cleaned, regrouped and otherwise formatted. the dataframes were then used to plot bar charts to see association between co-morbidities and heart disease variable

Conclusion

Smoking Alcohol Drinking contribute immensely to heart disease, from the data, smokers and alcohol drinkers who had heart disease were double that of smokers and alcohol drinkers who didn't smoke and didn't drink but had heart disease. It is important to maintain a healthy lifestyle to decrease the chances of suffering from heart disease. It is equally as important for people with heart disease reduce their smoking and drinking.

About

group-project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages