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

  Probability that the mean life-span of a sample

What is the probability that the mean life-span of a sample of 64 randomly selected bulbs will exceed 727 hours?

  The value of the test statistic for testing if one

the value of the test statistic for testing if one population mean is larger than the other based on samples of size 24

  Population proportion for medical malpractice data

Medical Malpractice - An important issue facing Americans is the large number of medical malpractice lawsuits and the expenses that they generate.

  Draw the standard normal distribution

Given that X‾ = 78, σ2 = 25, n = 10, and α = .05, test H0:µ > 80, assuming observations are randomly sampled from a normal distribution. Also, draw the standard normal distribution indicating where Z and the critical value are located.

  Compute the value of the test statistic

Compute the value of the test statistic. (Negative amount should be indicated by a minus sign. Round your answer to 2 decimal places.)

  Determine approximate proportion for the given situations

Using a computer or calculator that provides proportions falling below a specified z-score, determine the approximate proportion for each of the following situations.

  Find single sampling plan that meets producers stipulation

Find the single sampling plan that meets the producer's stipulation and comes as close as possible to meeting the consumer's stipulation.

  Quadratic formula to solve quadratic equations

Is it true that solutions to quadratic equations can always be found using the quadratic formula?

  However if she gives a medium or easy test there is a 05

a professor gives tests that are either hard medium or easy. if she gives a hard test her next test will be either

  Automobile dealers for pricing information

Amy Lloyd is interested in leasing a new Honda and has contacted three automobile dealers for pricing information.

  Sample difference of mean-hypothesis testing

A reasearcher wishes to determine whether people with high blood pressure can reduce their blood pressure by following a particular diet. Use the sample data below to test the claim that the treatment population mean is smaller than the control po..

  Confidence interval for true mean total cholesterol levels

Cholesterol levels are measured as followed: 185 225 240 196 175 180 194 147 223. Generate a 95% confidence interval for the true mean total cholesterol levels in children?

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