Create a regression tree using the accompanying data set (predictor variables: x 1 to x 4 ;
Question:
Create a regression tree using the accompanying data set (predictor variables: x1 to x4; target: y). Select the best-pruned tree for scoring and display the full-grown, best-pruned and minimum error trees.
a. What is the minimum validation MSE in the prune log? How many decision nodes are associated with the minimum error?
b. How many leaf nodes are in the best-pruned and minimum error trees?
c. Display the best-pruned tree. What are the predictor variable and split value for the first split (root node) of the best-pruned tree? What are the rules that can be derived from the root node?
d. What are the RMSE and MAD of the best-pruned tree on the test data?
e. According to the best-pruned tree, what is the predicted y for a new observation with the following values: x1 = 20; x2 = 40; x3 = 36; x4 = 8.3?
Step by Step Answer:
Business Analytics Communicating With Numbers
ISBN: 9781260785005
1st Edition
Authors: Sanjiv Jaggia, Alison Kelly, Kevin Lertwachara, Leida Chen