For a minimum-error-rate classifier, several equivalent discriminant functions can be used, as the final decision only depends on which one is the maximum. Starting with the posterior probability:
-
Ideal form (Posterior Probability):
-
Simplified form (Ignoring the evidence): Since the denominator (evidence) is the same for all classes, it can be dropped.
-
Logarithmic form: Taking the natural logarithm simplifies multiplication into addition, which is often computationally more stable and convenient.
All these forms will yield the same classification result because they preserve the order of the discriminant values.
Discriminant function for a two-category, minimum-error-rate case.
Decide for , if Decide for , if
Choice of Discriminant:
-
Based on Posterior Probabilities: This is a direct comparison of the posterior probabilities for each class.
-
Based on Log-Likelihood Ratio (LLR): This formulation is often more convenient as it separates the likelihoods from the priors and uses logarithms to convert products into sums.
This is equivalent to the log-likelihood ratio plus the log of the prior odds.