DATA MINING
Klasifikasi spam email menggunakan Nave Bayes
Disusun Oleh :
1. Stefhanie
Andreaane
Adelia
Tendean
(130411100002)
2. Anissa Rachmawati
(130411100004)
3. Fitria Najatul Laili
(130411100021)
4. Masdar Wiyono
(130411100097)
5. Anggun Suryaningsih
(130411100101)
6. Nadia M.K
(130411100102)
7. R. Dwi Ade Iswahyudi
(120411100077)
FAKULTAS TEKNIK
UNIVERSITAS TRUNOJOYO MADURA
TAHUN 2015/2016
Sample Data
(Kategori
(Kategori
(Kategori
(Kategori
(Kategori
(Kategori
=
=
=
=
=
=
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
= 16/44
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
=
=
=
=
=
=
=
=
=
=
=
=
=
adult@adult.com | YES )
branney@renovations.com | YES )
datmin@yahoo.com | YES )
ftrinaja@gmail.com | YES )
hackerindonesia@hacker.com | YES )
indonesiabelajar@gmail.com | YES )
indonesiajaya@gmail.com | YES )
kpk@yahoo.com | YES )
obattradisional@diet.com | YES )
pizzahut@pizza.com | YES )
puskesmaskamal@kamal.com | YES )
tugas@tugas.com | YES )
utm@trunojoyo.ac.id | YES )
= 16/44
= 11/44
= 1/44
= 1/44
= 2/44
= 2/44
= 1/44
= 3/44
= 2/44
= 2/44
= 1/44
= 1/44
= 1/44
P (Spam
P (Subjek
P (Subjek
P (Subjek
P (Subjek
P (Subjek
P (Subjek
= NO = 26)
= Tutorial | NO ) = 7/26
= Tugas | NO )
= 3/26
= Tes | NO )
= 5/26
= Penting | NO )
= 2/26
= Kuliah | NO )
= 3/26
= Kosong | NO )
= 6/26
P
P
P
P
P
(Kategori
(Kategori
(Kategori
(Kategori
(Kategori
=
=
=
=
=
Adult | NO )
Edukasi | NO )
Finansial | NO )
Iklan | NO )
Kesehatan | NO )
=
=
=
=
=
2/26
11/26
5/26
6/26
2/26
P
P
P
P
P
P
P
P
P
P
P
P
P
P
P
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
(Content
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
1/26
1/26
1/26
9/26
1/26
1/26
1/26
1/26
2/26
2/26
1/26
1/26
1/26
1/26
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
(Address
=
=
=
=
=
=
=
=
=
=
=
adult@adult.com | NO )
branney@renovations.com | NO )
datmin@yahoo.com | NO )
ftrinaja@gmail.com | NO )
hackerindonesia@hacker.com | NO )
indonesia@indonesia.com | NO )
indonesiabelajar@gmail.com | NO )
indonesiajaya@gmail.com | NO )
obattradisional@diet.com | NO )
puskesmaskamal@kamal.com | NO )
tugas@tugas.com | NO )
= 5/26
=
=
=
= 2/26
=
= 1/26
=
= 1/26
= 2/26
= 2/26
1/26
2/26
5/26
1/26
2/26
P (Address = utm@trunojoyo.ac.id | NO )
= 2/26
P(Size Data=25457|Yes)
1
P Size 25457 Yes
exp
2 157936456.5
1.50541E - 08
2545712567.27721 2
2*157936456.5
P(Size Data=25457|No)
1
exp
2 153698217.9
1.54247E - 08
P Size 25457 | No
2545712397.50853 2
2*153698217.9
P(Jumlah Penerima=30|Yes)
P Size 30 Yes
1
exp
2 79.05176
0.004871
308.891106 2
2*79.05176
P(Jumlah Penerima=30|No)
P Size 30 No
1
exp
2 78.320457
0.00491258
308.849885 2
2*78.320457
P(Subject=Viagra|No)
P(Content=LGBT|No)
x
x
P(Size Data=25457|No)
Pesan=30|No)
P(Kategori=Iklan|No)
P(Attachment=No|No)
x P(Jumlah Penerima
0 x 6/26
1/26
x 16/26
1.54247E - 08
0.00491258
=
P(Subject=Viagra|Yes)
P(Kategori=Iklan|Yes)
P(Content=LGBT|Yes) x P(Attachment=No|Yes) x
P(Size Data=25457|Yes)
x P(Jumlah Penerima
Pesan=30|Yes)
=
1.50541E - 08
0.004871
=
3.83458E-14
P No X * 26 / 70 x 0 0
1 P X
Classification
Berdasarkan perhitungan diatas, P(X|No) < P(X|Yes). Menunjukkan
bahwa Email dengan Subject=Viagra, Kategori = Iklan, Content =
Referensi
https://www.cyberoam.com/antispam.html
https://www.ltnow.com/email-spam-flters-work
https://www.urbandictionary.com/defne.php?term=spam+flter