Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 : Load the rpart library into your R environment ( rpart contains the tree function necessary for fitting CART models ) . Partition
Question : Load the rpart library into your R environment rpart contains the tree function necessary for fitting CART models Partition the data set into training and testing sets. Build a single classification tree with the training data and HighVol as the target. Hint: Be sure to exclude the Sales variable from the model since it was used to create our outcome variable.Which variables were used in the tree model?How would you use the model to predict whether or not a store would produce a high volume?What is the accuracy of the model when using the training and test data? Use the function confusionMatrix to create a misclassification table to include with your answerConsider the following store: ShelvLoc Good, Price no local advertising budget, and local income of $ Based on the classification model, would a store with those features be predicted to be a highperforming store? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started