The Bayes theorem

The Bayes theorem helps us in finding posterior probability, given a certain condition:

P(A|B)= P(B|A) * P(A)/P(B)

A and B can be deemed as the target and features, respectively.

Where, P(A|B): posterior probability, which implies the probability of event A, given that B has taken place: