Definition

The Bayes decision rule predicts the label with the smallest conditional risk . Special cases: MAP (0-1 loss, largest posterior) and maximum likelihood (additionally a uniform prior, largest ).

Formula

Two classes, = cost of predicting 0 when , = cost of predicting 1 when :

Gaussians with equal variance:

Decision boundaries are where the two weighted curves cross. A larger prior or a larger miss cost for a class enlarges its region. Given a boundary, plugging it into the equality gives the prior or the cost ratio backwards.

Appears in