Plot six training points in a two-dimensional space

Assignment Help Data Structure & Algorithms
Reference no: EM13856373

Note: Please include your name and the "Certification of Authorship" (located on Blackboard) form in EVERY document you submit. Thanks.

Part 1. Text Reading:

Decision Trees (Chap. 18 Sec 18.3), Reasoning with uncertainty (Chap. 13, 14)

Course Slides

Part 2. Problems:

(Note: Please include any external reference materials other than the textbook. Use the APA format where appropriate.)

Problem 2.1: Decision Tree

For this question you need to refer to the decision tree section in the Course Slides (Module 2-2) posted on Blackboard.

One major issue for any decision tree algorithm is how to choose an attribute based on which the data set can be categorized and a well-balanced tree can be created. The most traditional approach is called the ID3 algorithm proposed by Quinlan in 1986. The detailed ID3 algorithm is shown in the slides. The textbook provides some discussions on the algorithm in Section 18.3. For this problem please follow the ID3 algorithm and manually calculate the values based on a data set similar to (but not the same as) the one in the course slides. This exercise should help you get deep insights on the execution of the ID3 algorithm. Please note that concepts discussed here (for example, entropy, information gain) are very important in information theory and signal processing fields. The new data set is shown as follows. In this example one row is removed from the original set and all other rows remain the same.

Following the conventions used in the slides, please show a manual process and calculate the following values: Entropy(S),Entropy (Sweather=sunny),Entropy(S weather=windy),Entropy(Sweather=rainy),

Gain (S, weather), Gain (S, parents) and Gain (S, money). Based on the last three values, which attribute should be chosen to split on?

Please show detailed process how you obtain the solutions.

Weekend Weather Parents Money Decision (Category)
W 1 Sunny Yes Rich Cinema
W2 Sunny No Rich Tennis
W3 windy Yes Rich Cinema
W4 rainy Yes Poor Cinema
W5 rainy No Rich Stay in
W6 rainy Yes Poor Cinema
W7 Windy No Poor Cinema
W8 Windy No Rich Shopping
W9 Windy Yes Rich Cinema

Problem 2.2: Decision Tree

The Decision Tree inductive learning algorithm may be used to generate "IF ... THEN" rules that are consistent with a set of given examples. Consider an example where 10 binary input variables X1, X2, X10are used to classify a binary output variable (Y).

(i) At most how many examples do we need to exhaustively enumerate every possible combination of inputs?

(ii) At most how many leaf nodes can a decision tree have if it is consistent with a training set containing 100 examples?

Please show detailed process how you obtain the solutions.

Problem 2.3: Bayes Theorem

A quality control manager has used algorithm C4.5 to come up with rules that classify items based on several input factors. The output has two classes -- Accept and Reject. Test results with the rule set indicate that 5% of the good items are classified as Reject and 2% of the bad items classified as Accept.

Historical data suggests that two percent of the items are bad. Based on this information, what is the conditional probability that:

(i) An item classified as Reject is actually good?

(ii) An item classified as Accept is actually bad?

Please show detailed process how you obtain the solutions.

Problem 2.4 Support Vector Machine

Consider the following set of training data.

x1 x2 class
1 1 +
2 2 +
2 0 +
3 1 +
0 0 -
1 0 -
0 1 -
-1 1 -

(i) Plot these six training points in a two-dimensional space (with x1 and x2).

Are the classes {+, -} linearly separable? Why?

(ii) Construct the weight vector of the maximum margin hyperplane by inspection and identify the support vectors.

(iii) If you remove one of the support vectors, does the size of the optimal margin decrease, stay the same, or increase? Justify your answer.

(iv) Is your answer to (iii) also true for any dataset in a 2-dimentioanl space? Provide a counterexample if it is not true, or give a short proof if it is true. When we have another dataset in a space with more than two dimensions, do you have the same answer? Justify.

Verified Expert

Reference no: EM13856373

Questions Cloud

Performance in relation to our competitors : Your boss, the CEO, asks you to analyze our company's performance in relation to our competitors, but she only gives you a short time frame for the project. You can do this either by comparing the firms' balance sheets and income statements or by com..
What customer competitive imperatives could be affected : With retailers as their primary customers, illustrate what customer competitive imperatives could be affected by Rollerblades inventory problems?
The planet venus is closer to the sun than earth : The planet Venus is closer to the sun than Earth and has a thick atmosphere of mostly CO2. Because of the greenhouse gas effect, the average surface temperature is about 475 degrees. What would the average temperature be if there were no atmosphere? ..
What factors lead us to conform and become obedient? : What factors lead us to conform and become obedient?
Plot six training points in a two-dimensional space : how many examples do we need to exhaustively enumerate every possible combination of inputs -  what is the conditional probability that An item classified as Reject is actually good?
Explain organization''s information security department : You recently accepted this job and have completed your first 3 months in the position. There are many security concerns, and the environment lacks policies and standards. You would like to address this, but you must first research the standard app..
Valid defense to the charge of smuggling : Dan was suspected by customs and immigration officers of having information concerning the smuggling of drugs into the United States. Acting undercover, a customs and immigration official went to Dan and suggested that he bring illegal drugs into thi..
How can managers break down silos in organizations : Silos are cohesive divisions or units in organizations that don’t work well with other units and undermine the success of organizations. Silos can be encouraged by managers that pit people or departments against each other. What is a silo and how do ..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Describe a dynamic programming algorithm

Let Fi(x) = i * (1+log x). Describe a dynamic programming algorithm to input 2 integers x and m and determine how to break x into m integers x1, x2, ..., Xm such that f1(x1) + f2(x2)+----+fm(Xm) is the largest among all possible ways of breaking x..

  Why are data analysis skills and thinking so important

Why are data analysis skills and thinking so important to spend analysis. Can't software applications be used to generate the information needed automatically

  Refresh address counter

A microcomputer memory is built from 64K X 1 DRAM, with DRAM cell array organized into 256 rows. Each row requires being refreshed at least once every four ms, strictly on a periodic basis.

  Binary search algorithm

Use the binary search algorithm to seach the list. (You might need to modify the algorithm given in this chapter to count the number of comparisons.)

  Explanation of oracle9i database

Take your current knowledge of Oracle Logs ect and project how a bank may make use of integrity control mechanisms.

  Find shortest path tree by bellman-ford-dijkstra algorithm

Find the shortest path tree from every node to node 1for the graph of following figure using Bellman-Ford and Dijkstra algorithm.

  Determine storage required for bfs and dfs

Determine the minimum number of nodes expanded and storage required for BFS and DFS? (Hint: this question asks about the best case performance of BFS and DFS).

  Computing entropy of plaintext message

Compute the entropy of the plaintext message?

  Design an algorithm to sort the elements using merge sort

What are preorder, Inorder, postorder traversals of a binary tree? Design recursion algorithms to implement them and explain with the help of an example.

  Enter the last names of five candidates

Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then ouput each candidate's name, votes received by that candidate.

  Discrete perceptron learning algorithm

Implement a classifier for characters L and I using the discrete perceptron learning algorithm. You may use any implementation, Specifications: Use a 3 x 3 binary matrix representation

  Describe how algorithm works for adjacency matrix

All vertices according to their type (head, neck, shoulder, hip, front foot or rear foot). Note that as adjacency matrix has n2 entries, you can't scan entire matrix in O(n) time. Describe how algorithm works.

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