Point Testing

A point test is a hypothesis test in which the null hypothesis fully specifies the distribution by fixing the parameter to a single value.

For binary hypothesis testing, the Neyman-Pearson Test is the point test which maximizes power subject to a constraint on the significance level . Define the Likelihood Ratio to be

Then, for some critical threshold and an observation :

  1. Accept if .
  2. Reject with probability if .
  3. Reject if .

This guarantees that the test yields the smallest possible among all tests that do not exceed .

Intuition

We first begin by expressing the Neyman-Pearson Test as an optimization problem, where

Examples

Exponential Hypothesis Testing

Let . Given , let . Let . Suppose that

  • The null hypothesis is , and
  • The alternative hypothesis is .

Find the decision rule (a function of ) that maximizes subject to .

\alpha &= \mathbb{P}(\hat{X}=1 \mid X = c) \
&=\mathbb{P}(L(Y) \leq \zeta \mid X=c) \
&= \mathbb{P}(Y \leq t \mid X=c) \
&= 1-e^{-ct} \
&= 0.05 \iff t=-\frac{\ln 0.95}{c}
\end{align}$$

Therefore, we equate the two values of to solve for the threshold , so that

Our rule is then

\hat{X}=\begin{cases}
1 & \text{if } L(Y) \leq \lambda \equiv Y \leq t \
c & \text{if } L(Y) > \lambda \equiv Y > t.
\end{cases}
\end{align}$$

Bernoulli Hypothesis Testing

Suppose that

  • The null hypothesis is , and
  • The alternative hypothesis is .

Using the Neyman–Pearson formulation of hypothesis testing, find the optimal randomized decision rule with respect to the criterion

\min &\enspace \mathbb{P}(\hat{X}=0 \mid X=1) \
\text{s.t.} &\enspace \mathbb{P}(\hat{X}=1 \mid X=0) \le \beta,
\end{align}$$

where is a given upper bound on the false positive probability.

This question requires us to find the test that minimizes the false negative probability while keeping the false positive probability below . We start by computing the likelihood ratio,

such that and , or

L(y)=\begin{cases} 1/3 & \text{if } y=0 \\ 3 & \text{if } y=1. \end{cases} \end{align}$$ Since $L(1) = 3 \geq 1/3=L(0)$, $L(1)$, observing $y=1$ is stronger evidence for $X=1$. Recall that with the Neyman-Pearson test, - If $\lambda \in (1/3, 3)$, then we always accept $H_{0}:X=0$ on $y=0$, since $L(0) < \lambda$, and conversely, we always reject $H_{0}$ on $y=1$, since $L(1)>\lambda$ for all $\lambda$. Therefore, $\gamma=0$, and $$\begin{align} \beta&=\mathbb{P}(Y=1 \mid X=0)+\gamma \mathbb{P}(Y=0 \mid X=0) \\ &=1/4+0 \cdot \mathbb{P}(Y=0 \mid X=0) \\ &=1/4. \end{align}$$ - If $\lambda=1/3$, then we randomize on $y=0$, and always reject on $y=1$ (since $L(1)=3 > 1/3$). Therefore, $$\begin{align} \beta &= \mathbb{P}(Y=1 \mid X=0)+\gamma \mathbb{P}(Y = 0 \mid X=0) \\ &= 1/4+\gamma(3/4) \iff \gamma=\frac{4\beta-1}{3}. \end{align}$$ - If $\lambda =3$, then we always reject $H_{0}$ on $y=0$, since $L(0)=1/3 \cancel{<}3$, and randomize on $y=1$, since $L(1)=3=\lambda$. Therefore, $$\begin{align} \beta &= \gamma\mathbb{P}(Y=1 \mid X=0)+\mathbb{P}(Y = 0 \mid X=0) \\ &= \gamma(1/4)+0 \iff \gamma=4\beta. \end{align}$$ Then, $\gamma=4\beta$ has a domain of $\beta \in [0, 1/4]$, and $\gamma=\frac{4\beta-1}{3}$ has a domain of $\beta \in [1/4, 1]$. This creates the following rule for the two cases (i.e., where $\beta < 1/4$ and $\beta > \frac{1}{4}$): $$\begin{align} \hat{X}_{\beta < \frac{1}{4}}=\begin{cases} 0 & \text{if } Y=0 \\ \operatorname{Ber}(\gamma=4\beta) & \text{if }Y=1, \end{cases} \end{align}$$ and $$\hat{X}_{\beta > \frac{1}{4}} = \begin{cases} \operatorname{Ber}\left( \gamma=\frac{4\beta-1}{3} \right) & \text{if } Y=0 \\ 1 & \text{if } Y=1. \end{cases}$$ For $\beta=1/4$, we have a standard $\hat{X}=1_{Y=1}$.