9. Use rpart and rpart.plot packages to create decisions trees and answer the questions below. 9.1....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
9. Use "rpart" and "rpart.plot" packages to create decisions trees and answer the questions below. 9.1. (8 points) Create a decision tree using variable gen_election 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. 10. Now add ttl_receipts and cand_ici to the list of predictors. 10.1. (8 points) Create and paste the decision tree in the space below. 10.2. (10 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. Use "rpart" and "rpart.plot" packages to create decisions trees and answer the questions below. 9.1. (8 points) Create a decision tree using variable gen_election 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. 10. Now add ttl_receipts and cand_ici to the list of predictors. 10.1. (8 points) Create and paste the decision tree in the space below. 10.2. (10 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.
Expert Answer:
Answer rating: 100% (QA)
Decision Tree Analysis 91 Decision Tree with genelection as Target Variable denotes terminal node rp... View the full answer
Related Book For
Federal Taxation 2016 Comprehensive
ISBN: 9780134104379
29th Edition
Authors: Thomas R. Pope, Timothy J. Rupert, Kenneth E. Anderson
Posted Date:
Students also viewed these finance questions
-
Determine which of the four levels of measurement (nominal, ordinal, interval, ratio) is most appropriate for the data below. College rankings Choose the correct answer below. A. The ordinal level of...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study - Workers Need Understanding Too If you walked around a Transocean Sedco Forex oil rig off the coast of New Orleans, you would see something that would amaze you. Almost all workers wear...
-
Kim Corporation, a calendar year taxpayer, has manufacturing facilities in States A and B. A summary of Kims property holdings follows. Determine Kims property factors for the two states assuming...
-
If V is a finite-dimensional vector space and T: V V is a linear transformation such that rank(T) = rank(T2), prove that range(T) ker(T) = {0}.
-
Find the limit. lim lim x2x3 (h-1), + 1 lim
-
A well-designed system can prevent both intentional and unintentional alteration and destruction of data. These data controls can be classified as (1) input controls, (2) processing controls, and (3)...
-
Flexible Manufacturers, Inc., produces small batches of customized products. The accounting system is set up to allocate plant overhead to each job using the following production cost pools and...
-
degrees, the measure of arc FH is 138 degrees, and the measure of arc HB is 20 degrees. Find the measure of
-
You recently took 5,000 square feet of new space that hadn't been built out at all and put in a childcare facility. That project ended up costing $550,000. But, for this project, you have to demo the...
-
Calculate the cost of capital for the E&P (exploration andproduction) and Refining & Marketing divisions using the belowfinancials. Explain your rationale supporting your assumptions inyour 0 answers
-
Consider the function (e) 7sin28-7cose. (a) Find f'(0) = (b) Find the critical point(s) of f(8) on the interval 0s 0s. If necessary, enter your answers as comma separated lists. 0 =>
-
A company will pay a dividend of $7.50 one year from today. The market believes the dividend will grow at a constant rate of 4% forever. The company's stock is currently $58.59. What is the required...
-
Kashish's investment portfolio consists of 50% Pizzalicious Co., 25% Kraft Cheese Int'l and 25% Doughboy Inc. The return on each stock is 10%, 15% and 20% respectively. What is the return on the...
-
Evaluate via odd or even function (x-3x+x) (x4-100) (sinx) dx
-
tion and (b) find the required limit (if it exists). 55. lim x 3 In(2x-5) 56. lim (sin x) 1-401 use a graphing utility to (a) graph the fune 58. lim 890 57. lim (x + 5x+2-x) X-300
-
Tiffany is unmarried and has a 15-year-old qualifying child.Tiffany has determined her tax liability to be $3,525, and heremployer has withheld $1,000 of federal taxes from her paycheck.Tiffany is 2...
-
How will relating product contribution margin s to the amount of the constrained resource they consume help a company maximize its profits?
-
What are the advantages and disadvantages of using debt in a firms capital structure?
-
Maria was planning to paint the interior of her apartment over a three-day weekend. Her employer asked her to work all three days and will pay her $600 overtime. She called a professional painter who...
-
Rodger Powell owns all the stock in Fireside Bar and Grill Corporation in Pittsburgh. Now that he has turned 65, Rodger wants to sell his business and retire to sunny Florida. Karin Godfrey, a...
-
The U.S. 3-month interest rate (unannualized) is 1 percent. The Canadian 3-month interest rate (unannualized) is 4 percent. Interest rate parity exists. The expected inflation over this period is 5...
-
Todays spot rate of the Mexican peso is $.10. Assume that purchasing power parity holds. The U.S. inflation rate over this year is expected to be 7 percent, while the Mexican inflation over this year...
-
You believe that interest rate parity and the international Fisher effect hold. Assume that the U.S. interest rate is presently much higher than the New Zealand interest rate. You have receivables of...
Study smarter with the SolutionInn App