Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 (20 points): The following table consists of training data from an employee database. The data have been generalized. For example, 31 . .

image text in transcribed
Problem 1 (20 points): The following table consists of training data from an employee database. The data have been generalized. For example, "31 . . .35" for age represents the age category with range of 31 to 35. For a given row entry, count represents the number of data tuples having the values for department, status, age, and salary given in that row. (a) Construct a decision tree from the given data using information gain. Using Formula: Info( D) = -_ p. log;(p.) , We get: Info (Data) = -(52/165) x logz (52/165) - (113/165) x logz(113/165) = 0.89903 Using formula: HIDI , We get: Infodept (Data) = 0.8504 Infoage (Data) = 0.474 Infosel (Data) = 0.3615 Gain(D) = Info(D) - Info A(D) That implies, Gain(Sal) is the highest. [Since, Gain(Sal) = 0.89903 - 0.36153 ] Construction a tree with Salary as the first Node, Salary 26-30k 31-35k 36-40k 46-50k 66-70k Junior Junior Junior Marketing Sales Secretary Senior

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Business Ethics A Stakeholder And Issues Management Approach

Authors: Joseph W. Weiss

7th Edition

1523091541, 978-1523091546

Students also viewed these Mathematics questions