Question: 4. For this problem, you use the ILPD (Indian Liver Patient Dataset) data. Import the data from https://raw.githubusercontent.com/hgweon2/data/main/ ILPD2. txt The imported dataset contains

4. For this problem, you use the ILPD (Indian Liver Patient Dataset)

data. Import the data from https://raw.githubusercontent.com/hgweon2/data/main/ ILPD2. txt The imported dataset contains

4. For this problem, you use the ILPD (Indian Liver Patient Dataset) data. Import the data from https://raw.githubusercontent.com/hgweon2/data/main/ ILPD2. txt The imported dataset contains 579 observations with 11 variables. Use Selector as the response variable and the others as predictors. Additional information about the variables can be found at: https : //archive . ics . uci . edu/m1/datasets/ILPD+%281ndian+Liver+Patient+Dataset%29. For the following questions, use the first 400 observations of the data set as the training data and the rest (179 observations) as the test data. (a) Fit a logistic model to the training data. Use the trained model to predict the test data (cutoff 0.5). Using the prediction results, make a confusion matrix between Y and Y and report the accuracy, sensitivity (recall), specificity and precision of the prediction. (1 pt) (b) Repeat (a) using cutoff 0.8. (1 pt) (c) If we want to increase the sensitivity of prediction (using the same logistic model), how should the cutoff be changed from 0.5 (decrease/increase)? Briefly explain. (2 pt)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!