Denote by an observed feature vector (data), and a random variable representing the class label.
Bayes’ rule :

  • : Posterior probability of class given feature vector .
  • : Likelihood of feature vector given class C.
  • : Prior probability of class C.
  • : Marginal likelihood, also classed the Evidence (constant with respect to C).