Cara Perhitungan Naif Bayes Dengan Excel
Cara Perhitungan Naif Bayes Dengan Excel
http://contohprogram.com
Atribut
id_atribut nama_atribut status_atribut
1 Umur diketahui
2 Status diketahui
3 Penghasilan diketahui
4 Hutang Konsumtif diketahui
5 Investasi dicari
Nilai_Atribut
id_nilai_atribut id_atribut nama_nilai_atribut
1 1 Muda (<35 Tahun)
2 1 Paruh Baya (35-50 Tahun)
3 1 Tua (>50 Tahun)
4 2 Lajang
5 2 Menikah
6 3 Rendah (<3jt)
7 3 Sedang (3-10jt)
8 3 Tinggi (>10jt)
9 4 Ya
10 4 Tidak
11 5 Ya
12 5 Tidak
Dataset
id_dataset nomor id_atribut id_nilai_atribut
1 1 1 1
2 1 2 4
3 1 3 7
4 1 4 9
5 1 5 12
6 2 1 1
7 2 2 4
8 2 3 6
9 2 4 9
10 2 5 12
11 3 1 1
12 3 2 4
13 3 3 6
14 3 4 10
15 3 5 11
16 4 1 1
17 4 2 5
18 4 3 7
19 4 4 9
20 4 5 11
21 5 1 1
22 5 2 5
23 5 3 6
24 5 4 9
25 5 5 12
26 6 1 2
27 6 2 4
28 6 3 8
29 6 4 9
30 6 5 12
31 7 1 2
32 7 2 4
33 7 3 7
34 7 4 9
35 7 5 12
36 8 1 2
37 8 2 4
38 8 3 6
39 8 4 10
40 8 5 11
41 9 1 2
42 9 2 5
43 9 3 8
44 9 4 9
45 9 5 11
46 10 1 2
47 10 2 5
48 10 3 7
49 10 4 9
50 10 5 11
51 11 1 2
52 11 2 5
53 11 3 7
54 11 4 10
55 11 5 11
56 12 1 2
57 12 2 5
58 12 3 6
59 12 4 9
60 12 5 11
61 13 1 3
62 13 2 4
63 13 3 8
64 13 4 9
65 13 5 12
66 14 1 3
67 14 2 4
68 14 3 8
69 14 4 10
70 14 5 11
71 15 1 3
72 15 2 4
73 15 3 6
74 15 4 10
75 15 5 12
76 16 1 3
77 16 2 5
78 16 3 8
79 16 4 9
80 16 5 11
81 17 1 3
82 17 2 5
83 17 3 7
84 17 4 9
85 17 5 12
86 18 1 3
87 18 2 5
88 18 3 7
89 18 4 10
90 18 5 11
91 19 1 3
92 19 2 5
93 19 3 6
94 19 4 9
95 19 5 12
nggunakan Algoritma Naïve Bayes Classifier
Dicari
Hutang Konsumtif Investasi
Tidak ??
5 10 0.5
2 9 0.222222
7 10 0.7
3 9 0.333333
3 10 0.3
4 9 0.444444
5 10 0.5
1 9 0.111111
Hasil Akhir
10 0.525
9 0.0329218107
ng memiliki status Menikah,
onsumtif adalah memiliki Investasi