Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Accounting questions