Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please work on the data set OJ again and use 102 as the seed for all the following parts. Take Purchase as the response variable

Please work on the data set OJ again and use 102 as the seed for all the following parts. Take Purchase as the response variable and the other attributes as predictors. Randomly split the data set into two sets: the training data set with 800 observations and the rest as the test data set. Use the Random Forrest method with 600 trees to build models with m = 2, 3, 4, 5, 6 and find the test error rate in each case. Please use a loop to complete the work.

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

Students also viewed these Databases questions