Naive Bayes Theorem
Bayes Theorem :
Bayes’ Theorem is used to find the probability of an event occurring after the probability of another event that has already occurred.
P(A/B) = -------------
Note: A and B are events and P(B) not equal to zero.
Actually we are trying to find probability of A after probability of B is occurred. Now, based on the dataset we will apply our bayes theorem to get the desired outcome.
We can use the above as formula as given below:
P(Y/X) = -------------
Note: Y is a variable and X is a dependent feature.