Blog on Naive Bayes
INTRODUCTION: Naive Bayes is a Supervised Machine Learning algorithm based on the Bayes Theorem that is used to solve classification problems by following a probabilistic approach. It is based on the idea that the predictor variables in a Machine Learning model are independent of each other. Meaning that the outcome of a model depends on a set of independent variables that have nothing to do with each other. The Math Behind Naive Bayes The principle behind Naive Bayes is the Bayes theorem also known as the Bayes Rule. The Bayes theorem is used to calculate the conditional probability, which is nothing but the probability of an event occurring based on information about the events in the past. Mathematically, the Bayes theorem is represented as: In the above equation: P(A|B): Conditional probability of event A occurring, given the event B P(A): Probability of event A occurring P(B): Probability of event B occurring P(B|A): Conditional probability of event B occurring, g...