Question

A decision tree is used to predict whether a student is likely to play football using the training data below. The algorithm uses the attribute selection method to identify the split that produces more sub-nodes that are homogeneous.

Calculate the Gini index and Information Gain for a split on Gender and a split of Class .Show all your steps.Students Gender Class Play Football Yes Female Female Female Female Female Female Female Female Male Male Male Male Male Male Male Male Male Male Male Male Yes No No No No No No Yes Yes Yes Yes Yes Yes 3 4 6 10 12 13 14 15 16 17 18 19 20 Yes Yes No No No No

0 0
Add a comment Improve this question Transcribed image text
Answer #1

2口 xo-35 20 二 0.086 O.5 0.43 0 20lc c) D0 Now, o o86 ACats

Add a comment
Know the answer?
Add Answer to:
A decision tree is used to predict whether a student is likely to play football using...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can you give me a poste for Science Writing TOPIC: DECISION TREE Decision Tree Algorithm Pseudocode:-...

    Can you give me a poste for Science Writing TOPIC: DECISION TREE Decision Tree Algorithm Pseudocode:- 1) Place the best attribute of the dataset at the root node of the tree. 2) Split the training set into subsets. Subsets should be make in such a way that each subset contains data with the same value for an attribute. 3) Repeat steps 1 and 2 on each subset until you find leaf nodes in all the branches of the tree. Two...

  • Decision Trees and Random Forests (Programing language R) To predict room occupancy using the decision tree...

    Decision Trees and Random Forests (Programing language R) To predict room occupancy using the decision tree classification algorithm. (a) Load the room occupancy data and train a decision tree classifier. Evaluate the predictive performance by reporting the accuracy obtained on the testing dataset. (b) Output and analyse the tree learned by the decision tree algorithm, i.e. plot the tree structure and make a discussion about it. (c) Train a random forests classifier, and evaluate the predictive performance by reporting the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT