For integrable real , including points where decreases the integral and including points where increases it. Thus the negative set minimizes the integral, up to null sets and arbitrary choices where . This elementary signed-integral fact derives the Bayes classifier and cost-sensitive Bayes classifier.
With zero cost for correct assignments, the total expected misclassification cost is
The part depending on is the integral of . Therefore the cost-sensitive Bayes classifier is
For positive costs and weighted densities, the log posterior-odds score from part (ii) now has threshold . Larger cost of sending class one to class two expands the region assigned to class one. The weighted-density comparison also handles zero costs without taking an undefined logarithm.