3.1 Fundamentals

Hypothesis testing is just a particular type of decision problem. As usual, we assume that the data is sampled according to \(X \sim \mathbb {P}_\theta \) and that \(\mathbb {P}_\theta \) belongs to the model \(\mathcal {P} = \{\mathbb {P}_\theta : \theta \in \Omega \}\). In addition to the standard setup, we divide the models in \(\mathcal {P}\) into two disjoint subclasses known as “hypotheses”: \[ \begin {aligned} H_0 &: \theta \in \Omega _0 \subset \Omega && \text {(null hypothesis)} \\ H_1 &: \theta \in \Omega _1 = \Omega \setminus \Omega _0 && \text {(alternative hypothesis)} \end {aligned} \]

Our goal is to infer which hypothesis is correct. This can be cast as classification, so our decision space is \[ \mathcal {D} = \{\text {accept } H_0,\ \text {reject } H_0\}. \]

\(\theta \in \Omega _0\) \(\theta \in \Omega _1\)
Reject \(H_0\)
1 (Type I Error) 0 (Good)
Accept \(H_0\)
0 (Good) 1 (Type II Error)
Table 1. Canonical loss function \(L(\theta , d)\).

We have two types of error which induce a loss. A Type I error or false positive occurs when we reject \(H_0\) when it is in fact true. Similarly a Type II error or false negative occurs when we accept \(H_0\) when it is false. Define a test function \(\phi (X)\) as \[ \phi (X) = \mathbb {P}\!\left (\delta _\phi (X, U) = \text {Reject } H_0 \,\big |\, X\right ). \] where \(U\) is as usual a uniform random variable independent of \(X\).

Now we talk about Neyman-Pearson paradigm, which simply bounds it and focuses on minimizing the Type II error. Especially, we require a level \(\alpha \) test \[ \sup _{\theta _0 \in \Omega _0} \mathbb {E}_{\theta _0} \phi (X) = \sup _{\theta _0 \in \Omega _0} \beta (\theta _0) \le \alpha . \] that maximizes the power \(\beta (\theta _1) = \mathbb {E}_{\theta _1}[\phi (X)]\) for each \(\theta _1 \in \Omega _1\). Such a test is called uniformly most powerful (UMP).

Consider the “simple” test \[ \begin {aligned} H_0 &: X \sim p_0 \\ H_1 &: X \sim p_1 \end {aligned} \] where \(p_0, p_1\) denote the densities of \(\mathbb {P}_{\theta _0}, \mathbb {P}_{\theta _1}\) with respect to some common measure \(\mu \), and we call \(\mathbb {E}_{p_1}[\phi (X)]\) the power of the test \(\phi \). Our goal in the simple case can be compactly described as: \[ \begin {aligned} \max _{\phi } \quad & \mathbb {E}_{p_1}[\phi (X)] \\ \text {s.t.} \quad & \mathbb {E}_{p_0}[\phi (X)] \le \alpha . \end {aligned} \]

3.1.1 Neyman-Pearson Lemma
3.1.2 Monotone Likelihood Ratio

In the above example, we were able to extend our MP test for a simple hypothesis to a UMP test for a one-sided hypothesis. This phenomenon is not unique to exponential families. We can get the same behavior whenever the models have a so-called monotone likelihood ratio.

3.1.3 Composite Null

Now we introduce a new strategy to deal with cases with a composite null. Consider the case with a simple alternative: \[ \begin {aligned} H_0 &: X \sim f_\theta , \quad \theta \in \Omega _0 \\ H_1 &: X \sim g, \end {aligned} \] where \(g\) is known. We now impose a prior distribution \(\Lambda \) on \(\Omega _0\). So we consider the new hypothesis \[ H_\Lambda : X \sim h_\Lambda (x) = \int _{\Omega _0} f_\theta (x)\, d\Lambda (\theta ), \] where \(h_\Lambda (x)\) is the marginal distribution of \(X\) induced by \(\Lambda \). In order to reduce the problem to a simple versus simple case, let us test \(H_\Lambda \) against \(H_1\). Let \(\beta _\Lambda \) be the power of the MP level-\(\alpha \) test \(\phi _\Lambda \) for testing \(H_\Lambda \) vs. \(g\).

Hence, \(\Lambda \) will be the least favorable distribution if the MP test under \(\Lambda \) has smaller power than the MP test under any other prior distribution. The following theorem can help us to deal with the case of composite null by using the notion of least favorable distribution, which tells that if we choose \(\Lambda \) in the right way, we can get the MP.

3.1.4 Method of Undetermined Multipliers

Unbiasedness enforces the appealing property that the probability of rejection is greater under any alternative distribution than it is under any null distribution. A uniformly most powerful test is always unbiased if it exists.

The following lemma tells us we can find a UMPU test by looking only at \(\alpha \)-similar tests.

Proof. Firstly, because \(\phi _0\) is UMP \(\alpha \)-similar tests, it is at least as powerful as \(\phi _\alpha (X) \equiv \alpha \), and the power of \(\phi _0\) on \(\Omega _1\) is therefore \(\ge \alpha \). Hence, \(\phi _0\) is unbiased. □

