# naive bayes

```Nama : Triawan
Nim
Data Mining
: 310117012495
Kelas : 61
ID
X1
X2
X3
Class
1
Yes
Single
125
No
2
No
Married
100
No
3
No
Single
70
No
4
Yes
Married
120
No
5
No
Divorce
95
Yes
6
No
Married
60
No
7
Yes
Divorce
220
No
8
No
Single
85
Yes
9
No
Married
75
No
90
Yes
10
No
Single
X(X1=Yes,X2=Divorce,X3=85)
P(Y=Yes) = 3/10, P(Y=No) = 7/10
P(X1=Yes|Y=Yes) = 0/3
P(X1=Yes|Y=No) = 3/7
P(X2=Divorce|Y=Yes) = 1/3
P(X2=Divorce|Y=No) = 1/7
P(X3=85|Y=Yes) = 1/3
P(X3=85|Y=No) = 0/7
-
Y = Yes
P (X1=Yes,X2=Divorce,X3=85|Y=Yes) :
= {P(P(X1=Yes|Y=Yes).P(X2=Divorce|Y=Yes).P(X3=85|Y=Yes).P(Y=Yes)}
=
{(0/3)
.(1/3)
.(1/3)
.(3/10)
}
= 0 x 0,33 x 0,33 x 0,3
= 0
-
Y = No
P (X1=Yes,X2=Divorce,X3=85|Y=No) :
= {P(P(X1=Yes|Y=No).P(X2=Divorce|Y=No).P(X3=85|Y=No).P(Y=No)}
=
{(3/7)
.(1/7)
.(0/7)
.(7/10)}
= 0,429 x 0,143 x 0 x 0,7
=0
Sehingga Keputusannya adalah tidak ada karena baik Yes maupun No bernilai 0
```
##### Random flashcards
Rekening Agen Resmi De Nature Indonesia

9 Cards denaturerumahsehat

sport and healty

2 Cards Nova Aulia Rahman

Nomor Rekening Asli Agen De Nature Indonesia

2 Cards denaturerumahsehat

Card

2 Cards