Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

1. In this part, we are going to build a decision tree classifier in MATLAB to predict the acceptability of cars. The dataset can be found in the CSV file car.csv. The first six columns are the attributes of the cars and the last column is class label denoting the evaluated car acceptability. The attribute information is shown in the following table:

Attribute

Description

Possible values

buying

Buying Price

Vhigh,high,med,low

Maint

Maintenance Price

Vhigh,high,med,low

Doors

No.of doors

2,3,4,5 more

Persons

Passenger capacity

2,4 more

Lug boot

Size of luggage boot

Small big med

Safety

Estimated safety of the car

Low ,med, high

Accept (class label)

Acceptability of the car

Unacc,acc,good,vgood

a. All the six attributes (except the class label) require encoding (i.e. transforms them into integral values). Propose an encoding scheme, and implement it into a MATLAB function to perform the encoding. The answer should include the followings:

i. Encoding scheme for each attribute (preferably presented as an encoding table)

ii. MATLAB function source codes implementing the encoding scheme in (i)

b. By using the first 75% of the tuples for training, and the remaining 25% for testing, build a MATLAB decision tree classifier to predict the acceptability of the cars in the testing dataset.

The answer should include the followings:

 i. MATLAB source codes building classifier, and car acceptability prediction using the testing dataset. Clear instructions must be given for the execution of your source codes, or marks will be deducted otherwise

ii. The decision tree built, accuracy, sensitivity, and specificity (i)) Submit your MATLAB source codes in separate MATLAB files. c. Why is the accuracy in

(b.ii) much lower than sensitivity and specificity?

2. Name two techniques in data pre-processing. Discuss their basic principles and illustrate one example for each technique discussed.

3. The following table presents the survey results about the preference of the mobile phone game apps.

Age

Gender

Occupation

Preferred type of game apps

29

F

Manager

Puzzle

25

M

Manager

Action

27

M

Student

Sports

17

M

Student

Action

23

M

Clerk

Puzzle

30

F

Clerk

Sports

14

M

Student

Puzzle

28

F

Clerk

Sports

22

M

Clerk

Action

36

M

manager

puzzle

Using the above table as the training dataset, build a decision tree by applying Hunt's algorithm. The class label is the preferred type of game apps. Age, gender, and occupation are the attributes. Split the attributes using multi-way split with GINI index. Show clearly your steps and calculations.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91419152
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Computer Engineering

We use typecasting when we want to cast a value of one type

We use typecasting when we want to cast a value of one type to a value of another type. Specifically, in this program, we want to convert a value of type double to a value of type int. Recall that Java lets you assign a ...

Assignmentnbspon information systems audit and

Assignment  on Information Systems audit and controls Assignment purpose: Elaborate on the different types of control that are applied in a hospital (Preventive, detective and corrective control). Evaluate the logical an ...

Suppose i am designing a personnel database for a

Suppose I am designing a personnel database for a university. The university has three types of personnel: students, staff, and faculty. Here are the characteristics of the three groups: -All three groups have a name and ...

Systems analysis project 12 please answer the 2 questions1

Systems analysis project 12: please answer the 2 questions 1. Develop a process for managing change requests and design a form to handle a generic change request. The process should include a contingency plan for changes ...

Wildhorse inc has outstanding bonds that will mature in six

Wildhorse, Inc., has outstanding bonds that will mature in six years and pay an 8 percent coupon semiannually. If you paid $1,009.52 today and your required rate of return was 7.0 percent.  (Round intermediate calculatio ...

Question scrum dsdm and agile unified processbullcompare

Question: "Scrum, DSDM, and Agile Unified Process" • Compare and contrast agile unified process and the process groups outlined in Project Management Body of Knowledge (PMBOK). Provide one (1) example of each process (Sc ...

Answer the question given belowwhat is the relationship

Answer the question given below What is the relationship between a context diagram and diagram 0, and which symbol is not used in a context diagram? The response must be typed, single spaced, must be in times new roman f ...

Assignmentyou have been requested to develop a healthcare

Assignment You have been requested to develop a healthcare system with the following characteristics: A hospital plans to build a healthcare system, which manages patient information. A hospital has a CEO, 5 doctors, 5 n ...

You have requested to develop a program that will record

You have requested to develop a program that will record and process the rainfall totals of a 12 month period. You would use an array to store each month's total. Once all 12 months amounts are entered then your solution ...

Question suppose you are given a turing machine m not

Question : Suppose you are given a Turing machine M (not necessarily a decider), a string w, and a (different) magic genie. You can ask the magic genie whether a certain Turing machine accepts a certain input string, and ...

  • 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