Question: A machine learning Question Consider the following training data about buying LifeInsurance: This is a machine learning Question plz do as soon as possible and

A machine learning Question

Consider the following training data about buying LifeInsurance:

A machine learning Question Consider the following training data about buying LifeInsurance:

This is a machine learning Question plz do as soon as possible and i will appreciate you by giving you thumsup thnkss

Consider the following training data about buying Lifelnsurance: Income Self-Employed Credit-rating Buy Lifelnsurance medium no fair no low yes fair no medium no fair no low yes fair yes Person_ID Sector of activity farming farming 3 oil industry 4 oil industry 5 oil industry 6 banking 7 oil industry 8 oil industry 9 banking medium yes yes excellent excellent medium no yes no fair no high high no excellent no high no fair yes 10 low yes excellent yes 11 low yes excellent yes 12 farming banking farming banking farming medium yes fair 13 fair yes high yes medium no 14 excellent yes a) What is the entropy of this collection of training examples with respect to the target function Buy Lifelnsurance b) Calculate the information gain for the sector of activity. c) Calculate the information gain for the credit ranking. d) Given a choice between the sector of activity and credit ranking, which feature would the ID3 algorithm choose as the root node for a decision tree. Give the brief justification .e) Build (draw) the complete classification tree using ID3 algorithm. f) What is tree pruning? Apply pruning technique and redraw the obtained tree (if required) and write comments. Consider the following training data about buying Lifelnsurance: Income Self-Employed Credit-rating Buy Lifelnsurance medium no fair no low yes fair no medium no fair no low yes fair yes Person_ID Sector of activity farming farming 3 oil industry 4 oil industry 5 oil industry 6 banking 7 oil industry 8 oil industry 9 banking medium yes yes excellent excellent medium no yes no fair no high high no excellent no high no fair yes 10 low yes excellent yes 11 low yes excellent yes 12 farming banking farming banking farming medium yes fair 13 fair yes high yes medium no 14 excellent yes a) What is the entropy of this collection of training examples with respect to the target function Buy Lifelnsurance b) Calculate the information gain for the sector of activity. c) Calculate the information gain for the credit ranking. d) Given a choice between the sector of activity and credit ranking, which feature would the ID3 algorithm choose as the root node for a decision tree. Give the brief justification .e) Build (draw) the complete classification tree using ID3 algorithm. f) What is tree pruning? Apply pruning technique and redraw the obtained tree (if required) and write comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!