Naïve Bayes Classifier
What is Naïve Bayes Classifier?
This NBC works on the principle of conditional probability as given by the Bayes theorem.
Source: https://www.simplilearn.com/tutorials/machine-learning-tutorial/naive-bayes-classifier
Where is the Naive Bayes classifier used?
Face Recognition- This classifier is used to identify facial features like eyes, nose & mouth.
Weather Prediction- It can predict whether the weather will be good or bad.
Medical Diagnosis- The classifier provides some information to the doctors that can be used to
diagnose the patients. Healthcare staff can use the Naive Bayes classifier to indicate whether the
patient is at high risk for certain diseases and conditions.
News Classification- After matching the data, the naive Bayes algorithm is applied to the test
dataset, the probability of every word is verified, and an approximate percentage value is
calculated, determining the accuracy of the fake news. As a result, whether a specific piece of
information is fake or real.
Algorithm:
The probability of an occurrence is calculated by the Naive Bayes classifier in the following
steps:
Step 1: Determine the prior probability for each of the supplied class labels.
Step 2: Using each attribute, compute the Likelihood Probability for each class.
Step 3: Enter these values into the Bayes Formula and compute the posterior probability.