Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sub-problem 4: (15 points): effect of mtry Parameter mtry in the call to randomForest defines the number of predictors randomly chosen to be evaluated for

Sub-problem 4: (15 points): effect of mtry Parameter mtry in the call to randomForest defines the number of predictors randomly chosen to be evaluated for their association with the outcome at each split (please see help page for randomForest for more details). By default, for classification problems it is set as a square root of the number of predictors in the dataset. Here we will evaluate the impact of using different values of mtry on the error rate by random forest. Using the same approach as above, generate data with nObs=5000, deltaClass=2, nClassVars=3 and nNoiseVars=20 Run randomForest on those data with mtry=2, 5 and 10 and obtain corresponding test error for these three models. Describe the impact of using different values of mtry on the test error rate by random forest and compare it to that by LDA/KNN

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Managerial Accounting

Authors: Ray H. Garrison, Eric W. Noreen, Peter C. Brewer

12th Edition

9780073526706

Students also viewed these Mathematics questions