HW2-1 (50 pts): Consider the training example shown in Table 1, for a binary classification of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
HW2-1 (50 pts): Consider the training example shown in Table 1, for a binary classification of mammals. Body Temperature Gives Birth Four legged yes yes Name porcupine cat bat whale salamander komodo dragon python salmon eagle guppy warm-blooded warm-blooded yes warm-blooded yes warm-blooded yes cold-blooded cold-blooded cold-blooded cold-blooded warm-blooded no cold-blooded yes no no no no yes no no yes yes no no no no Hibernates yes no yes no yes no yes no no no Class label yes yes yes yes 2 2 2 2 2 2 no no no no no no a - What is the entropy of this collection of training set? b - What are the Information Gain of splitting "Body temperature" and "Gives Birth"? c - Between "Gives Birth" and "Four legged" what is the best split according to the classification error rate? d - Between "Gives Birth" and "Four legged" what is the best split according to the Gini index? e - Use "Gives Birth" as the first split parameter, and "four legged" as the second split parameter. Draw the tree then calculate the information gain. HW2-1 (50 pts): Consider the training example shown in Table 1, for a binary classification of mammals. Body Temperature Gives Birth Four legged yes yes Name porcupine cat bat whale salamander komodo dragon python salmon eagle guppy warm-blooded warm-blooded yes warm-blooded yes warm-blooded yes cold-blooded cold-blooded cold-blooded cold-blooded warm-blooded no cold-blooded yes no no no no yes no no yes yes no no no no Hibernates yes no yes no yes no yes no no no Class label yes yes yes yes 2 2 2 2 2 2 no no no no no no a - What is the entropy of this collection of training set? b - What are the Information Gain of splitting "Body temperature" and "Gives Birth"? c - Between "Gives Birth" and "Four legged" what is the best split according to the classification error rate? d - Between "Gives Birth" and "Four legged" what is the best split according to the Gini index? e - Use "Gives Birth" as the first split parameter, and "four legged" as the second split parameter. Draw the tree then calculate the information gain.
Expert Answer:
Answer rating: 100% (QA)
To address this question step by step lets start by calculating the entropy ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Consider the training examples shown in Table 4.2 for a binary classification problem. (a) What is the entropy of this collection of training examples with respect to the positive class? (b) What are...
-
Consider the training examples shown in Table 4.1 for a binary classification problem. a) Compute the Gini index for the overall collection of training examples. (b) Compute the Gini index for the...
-
There is a bond on the spot-market. Price is 87.63 USD. Risk-free interest rate is 1.22%. The forward-price is 102.78 USD. Is there any arbitrage possibility if time to maturity is 9 months?
-
In 1969, tobacco companies were the largest single product advertisers on television. That same year, the Surgeon General of the United States released a report linking smoking to adverse health...
-
Gravais Company made two purchases on December 29, 2019. One purchase for $3,000 was shipped FOB destination, and the second for $4,000 was shipped FOB shipping point. Neither purchase had been...
-
The major result of a financial audit conducted by an independent accountant is the expression of an opinion by the auditor on the fairness of the financial statements. While the auditor's report...
-
BeGone manufactures spray cans of insect repellent. On August 1, 2010, the company had 9,800 units in the beginning WIP Inventory that were 100 percent complete as to canisters, 60 percent complete...
-
CH-CH, reacts 1000 times faster than Ph-CH=CH, with Br-HOAc but only 3.8 times faster with pCI-CH,SCI in HOAC at 25C. Explain.
-
In preparing for next year, Tony Freedman has hired two employees to work on an hourly basis assisting with some troubleshooting and repair work. Assume the following details: a. The following...
-
Kavita Ltd. scheduled its Annual General Meeting to be held on 11th March 2020 at 11:00 A.M. The company has 900 members. On 11th March 2020 following persons were present by 11:30 A.M. 1. P1, P2 &...
-
An annual coupon bond has a maturity of eleven years, a face value of $1000, and a coupon rate of 2%. The current market price of the bond is $810.25. Use a grid search to find the yield to maturity...
-
Solve y' + 2y = 3e-4t +5, starting with y(0) = 0. What happens as t ? Solve and sketch the solution. (a) y' + y = 2e-t, y(0) = 3 (b) y + y= 2 cost, y(0) = 3 (c) y'+y=2H(t - 4), y(0) = 3 (d) y' + y =...
-
To record the purchase of inventories for 150,000 when the exchange rate is $1.30:1. Company purchases forward contract to buy 150,000 at $1.35:1. Exchange rate at maturity is $1.45:1. Required:...
-
ABC Company regularly evaluates the accuracy of its current forecasting technique by determining Mean Absolute Percent Error (MAPE). Use the data below to determine the MAPE value for the forecasts...
-
7 8 9 10 1 2 3 6 4 5 As an expert of AIS, use the attached table to describe each of the following transactions of XYZ manufacturing Company: 1- Obtain a bank loan. 2-Pay for raw materials. 3- Pay...
-
You work in the marketing team of a big pharmaceutical company that recently developed a genetic rapid test for a certain food intolerance. You prepare for a presentation and you are quite sure, that...
-
What are the two methods used to translate financial statements and how does the functional currency play a role in determining which method is used?
-
David Santee addresses marketing researchers and makes a plea for the research industry to become more strategic. Although it may not always be apparent, senior executives want our information and...
-
Name some possible sampling frames for the following: a. Patrons of sushi bars b. Smokers of high-priced cigars c. Snowboarders d. Owners of DVD players e. People that have visited one or more...
-
Do you think that data collection by mobile devices will become increasingly popular?
-
Derive the mass matrix of the system shown in Fig. 5.42. 00000 2m 8(t) * 2m ellee x(t) m 00000 FIGURE 5.42 Rigid bar connected to masses and springs.
-
Four identical springs, each having a stiffness \(k\), are arranged symmetrically at \(90^{\circ}\) from each other, as shown in Fig. 2.65. Find the influence coefficient of the junction point in an...
-
Derive the equations of motion of the system shown in Fig. 6.34. 000 m 00000 m 2m k 000000 2k 000 3k FIGURE 6.34 Three-degree-of-freedom spring-mass system.
Study smarter with the SolutionInn App