Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

****************Use R****************************************************** Use dataset credit-g https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data) Use R and the caret package to tune a good classification model to predict credit risk and to evaluate

****************Use R******************************************************

Use dataset credit-g

https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data)

Use R and the caret package to tune a good classification model to predict credit risk and to evaluate the quality of the model. Try decision trees (rpart in the caret train function).

1. Experiment with the parameters of the decision tree algorithm and determine a good setting for the parameter(s). Can you determine the best parameter value for decision tree learning when applied to this dataset?

2. Experiment with different methods for estimating errors. Specifically try using a) an independent test dataset, b) cross-validation and c) bootstrap. For cross-validation try different numbers for the number of folds. For bootstrap, try both the simple bootstrap (method boot in the train function) and 0.632-bootstrap (method boot632 in the train function). Can you determine the best method for estimating the error?

3. Write a summary. Explain why you believe your parameter values are good. Also explain which method for estimating the error is best and why.

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago