Question

You need the following dataset to complete this

assignment:

T2DRecords.csv

In "T2DRecords.csv" data above, five independent

variables are used to predict the probability that a

patient has type 2 diabetes. The independents are:

BodyWeight: Each patient's body weight reported in

the survey.

GymVisits: Each patient's number of visits to gyms

every week.

State: In which state each patient is current residing in.

The assumption is certain local diet may increase the

risk of getting type 2 diabetes.

SurgarIntake: The average amount of sugar each

patient takes every week.

ChLevel: Each patient's cholesterol level measured in

this survey.

The dependent variable in this data set is T2D with 1

indicating a patient has type 2 diabetes and 0

indicating a patient does not have type 2 diabetes./nQuestions:

1. Build a logistic regression model, and use all given

independent variables to predict the probability that a

patient has type 2 diabetes. In your assignment

submission, please make a screen capture of your

analysis results. Please indicate which independent

variables are significant, and the practical implications

if they are significant.

2. Build a decision tree model, and use all given

independent variables to predict the probability that a

patient has type 2 diabetes. In your assignment

submission, please make a screen capture of your

analysis results. Also, create a decision tree diagram to

visualize your analysis.

Please save the screenshot of the analysis results and

your interpretations of the results into a Word

document, and name it as "MyAssignment2". Thank

you!

Question image 1Question image 2