Naive Bayes

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Naïve 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.

• The formula for Bayes' theorem is given as:

• Where,

• P(A|B) is Posterior probability: Probability of hypothesis A on the observed event B.

• P(B|A) is Likelihood probability: Probability of the evidence given that the probability of a hypothesis is true.

• P(A) is Prior Probability: Probability of hypothesis before observing the evidence.

• P(B) is Marginal Probability: Probability of Evidence.


Working of Naïve Bayes' Classifier:


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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy