



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Cardiovascular diseases is one the leading cause of death in in the United States and other developed countries. The early prognosis of cardiovascular diseases can aid in making decisions on lifestyle changes in high risk patients and in turn reduce the complications. Framingham study is an dataset with the follow-up 10-year risk of future coronary heart disease (CHD). It includes over 4,000 records and 15 attributes of patients’ information. The objective of this logistic regression intends to pinpoint the most relevant/risk factors of heart disease as well as predict the overall risk using regression machine learning. The method of checking assumption of linear regression is readily available. Here I would like to explore how to check the assumption of logistic regression. Feature selection using stepwise selection or Lasso regression to pinpoint the relevant risk factors
The dataset is publically available on the Kaggle website, and it is from an ongoing ongoing cardiovascular study on residents of the town of Framingham, Massachusetts. The classification goal is to predict whether the patient has 10-year risk of future coronary heart disease (CHD). male: male or female; age: age of the patient; currentSmoker: whether or not the patient is a current smoker (Nominal) cigsPerDay: the number of cigarettes that the person smoked on average in one day. BPMeds: whether or not the patient was on blood pressure medication (Nominal) prevalentStroke: whether or not the patient had previously had a stroke (Nominal) prevalentHyp: whether or not the patient was hypertensive (Nominal) diabetes: whether or not the patient had diabetes (Nominal) totChol: total cholesterol level (Continuous) sysBP: systolic blood pressure (Continuous) diaBP: diastolic blood pressure (Continuous) BMI: Body Mass Index (Continuous) heartRate: heart rate glucose: glucose level (Continuous) 10 year risk of coronary heart disease CHD (binary: “1”, means “Yes”, “0” means “No”)
Within the broad framework of General Linear Models (GLM), Logistic regression conducts binary classification by generating class probabilities.
One rule of thumb is that there should be at least 10 observations with the least frequent outcome for each independent variable. We can check this by retrieving the value counts for each variable.(mainly for categorical). prevalentStroke will be leave out from analysis
Data here show the slightly decreased Accuracy and Kappa in the Lasso Regression. Usually with the simple model treads out with decreased prediction performance