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.

Formula:

                                     P(B/A)*P(A)   

                 P(A/B) =  -------------  

                                          P(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:

Formula:  

                 

                                    P(X/Y)*P(X)

                 P(Y/X) =  -------------

                                          P(X)

Note: Y is a variable and X is a dependent feature.