Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. Use rpart and rpart.p|ot packages to create decisions trees and answer the questions below. 9.1. (8 points) Create a decision tree using variable gen_e|ection

image text in transcribed
9. Use \"rpart" and "rpart.p|ot" packages to create decisions trees and answer the questions below. 9.1. (8 points) Create a decision tree using variable gen_e|ection as the target (class) variable and the variables twitter, facebook, and youtube as the predictors. Paste the tree in the space below. 9.2. (4 points) How many candidates who had a facebook campaign account won the election? 9.3. (4 points) Use "summary" to check which variable had the highest importance in the decision tree. List the variables based on the highest to lowest importance. 9.4. (8 points) How many of the candidates were correctly classified in the decision tree? 9.5. (4 points) Which leaf node is the purest node in the decision tree? Use GINI Index

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

Recommended Textbook for

Managing Information Technology

Authors: Carol Brown, Daniel DeHayes, Jeffrey Hoffer, Wainright Marti

7th Edition

132146320, 978-0132146326

More Books

Students also viewed these General Management questions

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago