DAT 640 Practical R Activity Eight

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

640

Subject

Statistics

Date

Feb 20, 2024

Type

docx

Pages

1

Uploaded by DeaconSeaLionMaster750

Report
DAT 640 Practical R Activity Eight Performance Evaluation With an R Confusion Matrix Overview: During this activity, you will construct a classification algorithm and then add a confusion matrix to assist with model evaluation. Instructions: Complete the lab activities below. Provide responses to the questions and screenshots when prompted. Please note: This assignment will be submitted and graded in Brightspace. Part 1 : Complete uCertify Lab 11.9.1 Analyzing Cost-benefit using Data-driven Misclassification Costs . Take a screenshot illustrating successful execution of the lab R commands. Part 2 : You will continue to utilize the uCertify lab environment for the second part of this assignment. Visit the R data website and choose a data set from the provided list. Then, choose and construct a classification algorithm on this data set, such as decision trees, random forest, or logistic regression. Then, you will build a confusion matrix and a ROC chart to evaluate the model. To complete this activity, follow the steps below: 1. Visit R Data and select one of the following data sets: MASS birthwt (Target: low [indicator of birth weight less than 2.5 kg]) Boot urine (Target: r [Indicator of the presence of calcium oxalate crystals]) CarData TitanicSurvival (Target: survived [Indicating they survived the incident]) Ecdat Car (Target: choice [Vehicle of choice from six options]) Ecdat Fishing (Target: mode [recreation fishing mode choice: beach, pier, boat, and charter]) Ecdat Katsup (Target: choice [choice of brand of katsup {heinz, hunts, delmonte, and stb}]) 2. Describe the data set you chose and the algorithm used to predict the derived classes. 3. Build a classification model using decision trees, logistic regression, or random forest. Provide screenshots of the confusion matrix and discuss the results. 4. Provide screenshots of the ROC chart along with two paragraphs discussing the results. Include details on how the confusion matrix and ROC chart can assist with model evaluation. The following websites may be of assistance in your submission: A Beginner’s Guide to Learning R With the Titanic Dataset Titanic Tutorial in R! Confusion Matrix in R: A Complete Guide How to Create a ROC Curve in R
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help