Professional Documents
Culture Documents
14 - Naive Baysean Classification
14 - Naive Baysean Classification
14 - Naive Baysean Classification
Bayesian Classifiers
1
BAYESIAN CLASSIFICATION
Bayes Theorem
2
BAYESIAN CLASSIFICATION
Prior Probability
3
BAYESIAN CLASSIFICATION
Posterior Probability
Example:
Let the data samples be fruits described by their colour and
shape
Suppose X = red and round
and H = hypothesis that X is an apple
4
BAYESIAN CLASSIFICATION
Bayes Theorem
5
BAYESIAN CLASSIFICATION
6
BAYESIAN CLASSIFICATION
7
BAYESIAN CLASSIFICATION
It works as follows:
8
BAYESIAN CLASSIFICATION
9
BAYESIAN CLASSIFICATION
If class prior probabilities are equal (or not known and thus
assumed to be equal) then we need to calculate only P(X|Ci)
10
BAYESIAN CLASSIFICATION
12
BAYESIAN CLASSIFICATION
Example
P(colour shape | apple) = P(colour | apple) P(shape | apple)
13
BAYESIAN CLASSIFICATION
For an attribute Ak, which can take on the values x1k, x2k, …
e.g. colour = red, green, …
P(xk|Ci) = sik/si
15
BAYESIAN CLASSIFICATION
Example:
16
BAYESIAN CLASSIFICATION
Example:
Example:
To compute P(X|Ci) we compute the following conditional
probabilities
18
BAYESIAN CLASSIFICATION
Example:
Using the above probabilities we obtain
19
Reading Assignment & References
20