The following data set will be used to learn a decision tree for predicting whether a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The following data set will be used to learn a decision tree for predicting whether a mushroom is edible or not based on its shape, color, and odor. Shape C D D C D C C C D Color BB W W B B G U B W W Odor 1 1 1 2 2 22233 3 Edible Yes Yes Yes Yes Yes No No No No No No (a) What is entropy H(Edible Odor = 1 or Odor = 3)? (b) Which attribute would the C4.5 algorithm choose to use for the root of the tree? (c) Draw the full decision tree that would be learned for this data (no pruning). (d) Suppose we have a validation set as follows. What will be the training set error and validation set error of the tree? Express your answer as the number of examples that would be misclassified. The following data set will be used to learn a decision tree for predicting whether a mushroom is edible or not based on its shape, color, and odor. Shape C D D C D C C C D Color BB W W B B G U B W W Odor 1 1 1 2 2 22233 3 Edible Yes Yes Yes Yes Yes No No No No No No (a) What is entropy H(Edible Odor = 1 or Odor = 3)? (b) Which attribute would the C4.5 algorithm choose to use for the root of the tree? (c) Draw the full decision tree that would be learned for this data (no pruning). (d) Suppose we have a validation set as follows. What will be the training set error and validation set error of the tree? Express your answer as the number of examples that would be misclassified.
Expert Answer:
Answer rating: 100% (QA)
a To calculate the entropy HEdibleOdor 1 or Odor 3 we need to first compute the probabilities of eac... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A. Briefly describe employment ? B. Describe how this variable (employment) can be operationalized (describe exactly how you determine which category or which value of the variable applies to a...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
A triangular truss structure is shown below. If all truss members are 2.0 m long (a, b, & c in the sketch) and forces L and Rare both 8.0 kN, then what is the force in truss member a? Assume that the...
-
Consider the following cash flows: a. Which two of the following rates are the IRRs of this project: 2.5%, 7.2%. 14.3%, 33.7%, 40.0%? b. What is project NPV if the discount rate is 5%? c. What if it...
-
The regression analysis below relates US annual energy consumption in trillions of BTUs to the independent variables "US Gross Domestic Product (GDP) in trillions of dollars" and "average gas mileage...
-
How can one be a leader as a staff nurse?
-
Pablo is studying financial statements to decide which companies would be wise investments. Pablo identifies Jawanna Corporation as having abnormally high financial ratios compared with other...
-
For inventory sales fact table in fitness retail data, combining data from different sources or tables into one. for inventory and sales data, you would merge these into one table. This allows you to...
-
Exhibit 13.6 presents selected hypothetical data from projected financial statements for Steak 'n Shake for Year +1 to Year +11. The amounts for Year +11 reflect a long-term growth assumption of 3%....
-
129. Which of the following culture bound syndromes seen in india presents with acute anxiety and panic like symptoms? a. Koro syndrome b. Dhat syndrome c. Amok syndrome d. Possession syndrome
-
Consider the compression of a spring by placing a large mass on it. The degree to which the spring compresses is related to its spring constant, k. The force exerted by the spring on the mass is...
-
Nominal variable: Record everyones eye color and create a frequency table, a pie chart, and a one-variable bar chart to display the information. Numerical variable: Each person provides information...
-
A \([0 / 90]_{\mathrm{S}}\) laminate is subjected to a single bending moment per unit length, \(M_{x}\). If the laminate is unconstrained, so that bending along both the \(x\) and the \(y\)...
-
For each variable, suggest ways of collecting data so that the data are at the nominal, ordinal, interval-ratio (numerical), and dichotomous/binary levels of measurement. Note any situations that...
-
Identify some conceptual variables that present interesting challenges to operationalization and discuss them. Pair off, and, in each pair, develop a hypothesis that links your two variables in a...
-
Read the scenario below and answer ALL the questions that follow Company X is a well-established company operating in South Africa, known for its diverse workforce. However, it has a company policy...
-
Ulysses and Penelope are married and file separate returns for 2012. Penelope itemizes her deductions on her return. Ulysses' adjusted gross income was $17,400, his itemized deductions were $2,250,...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
For each of the following cases, indicate the filing status for the taxpayer(s) for 2012 using the following legend: A - Single B - Married, filing a joint return C - Married, filing separate returns...
-
Part 1: Calculating Short-Term Measurements The following annual information is available for Lakewood Industries, an investment center: a. Calculate ROI (return on investment). Base your...
-
Four years ago, based on a pre-tax NPV analysis, Harper Inc. decided to add new equipment with a cost of \(\$ 85,000\), allowing the company to expand its product offerings. The data used in the...
-
For each of the following performance measures, indicate (a) whether the measure is an internal performance measure or an external performance measure and (b) whether the measure primarily relates to...
Study smarter with the SolutionInn App