You are on page 1of 5

1.

Mendefinisikan terlebih dahulu nilai probabilitas dari tiap evidence untuk tiap hipotesis
berdasarkan data sampel yang ada menggunakan rumus probabilitas bayes.
a. Busuk Akar = P01
G01 = P [E | H1] = 0,6
G02 = P [E | H1] = 0,2
G03 = P [E | H1] = 0,8
G04 = P [E | H1] = 0,4
b. Kutu Sisik = P02
G02 = P [E | H2] = 0,2
G04 = P [E | H2] = 0,4
G09 = P [E | H2] = 0,3
c. Kutu Putih = P03
G02 = P [E | H3] = 0,2
G06 = P [E | H3] = 0,6
G08 = P [E | H3] = 0,3
G10 = P [E | H3] = 0,3
d. Kutu Perisai = P04
G02 = P [E | H4] = 0,2
G04 = P [E | H4] = 0,4
G05 = P [E | H4] = 0,4
G07 = P [E | H4] = 0,6
G11 = P [E | H4] = 0,4
2. Menjumlahkan nilai probabilitas dari tiap evidence untuk masing-masing hipotesis
berdasarkan data sampel.
n

∑ P [E∨Hk]=G 01+…+Gn
k =1

a. Busuk Akar = P01


G01 = P [E | H1] = 0,6
G02 = P [E | H1] = 0,2
G03 = P [E | H1] = 0,8
G04 = P [E | H1] = 0,4
n

∑ P [E∨Hk]=0,6+ 0,2+ 0,8+0,4=2


k =1

b. Kutu Sisik = P02


G02 = P [E | H2] = 0,2
G04 = P [E | H2] = 0,4
G09 = P [E | H2] = 0,3
n

∑ P [E∨Hk]=0,2+0,4 +0,3=0,9
k =1

c. Kutu Putih = P03


G02 = P [E | H3] = 0,2
G06 = P [E | H3] = 0,6
G08 = P [E | H3] = 0,3
G10 = P [E | H3] = 0,3
n

∑ P [E∨Hk]=0,2+0.6+ 0,3+0,3=1,4
k =1

d. Kutu Perisai = P04


G02 = P [E | H4] = 0,2
G04 = P [E | H4] = 0,4
G05 = P [E | H4] = 0,4
G07 = P [E | H4] = 0,6
G11 = P [E | H4] = 0,4
n

∑ P [E∨Hk]=0,2+0,4 +0,4+ 0,6+0,4=2


k =1

3. Mencari nilai probabilitas hipotesis H tanpa memandang evidence apapun bagi masing-
masing.
n
P [ E| Hi ]
∑ P ( Hi ) =¿ P[ E∨Hk] ¿
k =1

a. Busuk Akar = P01


0,6
G01 = P [H1] = =0,3
2
0,2
G02 = P [H1] = =0,1
2
0,8
G03 = P [H1] = =0,4
2
0,4
G04 = P [H1] = =0,2
2
b. Kutu Sisik = P02
0,2
G02 = P [H1] = =0,222
0,9
0,4
G04 = P [H1] = =0,444
0,9
0,3
G09 = P [H1] = =0,333
0,9
c. Kutu Putih = P03
0,2
G02 = P [H1] = =0,142
1,4
0,6
G06 = P [H1] = =0,428
1,4
0,3
G08 = P [H1] = =0,214
1,4
0,3
G10 = P [H1] = =0,214
1,4
d. Kutu Perisai = P04
0,2
G02 = P [H1] = =0,1
2
0,4
G04 = P [H1] = =0,2
2
0,4
G05 = P [H1] = =0,2
2
0,6
G07 = P [H1] = =0,3
2
0,4
G11 = P [H1] = =0,2
2
4. Mencari nilai probabilitas hipotesis memandang evidence dengan cara mengalikan nilai
probabilitas evidence awal dengan nilai probabilitas hipotesis tanpa memandang evidence
dan menjumlahkan hasil perkalian bagi masing-masing hipotesis.
n

