Naïve Bayes Algorithm
Naive Bayes is a classification technique that is based
on Bayes’ Theorem with an assumption that all the features
that predicts the target value are independent of each other.
(1) Supervised Learning Algorithm
(2) Used in Classification problem
(3) Based on applying Bayes theorem
Conditonal probability:
Bayes theorem:
Naïve Bayes Types & Use Cases
Type Feature Type Use Case
Gaussian NB Continuous Medical tests, sensor data
Multinomial
Count data Text classification, spam detection
NB
Bernoulli NB Binary (0/1) Word presence, email spam
Complement Count data
Fake news, toxic comment detection
NB (imbalanced)
Customer segmentation, diagnosis with
Categorical NB Categorical
categories