The ID3 algorithm describes how to build a decision tree for a given a set of sample
Question:
The ID3 algorithm describes how to build a decision tree for a given a set of sample facts. The tree asks the most important questions first. We have a set of criteria (such as “Is it a mammal?”) and an objective that we want to decide (such as “Can it swim?”). Each fact has a value for each criterion and the objective. Here is a set of five facts about animals. (Each row is a fact.) There are four criteria and one objective (the columns of the table). For simplicity, we assume that the values of the criteria and objective are binary (Y or N).
Therefore, we choose “Does it have fur?” as our first criterion.
In the left subtree, look at the animals with fur. There is only one, a non-swimmer, so you can declare “It doesn’t swim.” For the right subtree, you now have four facts (the animals without fur) and three criteria. Repeat the process.
Is it a mammal? Does it have fur? Does it have a tail? Does it lay eggs? N Y Y N Y Y Y Y N Y N N ZZZ N N Y Y ZZZZ N N N Y Can it swim? N Y Y Y N We now need several definitions. Given any probability value p between 0 and 1, its uncertainty is U(p)=-p log2(p)-(1-p)log(1-p) If p is 0 or 1, the outcome is certain, and the uncertainty U(p) is 0. Ifp = 1/2, then the outcome is completely uncertain and U(p) = 1.
Step by Step Answer:
The ID3 algorithm is an approach to building decision trees based on maximizing the information gain that is selecting the attribute that most effecti...View the full answer
Students also viewed these Java Programming questions
-
5) On the graphs below show the difference between a change in price and a change in demand. Fully label graphs for full marks! (2+2 marks) Change in price Change in demand X 6) A change in the price...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Some people believe that the Internet is rewriting the rules of how to attract, motivate, and retain talent internationally. Consider Planet-Intra.com Ltd., a year-old software company that is...
-
A refrigerator is to remove heat from the cooled space at a rate of 300 kJ/min to maintain its temperature at -8°C if the air surrounding the refrigerator is at 25°C, determine the minimum...
-
What do you think of Starbucks goal to recycle all four billion cups sold annually by 2015? What challenges did it face in meeting that goal?
-
True or False. For a given x, a confidence interval for E(y) will always be wider than a prediction interval LO9 for y.
-
Comment on the statement, Independence is not easily achieved where an auditor is hired, paid, and fired by the same corporate managers whose activities are the subject of the audit. How might...
-
National Financial Services, Inc. 15 Mart 2015 tarihinde Stonebridge Investments, Inc. irketinin 8.000 hissesini satn almak iin 24.000 $ yatrm yapt. Bu yatrm, yatrm yaplan irketin oy hakkna sahip...
-
A painting operation is scheduled in blocks, where each block involves painting products with a particular color. Cleaning time is required in between each pair of blocks so that the equipment can be...
-
Modify the expression evaluator from Section 13.5 to produce an expression tree. (Note that the resulting tree is a binary tree but not a binary search tree.) Then use postorder traversal to evaluate...
-
Reimplement the remove method in the RedBlackTree class of Worked Example 17.2 so that the node is first removed using the binary search tree removal algorithm, and the tree is rebalanced after...
-
One example of a successful branding initiative is the one developed by the Cleveland Clinic Foundation in Cleveland, Ohio. The outcome of its efforts demonstrates what branding can do for a...
-
Pink Jeep Tours offers off-road tours to individuals and groups visiting the Southwestern U.S. hotspots of Sedona, Arizona, and Las Vegas, Nevada. Take a tour of the companys Web site at...
-
The following are unrelated accounting practices: 1. Pine Company purchased a new \(\$ 30\) snow shovel that is expected to last six years. The shovel is used to clear the firm's front steps during...
-
Identify whether the following statements are true or false. 1. One argument for IFRS is that there is less globalization in the world. 2. IFRS is accepted as GAAP in every country of the world. 3....
-
You will need isometric dot paper for this question. Part of a pattern using four rhombuses is drawn on isometric dot paper below. By drawing two more rhombuses, complete the pattern so that it has a...
-
Fred Flores operates a golf driving range. For each of the following financial items related to his business, indicate the financial statement (or statements) in which the item would be reported:...
-
You are given the following data on the unemployment rate and output: a. Assume that the natural rate of unemployment is 6% and that ( - Y)/ = 2{u - u}. Find the full-employment level of output in...
-
Express mass density in kg/m3 and weight density in lb/ft3. 1. Find the mass density of a chunk of rock of mass 215 g that displaces a volume of 75.0 cm3 of water. 2. A block of wood is 55.9 in. x...
-
Write pseudocode for Strassens algorithm.
-
Professor Caesar wishes to develop a matrix-multiplication algorithm that is asymptotically faster than Strassens algorithm. His algorithm will use the divide and-conquer method, dividing each matrix...
-
Give asymptotic upper an= lower bounds for T (n) in each of the following recurrences. Assume that T (n) is constant for sufficiently small n. Make your bounds as tight as possible, and justify your...
-
A stock is expected to pay a dividend of $1.50 at the end of the year (i.e., D 1 = $1.50), and it should continue to grow at a constant rate of 10% a year. If its required return is 14%, what is the...
-
The Hobby Shop has a checking account with a ledger balance of $1,700. The firm has $2,400 in uncollected deposits and $4,200 in outstanding checks. What is the amount of the disbursement float on...
-
An investment will pay you $34,000 in 11 years. If the appropriate discount rate is 6.1 percent compounded daily, what is the present value? (Use 365 days a year. Do not round intermediate...
Study smarter with the SolutionInn App