The Bayesian approach is an indirect method for classification that models probabilities to determine class membership. It involves three main steps:

  1. Model the class-conditional likelihood for each class,

  2. Model the prior probability for each class,

  3. Use Bayes’ formula to calculate the posterior probability, , which is the probability of a class given the input data.

The Bayesian Formula is:

Here, is the “evidence” and acts as a scaling factor that does not influence the classification decision.