A simple explanation of Na ve Bayes Classification

0 votes
I am finding it hard to understand the process of Naive Bayes, and I was wondering if someone could explain it with a simple step by step process in English. I understand it takes comparisons by times occurred as a probability, but I have no idea how the training data is related to the actual dataset.
Feb 22, 2022 in Machine Learning by Dev
• 6,000 points
497 views

1 answer to this question.

0 votes

Naive Bayes Classification uses probability to classify data points.
Naive Bayes can be understood better if the concept of conditional probability and Bayes rule are clear. Naive Bayes makes a strong assumption that features are independent of each other.
Conditional Probability is based on the probability that something will happen, given that some event already happened i.e; based on past event occurrences.

  • Event A is that it is raining outside, and it has a 0.4 (40%) chance of raining today.

  • Event B is that you will play outside, and that has a probability of 0.6 (60%).

The conditional  probability is that it is both rain and you will play.
P(Play | Rain) = P(Rain) | P(Play) * P(Play) / P(Rain)

Thus, on the basis of some known past events, probability is calculated.
Naive bayes is suitable for multiclass prediction and it performs well with both categorical and numeric data.
But the strong assumption that Naive Bayes makes serves as a negative point as in real-life we hardly find features completely independent of each other.
Naive Bayes finds it application in Spam filtering, building recommender system, sentiment analysis and others.

answered Feb 22, 2022 by Nandini
• 5,480 points

Related Questions In Machine Learning

0 votes
1 answer

Is predicting number of sales a Regression or Classification problem?

The output will be discrete but the ...READ MORE

answered Feb 25, 2022 in Machine Learning by Dev
• 6,000 points
1,307 views
+1 vote
1 answer

not able to see all columns and rows of a pandas DataFrame?

Hi@akhtar, Your data set contains lots of rows ...READ MORE

answered Apr 8, 2020 in Machine Learning by MD
• 95,460 points
5,532 views
0 votes
1 answer

Classification in Naive Bayes algorithm

Hi@Ogun, The Numpy module doesn't have a predict attribute. ...READ MORE

answered Oct 5, 2020 in Machine Learning by MD
• 95,460 points
1,344 views
0 votes
1 answer

How can I train a model and calculate the accuracy of CBR algorithm?

Hi@Abubakar, You can find lots of documents on ...READ MORE

answered Oct 17, 2020 in Machine Learning by MD
• 95,460 points
814 views
0 votes
1 answer
0 votes
1 answer

Handling Imbalanced dataset

This usually occurs when a vast set ...READ MORE

answered Oct 17, 2018 in Data Analytics by kurt_cobain
• 9,350 points
887 views
0 votes
1 answer
0 votes
1 answer

What is the difference between classification and prediction?

Classification is about classifying categorical variables in ...READ MORE

answered Feb 25, 2022 in Machine Learning by Dev
• 6,000 points
1,279 views
0 votes
1 answer

Assumptions of Naïve Bayes and Logistic Regression

There are very few difference between Naive ...READ MORE

answered Feb 7, 2022 in Machine Learning by Nandini
• 5,480 points
500 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP