Build a decision tree by applying hunts algorithm

Assignment Help Basic Computer Science
Reference no: EM13849372

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.

Reference no: EM13849372

Questions Cloud

Describe how performance and quality measures : Describe how performance and quality measures are aligned to an organization's mission, vision, and strategic plan in general. Then, describe how the measures are aligned with the mission, vision, and strategic plan of your organization
Network the critical path is the longest path : In a __________ network the critical path is the longest path through the network.
Budget-constrained and profit-conscious style of evaluation : Understand how MAS can be are used to inform performance evaluation in organisations - evaluate the effectiveness of performance evaluation systems in organisations, both from a technical and behavioural perspective
Working in a business to learn the ropes : You have a two children, A and B. Child A is not going to college but is working in a business to learn the ropes. Child A plans on opening a business someday. Child B is attending college. You put a certain amount of money into an account.
Build a decision tree by applying hunts algorithm : build a decision tree by applying Hunt's algorithm
Analysis of the ratios calculated : Assess Wal-Mart, Stores Inc. concerning liquidity, solvency, profitability, and stock performance as of January 31, 2015. For each area, you should calculate the ratios and provide an analysis of the ratios calculated. Include historical stock pri..
What information could you share with this parent : What information could you share with this parent that would educate her about the importance and the safety of vaccinations? How would you provide this information
What price should newnovatel sell bonds : Newnovetel cellular is issuing bonds pay no interest but can be converted into $9K at maturity in 17 years. To price them competitively, it was determined they should yield eight percent compounded annually. At what price should Newnovatel sell these..
An investment has an expected return : An investment has an expected return of 11 percent per year with a standard deviation of 24 percent. Assuming that the returns on this investment are at least roughly normally distributed, how frequently do you expect to earn between -13 percent and ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Stage of ec purchase decision-making process

Banner advertising on Websites helps trigger a realization taht there is a gap between reality and a desired state, which occurs in the ______ stage of the EC purchase decision-making process.

  Prepare a paper on father of computer science

Write a short paper for the Write a short biography.

  Involved in implementing a database for the restaurant

Draw a conceptual ER diagram in Information Engineering format as discussed in the course that  describes the following aspects involved in implementing a database for the restaurant.

  Lists and arrays can be valuable tools

Lists and arrays can be valuable tools

  Develop an excel retail or business workbook

You will develop an Excel retail/business workbook and show how to use excel in real life. When learning a business tool like Excel, its power and capabilities are best understood when Excel is used to solve a "REAL LIFE" problem

  Describe when you would want to use double hashing

Briefly describe when you would want to use double hashing. Also, provide an example of a rule that can be used for a double hashing probe sequence.

  What follows the in operator

What other SQL operator can sometimes be used to perform the same operation as the IN operator? Under what circumstances can this other operator be used.

  Write a class encapsulating a course

I must include a constructor, the accessors and mutators, and methods toString and equals. As part of this assignment, I have to write a client class to test all the methods

  Explain process of extracting contours from edge image

Assume that the edge points in an image are extracted using a robust edge detection. Explain the process of extracting the contours from this edge image.

  Describe how use of equipment, software, and multiplexing

Describe how use of equipment, software, and multiplexing could aid in improving use for communications which would reduce network congestion.

  Clearly define the scope of applying optimization

Describe a design problem of your interest where optimization can be applied to enrich the design. It could be a problem you are currently working on ( e.g. , Capstone design) or a problem you plan to work on. Clearly define the scope of applying opt..

  Analyze the use of gestures in ipads

Analyze the use of gestures in iPads. Address how users feel about gestures. Evaluate how users feel about the user input when it comes to filling out complicated forms on the iPad.

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