Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started