Question: Questions 1. (3 marks) In this assignment we make use of the data creditworthiness . csv which was used in Task 2 of Assignment 1.

 Questions 1. (3 marks) In this assignment we make use ofthe data creditworthiness . csv which was used in Task 2 of

Assignment 1. As before, we wish to predict the credit rating thatwould be assigned to each individual. Recall that data on 2500 customers

Questions 1. (3 marks) In this assignment we make use of the data creditworthiness . csv which was used in Task 2 of Assignment 1. As before, we wish to predict the credit rating that would be assigned to each individual. Recall that data on 2500 customers have been collected, and credit rating for 1962 of them has been assessed as either A, B, or C, coded as 1, 2, or 3, respectively, with the remaining 538 needing to be classied. Write the code to split the dataset into 50% training set and 50% test set and only include the data with known ratings. 2. Using default settings, t a decision tree to the training set predict the credit ratings of customers using all of the other variables in the dataset. (a) {2 marks} Report the resulting tree. (b) {2 marks) Based on this output, predict the credit rating of a hypothetical \"median\" customer, i.e., one with the attributes listed in Table In showing the steps involved. Table 1: Attributes of the median person in the credit-worthiness dataset. functionary 0 re-balanced (paid back) a recently overdrawn current acount F130 credit score gender 0. accounts at other banks credit refused in past? years employed savings on other accounts self employed? max. account balance 12 months ago min. account balance 12 months ago avrg. account balance 12 months ago max. account balance 11 months ago min. account balance 11 months ago avrg. account balance 11 months ago max. account balance 10 months ago min. account balance 10 months ago avrg. account balance 10 months ago max. account balance 9 months ago min. account balance 9 months ago avrg. account balance 9 months ago max. account balance 8 months ago min. account balance 8 months ago avrg. account balance 8 months ago max. account balance 7 months ago min. account balance 7 months ago avrg. account balance 7 months ago max. account balance 6 months ago min. account balance 6 months ago avrg. account balance 6 months ago max. account balance 5 months ago min. account balance 5 months ago avrg. account balance 5 months ago max. account balance 4 months ago min. account balance 4 months ago avrg. account balance 4 months ago max. account balance 3 months ago min. account balance 3 months ago comeowcocommencemeowmmmwmwwmwmmmwwmmomwomo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!