The goal is to minimize the Bayes Risk

Link to original

Where are the prior probabilities, and is the cost of deciding when is true.

Link to original

Which gives the following decision rule

Where