Bayes Optimal Test
Recall that Hypothesis Testing is a decision-making problem, where we make a binary decision . Therefore, given a loss function , we can define the Risk of a test, and thus derive the (Bayes) optimal test. For a binary HT, the loss function always takes the form
From now on we consider a simple test. Similarly, a Bayes prior always takes the form
Then, the Bayes Risk is
When and , we call it the unbiased risk.
Optimal Test
Suppose has density . Then, the Bayes-optimal test is given by
Proof
We can simply calculate the posterior:
Then, the Bayes-optimal test is given by