Build the confusion matrix for the test data

Assignment Help Basic Statistics
Reference no: EM131430233

Decision Tree Classification

In this exercise, you will use the RStudio interface to run the conditional inference tree (ctree) algorithm for classification. You will run the method on a training data to build the model and will evaluate the model on a test data.

1612_figure.jpg

Exercise Instructions

Part 2 - Run an exercise on theCredit Approval dataset and write a report on your findings. The report needs to cover the exercise key points below in order and in your own words.

1. Introduction
- Identify the dependent variable in the Credit Approval dataset.
- Identify the independent variables in the Credit Approval dataset.
- What do you expect the ctree method to accomplish for the Credit Approval data?

2. Data Pre-processing. Load the data into R studio, and discuss the data preprocessing steps (if any) you run before splitting the data into training and test set. For each step, include the command you ran, the output, and an explanation of what the step accomplishes.

3. Training and test data
- Why do we split the dataset into training and test data?
- Run the set.seed(1234) command and the commands to split the data into training set containing 70% of instances and test set containing the remaining 30% of instances. Include the commands in the report.

4. Build the ctree model on training data
- Run the command to build the ctree model. Store the model in a variable called model. Include the command in the report, and discuss the input parameters you used.
- Run the print(model) command to output the model we built in the textual format. Include the command and the output in the report.
- Interpret the textual structure of the model, including the nodes splitting, and the leaf nodes.
- Which independent variables could be the significant predictors of the dependent variable in your data? Why?

5. Visualize the tree - run the plot(model) command to build the tree plot. Include the command, the plot, and the interpretation of the tree structure in the report.

6. Confusion matrix
- Build the confusion matrix for the training data. Include the command and the matrix in the report.
- What is the classification accuracy for the training data?
- Besides classification accuracy, what additional information does the confusion matrix provide?

7. Evaluate the model on test data
- Build the confusion matrix for the test data and. Include the command and matrix in the report
- What is the classification accuracy for the test data?
- How does the classification accuracy for the test data compare to the classification accuracy for the training data?

8. New instance - Suppose that you have a new Credit Card application record, and the value of the dependent variable is unknown. How would you use the ctree model to classify that record?
9. Summary
- What differences between the Apriori and ctree methods did you observe?
- Do the missing values affect the ctree results?
- Which part of this exercise did you find the most challenging, and what steps you took to resolve the challenge?

Exercise Deliverables

Submit the following files in the Exercise 5 Assignment folder.
- The report addressing the key points above
- An R script with commands your ran and brief comments on the commands purpose

Attachment:- CreditApproval.csv

Verified Expert

This assignment is about a model building using ctree function in R studio and see how it works on test data-set. It also helps us understand how the tree looks like, the root node till the leaf node.

Reference no: EM131430233

Questions Cloud

Product development process to prevent the failure : Identify a new product that you have seen introduced recently that totally failed in the market. What could have been done differently in the new product development process to prevent the failure?
What is the labor productivity of this operation : In an assembly operation at a furniture factory, six employees assembled an average of 450 standard dining chairs per five-day week. What is the labor productivity of this operation? Which of the following is the FINAL step in a forecasting system?
What is the frame buffer address of the pixel with screen : Suppose you have a system with an 8inch by 10inch video monitor that can display 100 pixels per inch. If memory is organized in one-byte words, the starting frame buffer address is 0, and each pixel is assigned 6bits of storage, what is the frame ..
Analyze the relationships among academic knowledge : Synthesize diverse perspectives to achieve an interdisciplinary understanding. Analyze the relationships among academic knowledge, professional work, and the responsibilities of local and global citizenship
Build the confusion matrix for the test data : Identify the dependent variable in the Credit Approval dataset and identify the independent variables in the Credit Approval dataset and Build the confusion matrix for the training data. Include the command and the matrix in the report.
Plot weight versus length and weight versus width : Plot weight versus length and weight versus width. Include the least-squares lines in these plots. Do these relationships appear to be linear? Explain your answer.
Develop a brief report comparing the sales volumes : Your supervisor has asked you to prepare a brief report comparing the sales volumes and the consistency of sales of these four salespersons. Use the mean sales for each salesperson to compare the sales volumes.
The responsibilities of the operations manager : The responsibilities of the operations manager are: The mean absolute deviation is used to:
Derive decision parameters for midpoint ellipse algorithm : Derive decision parameters for the midpoint ellipse algorithm assuming the start position is (rx,0) and points are to be generated along the curve path in counterclockwise order.

Reviews

inf1430233

6/20/2017 6:08:27 AM

Exceptionally proficient. work was submitted route before the due date, and she took after every one of the directions. She is constantly accessible and open to transforming anything you are not happy with, Highly prescribed.

Write a Review

Basic Statistics Questions & Answers

  Statistics-probability assignment

MATH1550H: Assignment:  Question:  A word is selected at random from the following poem of Persian poet and mathematician Omar Khayyam (1048-1131), translated by English poet Edward Fitzgerald (1808-1883). Find the expected value of the length of th..

  What is the least number

MATH1550H: Assignment:  Question:     what is the least number of applicants that should be interviewed so as to have at least 50% chance of finding one such secretary?

  Determine the value of k

MATH1550H: Assignment:  Question:     Experience shows that X, the number of customers entering a post office during any period of time t, is a random variable the probability mass function of which is of the form

  What is the probability

MATH1550H: Assignment:Questions: (Genetics) What is the probability that at most two of the offspring are aa?

  Binomial distributions

MATH1550H: Assignment:  Questions:  Let’s assume the department of Mathematics of Trent University has 11 faculty members. For i = 0; 1; 2; 3; find pi, the probability that i of them were born on Canada Day using the binomial distributions.

  Caselet on mcdonald’s vs. burger king - waiting time

Caselet on McDonald’s vs. Burger King - Waiting time

  Generate descriptive statistics

Generate descriptive statistics. Create a stem-and-leaf plot of the data and box plot of the data.

  Sampling variability and standard error

Problems on Sampling Variability and Standard Error and Confidence Intervals

  Estimate the population mean

Estimate the population mean

  Conduct a marketing experiment

Conduct a marketing experiment in which students are to taste one of two different brands of soft drink

  Find out the probability

Find out the probability

  Linear programming models

LINEAR PROGRAMMING MODELS

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd