Question 5: Decision Tree (2+2+2+2+2 marks) The output below comes from running the rpart function in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 5: Decision Tree (2+2+2+2+2 marks) The output below comes from running the rpart function in the R Statistical Environment on the car insurance dataset just described. 1) root 5000 1250 0 (0.75 0.25) 2) female>=0.5 2530 506 0 (0.80, 0.20) 4) lowSES < 0.5 1870 1500 (0.92 0.08) 5) lowSES>=0.5 660 231 0 (0.65 0.35) 3) female < 0.5 2470 741 0 (0.70 0.30) 6) age> 31.5 1820 455 0 (0.75 0.25) 7) age < 31.5 650 299 0 (0.54 0.46) * * * 14) turbo < 0.5 470 141 0 (0.70 0.30) 15) turbo>=0.5 180 45 1 (0.25 0.75) * * (A) List the terminal nodes (also called leaves) from the Rpart classification tree. (B) Calculate the entropy improvement from the first split. (C) Produce the confusion matrix for the classification tree. (D) Calculate the averaged class error for the classification tree. (E) Which node does the customer with ID 2 belong to? For a new customer with the same values of the female, age, turbo and low_SES attributes, do you predict that they will make a large claim within 12 months? Question 5: Decision Tree (2+2+2+2+2 marks) The output below comes from running the rpart function in the R Statistical Environment on the car insurance dataset just described. 1) root 5000 1250 0 (0.75 0.25) 2) female>=0.5 2530 506 0 (0.80, 0.20) 4) lowSES < 0.5 1870 1500 (0.92 0.08) 5) lowSES>=0.5 660 231 0 (0.65 0.35) 3) female < 0.5 2470 741 0 (0.70 0.30) 6) age> 31.5 1820 455 0 (0.75 0.25) 7) age < 31.5 650 299 0 (0.54 0.46) * * * 14) turbo < 0.5 470 141 0 (0.70 0.30) 15) turbo>=0.5 180 45 1 (0.25 0.75) * * (A) List the terminal nodes (also called leaves) from the Rpart classification tree. (B) Calculate the entropy improvement from the first split. (C) Produce the confusion matrix for the classification tree. (D) Calculate the averaged class error for the classification tree. (E) Which node does the customer with ID 2 belong to? For a new customer with the same values of the female, age, turbo and low_SES attributes, do you predict that they will make a large claim within 12 months?
Expert Answer:
Posted Date:
Students also viewed these mathematics questions
-
Each of the systems in Problems 11 through 18 has a single critical point (x 0 , y 0 ). Apply Theorem 2 to classify this critical point as to type and stability. Verify your conclusion by using a...
-
Kitchen Mate Inc. is estimating the activity cost associated with producing ovens and refrigerators. The indirect labor can be traced into four separate activity pools, based on time records provided...
-
Crawford Labs has increased its profitability dramatically by using models to allocate its sales force among the company's major drugs. To guide that effort, a nonlinear sales-response curve is...
-
Determing the Necessary Cost Savings for Investigation Assume that the cost of investigation is \(\$ 2,000\) and the cost of correction is \(\$ 500\) for positive and negative variances. The manager...
-
Safar Corporation is considering the elimination of one of its segments. The segment incurs the following fixed costs. If the segment is eliminated, the building it uses will be sold. Required Based...
-
Question 4 of 10 View Policies Current Attempt in Progress -/10 In the figure, a long straight wire carries a current l = 26.2 A and a rectangular loop carries current 2-24.2 A. Take a 0.908 cm, b =...
-
Solve for x, perform number line, and intervals and test points table. Solve for x: (2x - 1)/(x + 3) = 5 Solve for x: (x ^ 2)/(x - 3) = (x + 2)/(2x - 5) Solve for x: (x - 1)/(X + 3) > 0 Solve for x:...
-
Prepare an individual, case-based internalisation proposal report about Dan Murphys, considering expansion (opening a chain of stores) into either New Zealand or the United Kingdom. They need...
-
Pspice circuit simulator. Run DC sweep and answer question at the end. Post plot/graph results. 2) OrCAD SIMULATION: Using OrCAD or another PSpice simulator, create a circuit that can plot the I-V...
-
Sandy was a 10th grader when one of her teachers started writing personal, often suggestive comments on her homework. They began exchanging notes and telephone calls, until one day the teacher asked...
-
You are currently an HR Generalist for a large internal corporation. You completed your degree in Business Administration with a focus on Human Resource Management about 10 years ago. Recently, you...
-
Describe and analyze Vietnam's basic formal and informal institutions. How do the institutions of Vietnam help to explain its progress/lack of progress?
-
Select true or false for the following statements. 1. Inventory and accounts receivable are both carried at net realizable value. 2.Restricted cash should be reported on the balance sheet as part of...
-
When you weigh yourself on good old terra firma (solid ground), your weight is 142 lb. In an elevator your apparent weight is 121 lb. What are the direction and magnitude of the elevator's...
Study smarter with the SolutionInn App