∑ P ( Hi )∗P ( E|Hi−n )=¿ P ( H 1 )∗P ( E| H 1 ¿+…+ P(Hi)∗P ( E∨Hi)


k =1

a. Busuk Akar = P01


4

∑ ¿ ( 0,6∗0,3 ) +( 0,2∗0,2 )+ ( 0,8∗0,4 ) +( 0,4∗0,2 )=¿(0,18+0,02+ 0,32+ 0,08)=0,6 ¿


k=4

b. Kutu Sisik = P02


3

∑ ¿ ( 0,2∗0,222 ) +( 0,4∗0,444 ) +( 0,3∗0,333 )=¿( 0,044+0,177+ 0,099)=0,32 ¿


k =3

c. Kutu Putih = P03


4

∑ ¿ ( 0,2∗0,142 ) +( 0,6∗0,428 )+( 0,3∗214 )+ ( 0,3∗0,214 ) +( 0,3∗0,214 )=¿(0,028+ 0,256+0,064+ 0,064)=0,


k=4

d. Kutu Perisai = P04


5

∑ ¿ ( 0,2∗0,1 ) +( 0,4∗0,2 ) +( 0,4∗0,2 )+ ( 0,6∗0,3 )+ ( 0,4∗0,2 )=¿ (0,02+0,08+0,08+ 0,18+0,08)=0,44 ¿


k =5

5. Mencari nilai P(Hi|E) atau probabilitas hipotesis Hi benar jika diberikan evidence e.
n
P [ E| Hi ]∗P[ Hi]
∑ P ( Hi∨Ei )=¿ P [E∨Hk ]
¿
k =1

a. Busuk Akar = P01


0,6∗0,18 0,108
P [H1|E1] = = =0,018
0,6 0,6
0,2∗0,02 0,004
P [H1|E2] = = =0,006
0,6 0,6
0,8∗0,32 0,256
P [H1|E3] = = =0,426
0,6 0,6
0,4∗0,08 0,032
P [H1|E4] = = =0,053
0,6 0,6
b. Kutu Sisik = P02
0,2∗0,044 0,044
P [H1|E2] = = =0,024
0,321 0,321
0,4∗0,177 0,070
P [H1|E4] = = =0,218
0,321 0,321
0,3∗0,099 0,029
P [H1|E9] = = =0,090
0,321 0,321
c. Kutu Putih = P03
0,2∗0,028 0,005
P [H1|E2] = = =0,012
0,412 0,412
0,6∗0,256 0,154
P [H1|E6] = = =0,372
0,412 0,412
0,3∗0,064 0,019
P [H1|E8] = = =0,046
0,412 0,412
0,3∗0,064 0,019
P [H1|E10] = = =0,046
0,412 0,412
d. Kutu Perisai = P04
0,2∗0,02 0,004
P [H1|E2] = = =0,090
0,44 0,44
0,4∗0,08 0,032
P [H1|E4] = = =0,072
0,44 0,44
0,4∗0,08 0,032
P [H1|E5] = = =0,072
0,44 0,44
0,6∗0,18 0,108
P [H1|E7] = = =0,0245
0,44 0,44
0,4∗0,08 0,032
P [H1|E11] = = =0,072
0,44 0,44
6. Mencari nilai kesimpulan dari Teorema Bayes dengan cara mengalikan nilai probabilitas
evidence awal atau P(E|Hi) dengan nilai hipotesis Hi benar jika diberikan evidence E atau
P(Hi|E) dan menjumlahkan hasil perkalian.
n

∑ Bayes=¿ P ( E| H 1 ¿∗P ( E 1∨H 1)+…+ P( E∨Hi)∗P ( E∨Hi)


k=n

a. Busuk Akar = P01

∑ Bayes=¿ ( 0,6∗0,018 ) +( 0,2∗0,066 ) + ( 0,8∗0,426 )+ ( 0,4∗0,053 )=( 0,010+ 0,013+0,340+0,021 )=0,384∗


k=4

b. Kutu Sisik = P02

∑ Bayes=¿ ( 0,2∗0,024 ) +( 0,4∗0,218 )+ ( 0,3∗0,090 )=( 0,004+ 0,087+0,027 ) =0,118∗100 %=11,08 % ¿


k =3

c. Kutu Putih = P03

∑ Bayes=¿ ( 0,2∗0,012 )+ ( 0,6∗0,372 )+ ( 0,3∗0,046 ) +( 0,3∗0,046 )=( 0,005+ 0,153+0,019+0,019 ) =0,196∗


k=4

d. Kutu Perisai = P04

∑ Bayes=¿ ( 0,2∗0,02 ) +( 0,4∗0 , 08 )+ ( 0 , 4∗0 , 08 ) + ( 0 , 6∗0 , 18 )+ ( 0,4∗0,08 )= ( 0,004+0,0 32+0,0 32+0,10


k =5

You might also like