Page 142 - E Modul Data Analytics
P. 142
Data Analytics
Berdasarkan Tabel 9.5, dapat dilihat besarnya nilai support dan confidence dari
calon aturan asosiasi seperti tampak pada tabel 9.7.
Table 9. 7 Tabel Aturan Asosiasi 2 itemset
Rule Support Confidence
(5/5) x
Teh→ Gula (5/10) x 100% = 50% 100%=100%
(6/8) x
Gula→ Teh (5/10) x 100% = 50% 100%=62,5%
(3/8) x
Gula→ Kopi (3/10) x 100% = 30% 100%=37,5%
(3/4) x 100%=
Kopi → Gula (3/10) x 100% = 30% 75%
Gula→ Susu (4/10) x 100% = 40% (4/8) x 100%=50%
Susu→ Gula (4/10) x 100% = 40% (4/6) x 100%=67%
(3/4) x 100%=
Kopi → Susu (3/10) x 100% = 30% 75%
(3/6) x 100%=
Susu→ Kopi (3/10) x 100% = 30% 50%
(3/6) x 100%=
Susu→ Roti (3/10) x 100% = 30% 50%
(3/4) x 100%=
Roti → Susu (3/10) x 100% = 30% 75%
Aturan Asosiasi Final terurut berdasarkan support x confidence terbesar dapat
dilihat pada Tabel 9.8
Table 9. 8 Tabel Aturan Asosiasi Final
Support x
Rule Support Confidence Confidence
(5/10) x 100% =
Teh→ Gula 50% (5/5) x 100%=100% 0,5
(5/10) x 100% = (6/8) x
Gula→ Teh 50% 100%=62,5% 0,3125
(3/10) x 100% = (3/8) x
Gula→ Kopi 30% 100%=37,5% 0,2250
(4/10) x 100% =
Susu→ Gula 40% (4/6) x 100%=67% 0,2680
(3/10) x 100% =
Kopi → Susu 30% (3/4) x 100%= 75% 0,2250
(3/10) x 100% =
Roti → Susu 30% (3/4) x 100%= 75% 0,2250
Tabel final association rule menjelaskan tentang support dan confidence dari
masing-masing kombinasi 2 itemsets dan 3 itemsets. Hasil perhitungan support pada
tabel final association rule didapatkan dari jumlah transaksi mengandung A dan B dibagi
130