2
8.8kviews
Apply the Naive Bayes classifier algorithm for buys computer classification

and classify the tuple = X(age "young". Income = "medium", student = "yes" and credit - rating = "fair")

ID Age Income Student Credit-rating buys computer
1 young high no fair no
2 young high no good no
3 middle high no fair yes
4 old medium no fair yes
5 old medium no fair yes
6 old low yes good no
7 middle low yes good yes
8 young medium no fair yes
9 young low yes fair yes
10 old medium yes fair yes
11 young medium yes fair yes
12 middle medium no good yes
13 middle high yes fair yes
14 old medium no good no

1 Answer
0
696views

Let $c_1$ $\rightarrow$ buys-comp = "yes"

$c_2$ $\rightarrow$ buys - comp = "xs"

  1. calculate class probabilities

p (1) = 9/4

p (2) = 5/14

  1. calculate p ( $c_1$ | x) = p (x| $c_1$) . p ($c_1$)

p (x | $c_1$) = $\frac{\gamma}{11} p (xk | c_1)$

$\therefore$ p ($x_1 …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.