Docsity

Class-Data Warehouse-Assignment, Exercises of Data Warehousing

Toggle sidebar
bg1
Assignment 3
Make decision trees for the following data (using CART and C4.5 for both problems). Show all
calculations.
Part a: Class is the output variable.
RID
Age
Income
Student
Credit Rating
Class: Buys Computer
1
<= 30
High
No
Fair
No
2
<=30
No
Excellent
No
3
31…40
High
No
Fair
Yes
4
>40
No
Fair
Yes
5
>40
Low
Yes
Fair
Yes
6
>40
Yes
Excellent
no
7
31…40
Low
Yes
Excellent
Yes
8
<=30
No
Fair
No
9
<=30
Low
Yes
Fair
Yes
10
>40
Yes
Fair
Yes
11
<=30
Medium
Yes
Excellent
Yes
12
31…40
No
Excellent
Yes
13
31…40
High
Yes
Fair
Yes
14
>40
No
Excellent
no
Part b: Salary is the output variable.
Department
Status
Age
Salary
Sales
Senior
31…35
46K-50K
Sales
Junior
26…30
26K-30K
Sales
Junior
31…35
31K-35K
Systems
Junior
21…25
46K-50K
Systems
Senior
31…35
66K-70K
Systems
Junior
26….30
46K-50K
Systems
Senior
41….45
66K-70K
Marketing
Senior
36….40
46K-50K
Marketing
Junior
31….35
41K-45K
Secretary
Senior
46…50
36K-40K
Secretary
Junior
26…30
26K-30K
docsity.com

Partial preview of the text

Download Class-Data Warehouse-Assignment and more Exercises Data Warehousing in PDF only on Docsity!

Assignment 3

Make decision trees for the following data (using CART and C4.5 for both problems). Show all calculations.

Part a: Class is the output variable.

RID Age Income Student Credit Rating Class: Buys Computer 1 <= 30 High No Fair No 2 <=30 High No Excellent No 3 31…40 High No Fair Yes 4 >40 Medium No Fair Yes 5 >40 Low Yes Fair Yes 6 >40 Low Yes Excellent no 7 31…40 Low Yes Excellent Yes 8 <=30 Medium No Fair No 9 <=30 Low Yes Fair Yes 10 >40 Medium Yes Fair Yes 11 <=30 Medium Yes Excellent Yes 12 31…40 Medium No Excellent Yes 13 31…40 High Yes Fair Yes 14 >40 Medium No Excellent no

Part b: Salary is the output variable.

Department Status Age Salary Sales Senior^ 31…35^ 46K-50K Sales Junior 26…30 26K-30K Sales Junior 31…35 31K-35K Systems Junior 21…25 46K-50K Systems Senior 31…35 66K-70K Systems Junior 26….30 46K-50K Systems Senior 41….45 66K-70K Marketing Senior^ 36….40^ 46K-50K Marketing Junior 31….35 41K-45K Secretary Senior 46…50 36K-40K Secretary Junior 26…30 26K-30K

docsity.com