Bayes Optimal Classification (I) If the possible classification of the new instance can take on any value v j from some set V, then the probability P(v j | D) that the correct classification for the new instance is v j, is just: 13 Clearly, the optimal classification of the new instance is the value v j, for which P(v j | D) is maximum, which gives rise to the following algorithm to classify query instances.