Now, if we have a composite hypothesis, such as , the error probabilities are not singular-valued.
So, we define the power function, which is as follows:
.
Ideally, we would like W(θ) to be small on the null hypothesis and large on the alternative hypothesis.
The size of the test is , which is not an ideal size. Given , .