題組內容
8. Let $Y1, Y2, \cdots, Y_n$ denote a random sample from a Bernoulli-distributed population with parameter $p$. That is,
$$p(yi \mid p) = p^{yi} (1 - p)^{1 - yi}, \quad yi = 0, 1.$$
(a) Suppose that we are interested in testing \( H_0 : p = p_0 \) versus \( H_a : p = p_a \), where \( p_0 < p_a \). i. Show that \[ \frac{L(p_0)}{L(p_a)} = \left( \frac{p_0(1-p_a)}{(1-p_0)p_a} \right)^{\sum y_i} \left( \frac{1-p_0}{1-p_a} \right)^n . \quad (4\%) \] ii. Argue that \( L(p_0)/L(p_a) < k \) if and only if \( \sum_{i=1}^n y_i > k^* \) for some constant \( k^* \). (4%) iii. Give the rejection region for the most powerful test of \( H_0 \) versus \( H_a \). (4%)