Lecture 5: Hypothesis testing
Economics 527: Econometric Methods
Hypotheses and errors
Estimator and parameter set
Normally distributed estimator with known variance \omega^2: \underset{1\times1}{\hat\theta} \sim N\big(\underset{1\times1}{\theta},\ \underset{1\times1}{\omega^2}\big), \qquad \frac{\hat\theta - \theta}{\omega} = Z \sim N(0,1)
Regression example, conditional on X: \theta = \beta_1,\, \hat\theta = \hat\beta_1, \, \omega^2 = \sigma^2 / (X_1^\top M_2 X_1).
Parameter set, for example \Theta = \mathbb{R}: \theta \in \Theta
Two disjoint parts: \begin{aligned} \Theta &= \Theta_0 \cup \Theta_1 \\ \Theta_0 \cap \Theta_1 &= \emptyset \end{aligned}
Null and alternative hypotheses: H_0 : \theta \in \Theta_0 \qquad \text{vs} \qquad H_1 : \theta \in \Theta_1
Examples of \Theta_0 and \Theta_1
Point null, \Theta = \mathbb{R}: \begin{aligned} \Theta_0 &= \{0\} \\ \Theta_1 &= \mathbb{R} \setminus \{0\} \\ &\Longleftrightarrow\quad H_0 : \theta = 0 \quad \text{vs} \quad H_1 : \theta \neq 0 \end{aligned}
More generally, for a known \theta_0: \begin{aligned} \Theta_0 &= \{\theta_0\} \\ \Theta_1 &= \mathbb{R} \setminus \{\theta_0\} \\ &\Longleftrightarrow\quad H_0 : \theta = \theta_0 \quad \text{vs} \quad H_1 : \theta \neq \theta_0 \end{aligned}
One-sided null: \begin{aligned} \Theta_0 &= [\,\theta_0,\ +\infty) \\ \Theta_1 &= (-\infty,\ \theta_0) \\ &\Longleftrightarrow\quad H_0 : \theta \ge \theta_0 \quad \text{vs} \quad H_1 : \theta < \theta_0 \end{aligned}
Definition. Simple hypothesis: a single-point set; otherwise composite: \Theta_0 = \{\theta_0\} : \ \text{simple}, \qquad \Theta_0 = [\,0,\ +\infty) : \ \text{composite}
Test statistic and decision rule
Test statistic T: a function of the data, random, with range S: \begin{aligned} T &\in S \\ S &= S_A \cup S_R, \qquad S_A \cap S_R = \emptyset \end{aligned}
S_A: acceptance region; S_R: rejection region.
Decision rule: \begin{aligned} T \in S_A \quad &\Longrightarrow \quad \text{decide in favor of } \theta \in \Theta_0 \qquad (\text{fail to reject } H_0) \\ T \in S_R \quad &\Longrightarrow \quad \text{decide in favor of } \theta \in \Theta_1 \qquad (\text{reject } H_0) \end{aligned}
Type I and Type II errors
Truth against decision:
| Truth | Decision H_0 | Decision H_1 |
|---|---|---|
| H_0 | correct | Type I error |
| H_1 | Type II error | correct |
Probabilities of the errors: \begin{aligned} \mathrm{P}(\text{Type I error}) &= \mathrm{P}(T \in S_R \mid \theta \in \Theta_0) \\ \mathrm{P}(\text{Type II error}) &= \mathrm{P}(T \notin S_R \mid \theta \in \Theta_1) \\ &= \mathrm{P}(T \in S_A \mid \theta \in \Theta_1) \end{aligned}
To make \mathrm{P}(\text{Type I error}) smaller: \begin{aligned} & S_R \downarrow \\ \Longrightarrow\quad & S_A \uparrow \\ \Longrightarrow\quad & \mathrm{P}(\text{Type II error}) \uparrow \end{aligned}
We can’t make both error probabilities small at the same time.
Valid test, size, significance level
Definition. Valid test, with \alpha chosen in advance: \begin{aligned} \mathrm{P}(\text{Type I error}) &= \mathrm{P}(\text{falsely deciding in favour of } H_1 \mid H_0 \text{ true}) \\ &\le \alpha \end{aligned}
Composite \Theta_0, supremum of the Type I error probabilities: \sup_{\theta \in \Theta_0} \mathrm{P}(T \in S_R \mid \theta) \le \alpha
Size \alpha test: \sup_{\theta \in \Theta_0} \mathrm{P}(T \in S_R \mid \theta) = \alpha
Significance level \alpha: small, for example 0.01, 0.05, 0.1.
Two-sided test
Point null against a two-sided alternative
Hypotheses, for example \theta_0 = 0: \underbrace{H_0 : \theta = \theta_0}_{\text{simple}} \qquad \text{vs} \qquad \underbrace{H_1 : \theta \neq \theta_0}_{\text{composite}}
Three objects: \begin{aligned} \theta &: \ \text{true value, unknown, fixed} \\ \hat\theta &: \ \text{estimator, data, random} \\ \theta_0 &: \ \text{chosen by you, known, fixed} \end{aligned}
Regression example, \theta = \beta_1 and \theta_0 = 0: H_0 : \beta_1 = 0 \qquad \text{vs} \qquad H_1 : \beta_1 \neq 0
Test statistic T(\theta_0)
Distance between the data and H_0: T(\theta_0) = \left|\frac{\hat\theta - \theta_0}{\omega}\right|
Reject H_0 when: \begin{aligned} & T(\theta_0) \ \text{ is large} \\ \Longleftrightarrow\quad & T(\theta_0) > c \end{aligned}
Regions, c > 0: \begin{aligned} S_R &= (c,\ +\infty) \\ S_A &= [\,0,\ c\,] \\ S &= S_A \cup S_R = [\,0,\ +\infty) \end{aligned}
Choose c for size control: \mathrm{P}(\text{Type I error}) \le \alpha
Choice of c
- Size \alpha: set the Type I error probability at \theta = \theta_0 to \alpha: \begin{aligned} \alpha &= \mathrm{P}(\text{Type I error}) \\ &= \mathrm{P}(\text{reject } H_0 \mid H_0 \text{ true}) \\ &= \mathrm{P}\big(T(\theta_0) > c \mid \theta = \theta_0\big) \\ &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > c \;\Big|\; \theta = \theta_0\Big) \\ &\overset{\theta = \theta_0}{=} \mathrm{P}\Big(\Big|\underbrace{\frac{\hat\theta - \theta}{\omega}}_{=\,Z \sim N(0,1)}\Big| > c\Big) \\ &= \mathrm{P}(|Z| > c) \\ &= \mathrm{P}\big(\underbrace{\{Z > c\}}_{A} \ \text{ or } \ \underbrace{\{-Z > c\}}_{B}\big) \\ &= \mathrm{P}(Z > c) + \mathrm{P}(Z < -c) \\ &= 2\,\mathrm{P}(Z > c) \\ \Longrightarrow\quad \mathrm{P}(Z > c) &= \frac{\alpha}{2} \\ \Longrightarrow\quad \mathrm{P}(Z \le c) &= 1 - \frac{\alpha}{2} \\ \Longrightarrow\quad c &= z_{1-\alpha/2} \qquad \big(\mathrm{P}(Z \le z_\tau) = \tau\big) \end{aligned}
Size \alpha two-sided test
Size \alpha test of H_0 : \theta = \theta_0 against H_1 : \theta \neq \theta_0: \boxed{\ \text{Reject } H_0 \ \text{ if } \ \left|\frac{\hat\theta - \theta_0}{\omega}\right| > z_{1-\alpha/2}\ }
For \alpha = 0.05: \begin{aligned} & z_{0.975} \approx 1.96 \approx 2 \\ \Longrightarrow\quad & \text{reject if } \ \Big|\frac{\hat\theta - \theta_0}{\omega}\Big| \gtrsim 2 \\ \Longleftrightarrow\quad & \text{reject if } \ |\hat\theta - \theta_0| \gtrsim 2\,\underbrace{\omega}_{\text{std. dev.}} \end{aligned}
Compare with: Reject if |\hat\theta - \theta_0| > 5\,\omega: \mathrm{P}(Z > 5) \approx 3 \cdot 10^{-7}, \qquad \alpha = \mathrm{P}(|Z| > 5) \approx 6 \cdot 10^{-7}
Significance at level \alpha
- Definition. Significance at level \alpha, by a size \alpha test: \begin{aligned} \Big|\frac{\hat\theta}{\omega}\Big| > z_{1-\alpha/2} \quad&\Longrightarrow\quad H_0 : \theta = 0 \ \text{ rejected in favour of } \ H_1 : \theta \neq 0 \\ &\Longrightarrow\quad \hat\theta \ \text{ significant at level } \alpha \end{aligned}
Test and confidence interval
Solve for \theta_0: \begin{aligned} H_0 \text{ rejected} \quad&\Longleftrightarrow\quad \left|\frac{\hat\theta - \theta_0}{\omega}\right| > z_{1-\alpha/2} \\ H_0 \text{ not rejected} \quad&\Longleftrightarrow\quad \left|\frac{\hat\theta - \theta_0}{\omega}\right| \le z_{1-\alpha/2} \\ &\Longleftrightarrow\quad -z_{1-\alpha/2} \le \frac{\hat\theta - \theta_0}{\omega} \le z_{1-\alpha/2} \\ &\Longleftrightarrow\quad -z_{1-\alpha/2}\,\omega \le \hat\theta - \theta_0 \le z_{1-\alpha/2}\,\omega \\ &\Longleftrightarrow\quad z_{1-\alpha/2}\,\omega \ge \theta_0 - \hat\theta \ge -z_{1-\alpha/2}\,\omega \\ &\Longleftrightarrow\quad \hat\theta + z_{1-\alpha/2}\,\omega \ge \theta_0 \ge \hat\theta - z_{1-\alpha/2}\,\omega \\ &\Longleftrightarrow\quad \hat\theta - z_{1-\alpha/2}\,\omega \le \theta_0 \le \hat\theta + z_{1-\alpha/2}\,\omega \\ &\Longleftrightarrow\quad \theta_0 \in CI_{1-\alpha} = \big[\hat\theta - z_{1-\alpha/2}\,\omega,\ \hat\theta + z_{1-\alpha/2}\,\omega\big] \end{aligned}
Equivalent statement of the test: \boxed{\ \text{Reject } H_0 : \theta = \theta_0 \ \text{ if } \ \theta_0 \notin CI_{1-\alpha}\ }
CI_{1-\alpha} as a set of null values
All \theta_0 the test does not reject: \begin{aligned} CI_{1-\alpha} &= \big\{\theta_0 : T(\theta_0) \le z_{1-\alpha/2}\big\} \\ &= \Big\{\theta_0 : \Big|\frac{\hat\theta - \theta_0}{\omega}\Big| \le z_{1-\alpha/2}\Big\} \\ &= \big\{\theta_0 : \text{a size } \alpha \text{ test does not reject } H_0 : \theta = \theta_0\big\} \end{aligned}
Suppose in your data: CI_{0.95} = [\,0.04,\ 0.06\,]
Power
Noise and signal
Type II error: \mathrm{P}(\text{Type II error}) = \mathrm{P}(\text{fail to reject } H_0 \mid \theta \neq \theta_0)
Split (\hat\theta - \theta_0)/\omega, under the true \theta: \begin{aligned} \underbrace{\frac{\hat\theta - \theta_0}{\omega}}_{\text{data} \,-\, H_0} &= \underbrace{\frac{\hat\theta - \theta}{\omega}}_{=\,Z \sim N(0,1),\ \text{noise}} + \underbrace{\frac{\theta - \theta_0}{\omega}}_{\text{truth} \,-\, H_0,\ \text{signal}} \\ &= Z + \frac{\theta - \theta_0}{\omega} \\ &\sim N\Big(\frac{\theta - \theta_0}{\omega},\ 1\Big) \end{aligned}
Power function \pi(\theta)
Probability of rejecting H_0, as a function of the true \theta: \begin{aligned} \pi(\theta) &= \mathrm{P}(\text{reject } H_0 \mid \theta) \\ &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta}{\omega} + \frac{\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(\Big|\underbrace{Z}_{N(0,1)} + \frac{\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2}\Big) \end{aligned}
Known: \theta_0, \omega, z_{1-\alpha/2}, the distribution of Z.
Unknown: \theta \in \mathbb{R}.
Type II error probability
- Type II error probability depends on \theta: For \theta \neq \theta_0, \begin{aligned} \mathrm{P}(\text{Type II error} \mid \theta) &= \mathrm{P}(\text{fail to reject } H_0 \mid \theta) \\ &= 1-\mathrm{P}(\text{reject } H_0 \mid \theta) \\ &= 1 - \pi(\theta). \end{aligned}
Distribution of (\hat\theta - \theta_0)/\omega under H_0 and H_1
Density of (\hat\theta - \theta_0)/\omega, with \theta_0 < \theta_1 < \theta_2:
Under \theta \neq \theta_0, more mass in the rejection region: \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) > \alpha
Power curve
\pi(\theta) against \theta: minimum \alpha at \theta_0, approaches 1 far from \theta_0:
Largest Type II error probability, as \theta \to \theta_0: \begin{aligned} \sup_{\theta \neq \theta_0} \mathrm{P}(\text{Type II error} \mid \theta) &= \sup_{\theta \neq \theta_0} \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| \le z_{1-\alpha/2} \;\Big|\; \theta\Big) \\ &= \sup_{\theta \neq \theta_0} \mathrm{P}\Big(\Big|Z + \frac{\theta - \theta_0}{\omega}\Big| \le z_{1-\alpha/2}\Big) \\ &= 1 - \alpha \end{aligned}
Maximum against supremum
Closed interval: \max_{x \in [0,1]} x = 1
Half-open interval: \begin{aligned} \max_{x \in [0,1)} x \ &\ \text{does not exist} \\ \sup_{x \in [0,1)} x \ &= 1 \end{aligned}
Definition. Supremum: \sup_{x \in \mathcal{X}} f(x) = \text{smallest upper bound of } \{f(x) : x \in \mathcal{X}\}
\mathrm{P}(\text{Type II error} \mid \theta) over \theta \neq \theta_0: no maximum.
Example: \hat\theta \sim N(\theta,\ 9)
H_0 : \theta = 0 vs H_1 : \theta \neq 0, \alpha = 0.05, \omega = 3: \text{Reject } H_0 \ \text{ if } \ \Big|\frac{\hat\theta}{3}\Big| > 1.96
Power function: \begin{aligned} \pi(\theta) &= \mathrm{P}\Big(\Big|\frac{\hat\theta}{3}\Big| > 1.96 \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta}{3} + \frac{\theta}{3}\Big| > 1.96\Big) \\ &= \mathrm{P}\Big(\Big|Z + \frac{\theta}{3}\Big| > 1.96\Big) \\ &= \mathrm{P}\Big(Z + \frac{\theta}{3} > 1.96 \ \text{ or } \ Z + \frac{\theta}{3} < -1.96\Big) \\ &= \mathrm{P}\Big(Z > 1.96 - \frac{\theta}{3}\Big) + \mathrm{P}\Big(Z < -1.96 - \frac{\theta}{3}\Big) \end{aligned}
Example, power at \theta = 3
Substitute \theta = 3: \begin{aligned} \pi(3) &= \mathrm{P}\Big(Z > 1.96 - \frac{3}{3}\Big) + \mathrm{P}\Big(Z < -1.96 - \frac{3}{3}\Big) \\ &= \mathrm{P}(Z > 0.96) + \mathrm{P}(Z < -2.96) \\ &\approx \underbrace{\mathrm{P}(Z \le -0.96)}_{\approx\,0.16853} + 0.00154 \\ &\approx 0.17 \end{aligned}
\pi(\theta) at four values of \theta: \pi(\theta) \approx \begin{cases} 0.063 & \theta = -1 \\ 0.05 & \theta = 0 \\ 0.063 & \theta = 1 \\ 0.17 & \theta = 3 \end{cases}
Failing to reject \beta_1 = 0
Regression, \theta = \beta_1, \omega^2 = \sigma^2 / (X_1^\top M_2 X_1): Y = \beta_1 X_1 + X_2 \beta_2 + U, \qquad H_0 : \beta_1 = 0 \quad \text{vs} \quad H_1 : \beta_1 \neq 0
Suppose H_0 is not rejected: \Big|\frac{\hat\beta_1}{\omega}\Big| \le z_{1-\alpha/2} \qquad \overset{?}{\Longrightarrow} \qquad \beta_1 = 0
Type II error probability near 1 - \alpha for \theta near \theta_0.
T(\theta_0) > z_{1-\alpha/2}: strong evidence that \theta \neq \theta_0.
Claim. T(\theta_0) \le z_{1-\alpha/2}: not strong evidence in favour of \theta_0.
Minimum detectable deviation
Detectable \theta: \pi(\theta) \ge \beta, for example \beta = 0.85 or 0.5.
Smallest detectable \bar\theta > \theta_0 solves: \mathrm{P}\Big(\Big|Z + \frac{\bar\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2}\Big) = \beta, \qquad \theta_0,\ \omega,\ z_{1-\alpha/2},\ \beta \ \text{ known}
|\bar\theta - \theta_0|: the minimum detectable deviation.
More precise estimator, more power
Smaller variance: \begin{aligned} \hat\theta^* &\sim N(\theta,\ \omega_*^2) \\ \omega_*^2 &< \omega^2 \\ \Longrightarrow\quad \omega_* &< \omega \end{aligned}
Both tests valid: \underbrace{\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2}}_{\text{test with } \hat\theta} \qquad \text{or} \qquad \underbrace{\Big|\frac{\hat\theta^* - \theta_0}{\omega_*}\Big| > z_{1-\alpha/2}}_{\text{test with } \hat\theta^*}
Suppose \theta > \theta_0, larger signal with \hat\theta^*: \begin{aligned} \frac{\hat\theta - \theta_0}{\omega} &= Z + \frac{\theta - \theta_0}{\omega} \sim N\Big(\frac{\theta - \theta_0}{\omega},\ 1\Big) \\ \frac{\hat\theta^* - \theta_0}{\omega_*} &\sim N\Big(\frac{\theta - \theta_0}{\omega_*},\ 1\Big) \\ \omega_* < \omega \quad &\Longrightarrow\quad \frac{\theta - \theta_0}{\omega} < \frac{\theta - \theta_0}{\omega_*} \end{aligned}
Power functions: \begin{aligned} \pi(\theta) &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) \\ \pi^*(\theta) &= \mathrm{P}\Big(\Big|\frac{\hat\theta^* - \theta_0}{\omega_*}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) \end{aligned}
Test with \hat\theta^*: more powerful, \pi^*(\theta) \ge \pi(\theta).
Test that ignores the data
V \sim \text{Uniform}(0,1), density and CDF: \begin{aligned} f(v) &= \mathbf{1}\{0 < v < 1\} \\ &= \begin{cases} 1 & 0 < v < 1 \\ 0 & \text{otherwise} \end{cases} \\ F(v) &= \begin{cases} 0 & v \le 0 \\ v & 0 < v < 1 \\ 1 & v \ge 1 \end{cases} \end{aligned}
For 0 < x < 1: \begin{aligned} \mathrm{P}(V < x) &= \mathrm{P}(V \le x) \qquad (\text{continuous}) \\ &= F(x) \\ &= \int_0^x f(v)\, dv \\ &= \int_0^x 1 \, dv \\ &= x \end{aligned}
Test:
- Throw \hat\theta away.
- Draw V \sim \text{Uniform}(0,1).
- Reject H_0 : \theta = \theta_0 if V < \alpha.
V does not depend on \theta: \begin{aligned} \mathrm{P}(\text{Type I error} \mid \theta = \theta_0) &= \mathrm{P}(V < \alpha) \\ &= \alpha \\ \tilde\pi(\theta) &= \mathrm{P}(\text{reject } H_0 \mid \theta) \\ &= \mathrm{P}(V < \alpha) \\ &= \alpha \qquad \text{for every } \theta \end{aligned}
Power \alpha: trivial.
One-sided tests
One-sided hypotheses
One-sided null and alternative, for example \theta_0 = 0: \underbrace{H_0 : \theta \le \theta_0}_{\text{composite}} \qquad \text{vs} \qquad \underbrace{H_1 : \theta > \theta_0}_{\text{composite}}
Test: reject H_0 in favour of H_1 if: \frac{\hat\theta - \theta_0}{\omega} > c
Type I error probability for each \theta \in \Theta_0, and its supremum: \begin{aligned} \mathrm{P}(\text{Type I error} \mid \theta) &= \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} > c \;\Big|\; \theta\Big), \qquad \theta \le \theta_0 \\ \sup_{\theta \le \theta_0} \mathrm{P}(\text{Type I error} \mid \theta) &\le \alpha \end{aligned}
Split (\hat\theta - \theta_0)/\omega: \frac{\hat\theta - \theta_0}{\omega} = \underbrace{\frac{\hat\theta - \theta}{\omega}}_{=\,Z} + \underbrace{\frac{\theta - \theta_0}{\omega}}_{\le\, 0 \ \text{ for } \theta \le \theta_0}
Choice of c, one-sided
- Supremum over \Theta_0, attained at \theta = \theta_0: \begin{aligned} \alpha &= \sup_{\theta \le \theta_0} \mathrm{P}(\text{Type I error} \mid \theta) \\ &= \sup_{\theta \le \theta_0} \mathrm{P}(\text{reject } H_0 \mid \theta) \\ &= \sup_{\theta \le \theta_0} \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} > c \;\Big|\; \theta\Big) \\ &= \sup_{\theta \le \theta_0} \mathrm{P}\Big(\underbrace{\frac{\hat\theta - \theta}{\omega}}_{=\,Z \sim N(0,1)} + \frac{\theta - \theta_0}{\omega} > c \;\Big|\; \theta\Big) \\ &= \sup_{\theta \le \theta_0} \mathrm{P}\Big(Z + \underbrace{\frac{\theta - \theta_0}{\omega}}_{\le\,0,\ \text{largest at } \theta = \theta_0} > c\Big) \\ &= \mathrm{P}(Z > c) \\ \Longrightarrow\quad \mathrm{P}(Z \le c) &= 1 - \alpha \\ \Longrightarrow\quad c &= z_{1-\alpha} \end{aligned}
One-sided test and interval
Size \alpha test of H_0 : \theta \le \theta_0 against H_1 : \theta > \theta_0: \boxed{\ \text{Reject } H_0 \ \text{ if } \ \frac{\hat\theta - \theta_0}{\omega} > z_{1-\alpha}\ }
One-sided interval, all \theta_0 the test does not reject: \begin{aligned} CI^{1}_{1-\alpha} &= \Big\{\theta_0 : \frac{\hat\theta - \theta_0}{\omega} \le z_{1-\alpha}\Big\} \\ &= \big\{\theta_0 : \theta_0 \ge \hat\theta - z_{1-\alpha}\,\omega\big\} \\ &= \big[\hat\theta - z_{1-\alpha}\,\omega,\ +\infty\big) \end{aligned}
Mirror case: H_0 : \theta \ge \theta_0
Reject H_0 : \theta \ge \theta_0 in favour of H_1 : \theta < \theta_0 if, for some c > 0: \frac{\hat\theta - \theta_0}{\omega} < -c
Choose c from the supremum over \theta \ge \theta_0: \begin{aligned} \alpha &\ge \mathrm{P}(\text{Type I error} \mid \theta) \qquad (\theta \ge \theta_0) \\ &= \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} < -c \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(Z + \frac{\theta - \theta_0}{\omega} < -c\Big) \\ \alpha &= \sup_{\theta \ge \theta_0} \mathrm{P}\Big(Z + \underbrace{\frac{\theta - \theta_0}{\omega}}_{\ge\,0} < -c\Big) \qquad (\text{size } \alpha) \\ &= \mathrm{P}(Z < -c) \qquad (\theta = \theta_0) \\ \Longrightarrow\quad -c &= z_{\alpha} \\ \Longrightarrow\quad c &= z_{1-\alpha} \end{aligned}
Test: \boxed{\ \text{Reject } H_0 : \theta \ge \theta_0 \ \text{ if } \ \frac{\hat\theta - \theta_0}{\omega} < -z_{1-\alpha}\ }
Power through \Phi
\Phi(x) = \mathrm{P}(Z \le x), the CDF of N(0,1).
Left-tailed test of H_0 : \theta \ge \theta_0: \begin{aligned} \pi(\theta) &= \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} < -z_{1-\alpha} \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(Z + \frac{\theta - \theta_0}{\omega} < -z_{1-\alpha}\Big) \\ &= \mathrm{P}\Big(Z < -z_{1-\alpha} - \frac{\theta - \theta_0}{\omega}\Big) \\ &= \Phi\Big(\frac{\theta_0 - \theta}{\omega} - z_{1-\alpha}\Big) \end{aligned}
Two tests for H_0 : \theta = \theta_0
Against H_1 : \theta \neq \theta_0, both of size \alpha: \begin{aligned} \text{Test 1 (one-sided)} &: \quad \text{reject } H_0 \ \text{ if } \ \frac{\hat\theta - \theta_0}{\omega} > z_{1-\alpha} \\ \text{Test 2 (two-sided)} &: \quad \text{reject } H_0 \ \text{ if } \ \Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \end{aligned}
Type I error of Test 1: \begin{aligned} \mathrm{P}(\text{Type I error of Test 1}) &= \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} > z_{1-\alpha} \;\Big|\; \theta = \theta_0\Big) \\ &\overset{\theta = \theta_0}{=} \mathrm{P}\Big(\frac{\hat\theta - \theta}{\omega} > z_{1-\alpha}\Big) \\ &= \mathrm{P}(Z > z_{1-\alpha}) \\ &= \alpha \end{aligned}
Critical values: \begin{aligned} z_{1-\alpha} &< z_{1-\alpha/2} \\ \Longrightarrow\quad -z_{1-\alpha/2} &< -z_{1-\alpha} \end{aligned}
Power of Test 1 and Test 2
Power of Test 1: \begin{aligned} \pi_1(\theta) &= \mathrm{P}\Big(\frac{\hat\theta - \theta_0}{\omega} > z_{1-\alpha} \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(Z + \frac{\theta - \theta_0}{\omega} > z_{1-\alpha}\Big) \end{aligned}
Power of Test 2: \begin{aligned} \pi_2(\theta) &= \mathrm{P}\Big(\Big|\frac{\hat\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2} \;\Big|\; \theta\Big) \\ &= \mathrm{P}\Big(\Big|Z + \frac{\theta - \theta_0}{\omega}\Big| > z_{1-\alpha/2}\Big) \\ &= \mathrm{P}\Big(Z + \frac{\theta - \theta_0}{\omega} < -z_{1-\alpha/2}\Big) + \mathrm{P}\Big(Z + \frac{\theta - \theta_0}{\omega} > z_{1-\alpha/2}\Big) \end{aligned}
One-sided against two-sided power
\pi_1(\theta) increasing, \pi_2(\theta) U-shaped: