Naive Bayes
Naive Bayes
Naive Bayes
Classifier Algorithm
Firoz Hasan
Lecturer(Senior Scale)
Naïve Bayes Classifier Algorithm
•
•
•
Why is it called Naïve Bayes?
•
Bayes' Theorem:
• Bayes' theorem is also known as Bayes' Rule or Bayes' law, which is used to determine the probability of a hypothesis with
prior knowledge. It depends on the conditional probability.
• Where,
• P(B|A) is Likelihood probability: Probability of the evidence given that the probability of a hypothesis is true.
•
Problem Statement
• Problem: If the weather is sunny, then the Player should play or not?
Serial No Outlook Play
0 Rainy Yes
1 Sunny Yes
2 Overcast Yes
3 Overcast Yes
4 Sunny No
Dataset
5 Rainy Yes
6 Sunny Yes
7 Overcast Yes
8 Rainy No
9 Sunny No
10 Sunny Yes
11 Rainy No
12 Overcast Yes
13 Overcast Yes