. How many decision trees are there with 3 binary attributes? With 4? . In class we looked at an example where all the attributes were binary (i.e., yes/no valt an example where instead of the attribute “Morning?", we had an attribute “Time" when the class begins.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Decision trees

please see the attchment for the questions. we need the soultion before mid night today 2/6/2022

HW01: Decision trees
Remember that only PDF submissions are accepted.
1. How many decision trees are there with 3 binary attributes? With 4?
2. In class we looked at an example where all the attributes were binary (i.e., yes/no valued). Consider
an example where instead of the attribute “Morning?", we had an attribute “Time" which specifies
when the class begins.
(a) We can pick a threshold T and use (Time < T)? as a criteria to split the data in two. Explain
how you might pick the optimal value of T.
(b) In the decision tree learning algorithm discussed in class, once an binary attribute is used, the
subtrees do not need to consider it. Explain why when there are continuous attributes this may
not be the case.
3. Give two reasons why memorizing the training data and doing table lookups is a bad strategy for
learning.
4. (Programming) You need to implement the decision tree algorithm as in the slides. The data we use
for binary classification tasks is the UCI a4a data.
https://www.csie.ntu.edu.tw/-cjlin/libsvmtools/datasets/binary.html#a4a You need to report the
misclassification error to measure the prediction accuracy rate. You can reuse the code to this question
in your mini-project and play with more data then.
Transcribed Image Text:HW01: Decision trees Remember that only PDF submissions are accepted. 1. How many decision trees are there with 3 binary attributes? With 4? 2. In class we looked at an example where all the attributes were binary (i.e., yes/no valued). Consider an example where instead of the attribute “Morning?", we had an attribute “Time" which specifies when the class begins. (a) We can pick a threshold T and use (Time < T)? as a criteria to split the data in two. Explain how you might pick the optimal value of T. (b) In the decision tree learning algorithm discussed in class, once an binary attribute is used, the subtrees do not need to consider it. Explain why when there are continuous attributes this may not be the case. 3. Give two reasons why memorizing the training data and doing table lookups is a bad strategy for learning. 4. (Programming) You need to implement the decision tree algorithm as in the slides. The data we use for binary classification tasks is the UCI a4a data. https://www.csie.ntu.edu.tw/-cjlin/libsvmtools/datasets/binary.html#a4a You need to report the misclassification error to measure the prediction accuracy rate. You can reuse the code to this question in your mini-project and play with more data then.
Expert Solution
Step 1

1. 

Decision trees are there with 3 binary attributes:-------------
For three attributes there are 7 nodes in the tree, i.e., for n = 3, number of nodes = 23-1.
Similarly, if we have n attributes, there are 2n - 1 nodes (approx.)

Decision trees are there with n binary attributes = 22n
So, for 3 binary attributes = 223 = 28 = 256 Decision trees

Decision trees are there with 4 binary attributes:-------------
For three attributes there are 15 nodes in the tree, i.e., for n = 4, number of nodes = 24-1.
Similarly, if we have n attributes, there are 2n - 1 nodes (approx.)

Decision trees are there with n binary attributes = 22n
So, for 3 binary attributes = 224 = 216 = 65,536 Decision trees

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY