Bayes
Bayes
Terminologies:
Hence, the above formula gives the probability of a particular Ei (i.e. a “Cause”), given
that the event A has occurred.
Where P(A|B) is the probability of condition when event A is occurring while event B has
already occurred.
From the above bayes statement formula for Naïve Bayes classification
derived as follows :
Consider any two events A and B are independent, then,
P(A,B) = P(A) P(B)
Hence, we reach to the result:
Now, as the denominator remains constant for a given input, we can remove that
term:
Now, to create a classifier model, find the probability of given set of inputs for all
possible values of the class variable y and pick up the output with maximum
probability.
This can be expressed mathematically as:
So, finally, we are left with the task of calculating P(Y) and P(xi|y).
Note that P(Y) is also called class probability and P(xi|y) is called conditional
probability.
Example
As VNB(no) >VNB(yes)