The document discusses Bayesian classifiers which use Bayes' theorem to predict class membership probabilities based on training data. It can learn from large datasets and predict with high accuracy and speed. An example is given of using a Bayesian classifier to predict whether to play tennis based on weather conditions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views
Naive Bayes Algorithm
The document discusses Bayesian classifiers which use Bayes' theorem to predict class membership probabilities based on training data. It can learn from large datasets and predict with high accuracy and speed. An example is given of using a Bayesian classifier to predict whether to play tennis based on weather conditions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4
Baysian Classifier:
It is statistical classifier. It can predict class membership
probabilities, such as the probability that a given tuple belongs to a particular class. This is based on Baye’s (18th- century British mathematician Thomas Bayes) theorem. It shows high accuracy and speed when it is applied to a large database.
COMP20411 Machine Learning 1
Example • Example: Play Tennis
COMP20411 Machine Learning 2
Example • Learning Phase Outlook Play=Yes Play=No Temperature Play=Yes Play=No Sunny 2/9 3/5 Hot 2/9 2/5 Overcast 4/9 0/5 Mild 4/9 2/5 Rain 3/9 2/5 Cool 3/9 1/5
Humidity Play=Yes Play=No Wind Play=Yes Play=No
High 3/9 4/5 Strong 3/9 3/5 Normal 6/9 1/5 Weak 6/9 2/5
P(Play=Yes) = 9/14 P(Play=No) = 5/14
COMP20411 Machine Learning 3
Example • Test Phase – Given a new instance, x’=(Outlook=Sunny, Temperature=Cool, Humidity=High, Wind=Strong) – Look up tables P(Outlook=Sunny|Play=Yes) = 2/9 P(Outlook=Sunny|Play=No) = 3/5 P(Temperature=Cool|Play=Yes) = 3/9 P(Temperature=Cool|Play==No) = 1/5 P(Huminity=High|Play=Yes) = 3/9 P(Huminity=High|Play=No) = 4/5 P(Wind=Strong|Play=Yes) = 3/9 P(Wind=Strong|Play=No) = 3/5 P(Play=Yes) = 9/14 P(Play=No) = 5/14