Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

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

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92239015
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

A cell phone company offers 15 different voice packages and

A cell phone company offers 15 different voice packages and 15 different data packages. Of those, 6 packages include both voice and data. How many ways are there to choose either voice or data, but not both?

How do you find the minimum sample size when population

How do you find the minimum sample size when population standard deviation is anywhere between 14 to 24, and the half-width B desired could be anywhere between 2 to 7?

Suppose you bought a five-year zero-coupon treasury bond

Suppose you bought a five-year zero-coupon Treasury bond with $ 1000 face value for $800. . Answer the following questions: (a) What is the yield to maturity on the bond? (b) Assume the yield to maturity on comparable bo ...

Two fair dice are rolled and the sum of the points is noted

Two fair dice are rolled and the sum of the points is noted. Find the probability that the sum is 6 given that at least one of the numbers is less than 3.

A population has a mean mu79 and anbspstandard deviation

A population has a mean μ=79 and a standard deviation σ=24. Find the mean and standard deviation of a sampling distribution of sample means with sample size n=248 μx= ?Simplify your? answer. σx= rounded to three decimal ...

What level of measurement is required for qualitative

What level of measurement is required for qualitative variables? What level of measurement is required for quantitative variables? Can both types be used to describe both samples and populations? Why or why not?

A new type of soft drink from frackly inc is sold in 500

A new type of soft drink from Frackly Inc. is sold in 500 milliliter (ml) bottles. The mean volume of drink placed in a bottle is 490 ml with a standard deviation of 6.1 ml. Assuming a normal distribution of the data, wh ...

There is an 8 2-year bond which we buy now at which point

There is an 8%, 2-year bond, which we buy now at which point the required rates are 6%. If we intend to sell it in 2 years, when the market rates of interest are 2%, what is the market price of the bond then and now? A 1 ...

A food safety guideline is that the mercury in fish should

A food safety guideline is that the mercury in fish should be below 1 part per million? (ppm). Listed below are the amounts of mercury? (ppm) found in tuna sushi sampled at different stores in a major city. Construct a 9 ...

The diameter of ping pong balls manufactured at a large

The diameter of Ping Pong balls manufactured at a large factory are approximately normally distributed with a mean diameter of 1.30 inches and a standard deviation of .04 inches. Use Excel to calculate the probability of ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As