Professional Documents
Culture Documents
Bayes Recall
Bayes theorem uses the concept of
hypothesis and evidence
A record is an evidence
Bayes uses probability or statistics
INCOME
STUDENT
CREDIT RATING
BUYS
youth
high
no
fair
No
youth
high
no
excellent
No
adult
high
no
fair
Yes
old
medium
no
fair
Yes
old
low
yes
fair
Yes
old
low
yes
excellent
No
adult
low
yes
excellent
Yes
youth
medium
no
fair
No
youth
low
yes
fair
Yes
old
medium
yes
fair
Yes
youth
medium
yes
excellent
Yes
adult
medium
no
excellent
Yes
adult
high
yes
fair
Yes
old
medium
no
excellent
No
P(X | buys_computer=yes)
0.222 * 0.444 * 0.667 * 0.667
0.044
P(X | buys_computer=no)
0.600 * 0.400 * 0.200 * 0.400
0.019
P(X|Ci) P(Ci)
P(X | buys_computer=yes) P(buys_computer=yes)
= 0.044 * 0.643 = 0.028
P(X | buys_computer=no) P(buys_computer=no)
= 0.019 * 0.357 = 0.006
Therefore, the class of X = (age=youth, income = medium,
student = yes, credit_rating = fair) buys computer.