Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 8

Age Income Student Credit Rating Buys Computer

Youth High No Fair No


Youth High No Excellent No
Middle age High No Fair Yes
Senior Medium No Fair Yes
Senior Low Yes Fair Yes
Senior Low Yes Excellent No
Middle age Low Yes Excellent Yes
Youth Medium No Fair No
Youth Low Yes Fair Yes
Senior Medium Yes Fair Yes
Youth Medium Yes Excellent Yes
Middle age Medium No Excellent Yes
Middle age High Yes Fair Yes
Senior Medium No Excellent No

Node Jumlah Yes No


1 Total 14 9 5
Age Youth 5 2 3
Middle age 4 4 0
Senior 5 3 2
Income Low 4 3 1
Medium 6 4 2

High 4 2 2
Student No 7 3 4

Yes 7 6 1
Credit Rating Fair 8 6 2
Excellent 6 3 3

Age Income Student Credit Rating Buys Computer


Middle age High No Fair Yes
Middle age Medium No Excellent Yes
Middle age Low Yes Excellent Yes
Middle age High Yes Fair Yes
Senior Medium No Fair Yes
Senior Medium No Excellent No
Senior Low Yes Fair Yes
Senior Low Yes Excellent No
Senior Medium Yes Fair Yes
Youth High No Fair No
Youth High No Excellent No
Youth Medium No Fair No
Youth Low Yes Fair Yes
Youth Medium Yes Excellent Yes

Node Jumlah Yes No


2(Youth) Total 5 2 3
Income Low 1 1 0
Medium 2 1 1
High 2 0 2
Student No 3 0 3
Yes 2 2 0
Credit Rating Fair 3 1 2
Excellent 2 1 1

Node Jumlah Yes No


2(Middle age) Total 4 4 0
Income Low
Medium
High
Student No
Yes
Credit Rating Fair
Excellent

Node Jumlah Yes No


2(Senior) Total 5 3 2
Income Low 2 1 1
Medium 3 2 1
High 0 0 0
Student No 2 1 1
Yes 3 2 1
Credit Rating Fair 3 3 0
Excellent 2 0 2

Node Jumlah Yes No


2(Student = No) Total 3 0 3
Income Low
Medium
High
Credit Rating Fair
Excellent
Node Jumlah Yes No
2(Student = Yes) Total 2 2 0
Income Low
Medium
High
Credit Rating Fair
Excellent

Node Jumlah Yes No


2(Fair) Total 3 3 0
Income Low
Medium
High
Student No
Yes

Node Jumlah Yes No


2(Excellent) Total 2 0 2
Income Low
Medium
High
Student No
Yes
student

No
Entropy Gain
0.940286 No
0.970951
0 0.24675
0.970951
0.811278
0.918296 0.029223

Age Income Student


1
0.985228 0.151836 Youth Medium Yes
Middle
Low No
0.591673 age
0.811278 0.048127 Senior High No
1
Entropy Gain
0.970951
0 0.570951
1
0
0
0 0.970951
0.918296
1 0.019973

Entropy Gain
0

Entropy Gain
0.970951
1 0.019973
0.918296
0
1 0.019973
0.918296
0 0.970951
0

Entropy Gain
0
Entropy Gain
0

Entropy Gain
0

Entropy Gain
0
Age

youth middle age senior

yes
student

Yes
Yes
Yes

Buys
Credit
Compute
Rating
r
Fair yes

Excellent yes

Excellent No
credit
rating

Fair Excellent

Yes No

You might also like