Let us test \(H_0: \theta = \theta _0\) vs. \(H_1: \theta \neq \theta _0\) when \(X\) is distributed according some member of the one-dimensional exponential family \[ p_\theta (x) = h(x) \exp \left (\theta T(x) - A(\theta )\right ) \] We have the \(\alpha -\)level condition \[ \beta _\phi (\theta _0) = \alpha , \] and the derivative condition \[ \frac {{\mathop{}\!\mathrm{d}} }{{\mathop{}\!\mathrm{d}} \theta } \beta _\phi (\theta _0) = 0. \] As now we have multiple constraints, we introduce the method of undetermined multipliers.

In this setting, \(H_0 : \theta = \theta _0\). We will fix a simple alternative \(\theta = \theta ' \neq \theta _0\) and hope that our best test has no \(\theta '\) dependence. We would like to maximize power \(\int \phi (x) p_{\theta '}(x) \, d\mu (x)\) subject to \begin{align*} \int \phi (x) p_{\theta _0}(x) \, d\mu (x) &= \alpha \\ \int \phi (x) \frac {d}{d\theta } p_{\theta _0}(x) \, d\mu (x) &= 0. \end{align*}

For a 1-parameter exponential family, we have \begin{align} p_\theta (x) &= h(x) e^{\theta T(x) - A(\theta )} \quad \text {and} \\ \frac {d}{d\theta } p_\theta (x) &= h(x) e^{\theta T(x) - A(\theta )} \left ( T(x) - A'(\theta ) \right ) = p_\theta (x) \left ( T(x) - \mathbb {E}_\theta [T(X)] \right ). \end{align}

Applying the reasoning from the previous section, we find that a most powerful test has rejection region defined by \[ p_{\theta '}(x) > k_1 p_{\theta _0}(x) + k_2 \frac {d}{d\theta } p_{\theta _0}(x) \] for some values of \(k_1\) and \(k_2\), which is equivalent to \[ \frac {e^{(\theta ' - \theta _0) T(x)}}{k_1' + k_2' T(x)} > \text {const} \] with some rearranging.

PIC

Figure 1. Rejection Regions

The first possibility will not give rise to an unbiased test, because the result would be a one-sided test with monotone power functions. Therefore any optimal \(\phi \) is of the form \[ \phi (x) = \begin {cases} 1 & \text {if } T(x) > C_1 \text { or } T(x) < C_2 \\ \gamma _i & \text {if } T(x) = C_i \\ 0 & \text {otherwise} \end {cases}. \] A simplification is possible if \(T(x)\) is symmetrically distributed under \(\theta _0\). Then the optimal test rejects whenever \(|T(x)| > \text {const}\). Such tests are called equitailed tests.

3.1.5 UMP Invariant Tests
3.1.6 Confidence Regions

Given a model \(\mathcal {P} = \{\mathbb {P}_\theta : \theta \in \Omega \}\), we begin by defining an appropriate collection of tests. For each \(\theta _0 \in \Omega \), let \(\Omega _0(\theta _0)\) be a set containing \(\theta _0\), where \(\Omega _0(\theta _0) \subset \Omega \). Next, define \(\phi _{\theta _0}\) to be a level \(\alpha \) test for \(H_0: \theta \in \Omega _0(\theta _0)\) vs. \(H_1: \theta \notin \Omega _0(\theta _0)\), and define \(A(\theta _0)\) as the acceptance region of \(\phi _{\theta _0}\). Because \(\phi _{\theta _0}\) is a level \(\alpha \) test, and \(\theta _0 \in \Omega _0(\theta _0)\), we have \(P_\theta (X \in A(\theta )) \ge 1 - \alpha \) for all \(\theta \in \Omega \).

Now consider the region \(S(X) = \{\theta \in \Omega : X \in A(\theta )\}\). Since \(P_\theta (\theta \in S(X)) = P_\theta (X \in A(\theta )) \ge 1 - \alpha \), \(S(X)\) is a \(1 - \alpha \) confidence region! Different choices of null sets \(\Omega _0(\theta _0)\) will lead to different forms of confidence regions. For example,

1.
One-sided tests \(\Omega _0(\theta _0) = \{\theta : \theta \le \theta _0\}\) often yield confidence bounds \[ S(X) = \{\theta : u(X) \le \theta \} \] where \(u(X)\) denotes a data-dependent lower bound.
2.
Two-sided tests \(\Omega _0(\theta _0) = \{\theta _0\}\) often yield confidence intervals \[ S(X) = \{\theta : u(X) \le \theta \le v(X)\}, \] where \(v(X)\) denotes a data-dependent upper bound.

Intuitively, we desire a \(1 - \alpha \) confidence region that is as narrow as possible, which we can achieve by minimizing the number of extraneous it contains. We make this notion precise in the following optimality property for confidence regions.

Search definitions, theorems, and topics across the notes.