Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Abstract Analytic Number Theory

Authors: John Knopfmacher

1st Edition

0486169340, 9780486169347

More Books

Students also viewed these Mathematics questions

Question

8. What are the costs of collecting the information?

Answered: 1 week ago