Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use the Pima.tr data set in MASS package. This dataset includes diabetes information about 532 women who were at least 21 years old of

image text in transcribed

1. Use the Pima.tr data set in MASS package. This dataset includes diabetes information about 532 women who were at least 21 years old of Pima Indian heritage and living near Phoenix, Arizona. > library (MASS) > data (Pima.tr) npreg glu bp skin bmi number of pregnancy plasma glucose concentration in an oral glucose tolerance test diastolic blood pressure (mm Hg) triceps skin fold thickness (mm) body mass index (weight in kg/(height in m)?) diabetes pedigree function age in year Yes or No, for diabetic according to WHO criteria ped age type (a) Fit a logistic regression model and discriminant analysis model. (b) Using a classification threshold of 50%, produce confusion matrices under logistic regression and LDA. What are the sensitivities and specificities for each model, and which model do you prefer? The information about the variables is as follows: (c) Produce ROC curves for A and B, and report each model's AUC. Which model seems to perform better on the training data? (d) Choose the "best" classification threshold (perhaps other than 50%) based on some criterion involving the TPR (true positive rate) and FPR (false positive rate). Would you use the same thresholds for both models? (e) Repeat (a) for your favorite classification threshold from part (c) 1. Use the Pima.tr data set in MASS package. This dataset includes diabetes information about 532 women who were at least 21 years old of Pima Indian heritage and living near Phoenix, Arizona. > library (MASS) > data (Pima.tr) npreg glu bp skin bmi number of pregnancy plasma glucose concentration in an oral glucose tolerance test diastolic blood pressure (mm Hg) triceps skin fold thickness (mm) body mass index (weight in kg/(height in m)?) diabetes pedigree function age in year Yes or No, for diabetic according to WHO criteria ped age type (a) Fit a logistic regression model and discriminant analysis model. (b) Using a classification threshold of 50%, produce confusion matrices under logistic regression and LDA. What are the sensitivities and specificities for each model, and which model do you prefer? The information about the variables is as follows: (c) Produce ROC curves for A and B, and report each model's AUC. Which model seems to perform better on the training data? (d) Choose the "best" classification threshold (perhaps other than 50%) based on some criterion involving the TPR (true positive rate) and FPR (false positive rate). Would you use the same thresholds for both models? (e) Repeat (a) for your favorite classification threshold from part (c)

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_2

Step: 3

blur-text-image_3

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

In Exercises, find the limit. lim X-8 x + 1 (x + 1)1/3 -2

Answered: 1 week ago