Consider the hypothesis test considered in Example 8.29:
$$
\begin{aligned}
& H_0: X \text { is Gaussian with } \mu=0 \text { and } \sigma_X^2 \text { unknown } \\
& H_1: X \text { is Gaussian with } \mu \neq 0 \text { and } \sigma_X^2 \text { unknown. }
\end{aligned}
$$
Let $n=9, \alpha=5 \%, \sigma_X=1$. For $\mu= \pm k / 2, k=0,1,2, \ldots, 5$ perform the following experiment: Generate 500 batches of size 9 of the Gaussian random variable with mean $\mu$ and unit variance. For each batch determine whether the hypothesis test accepts or rejects the null hypothesis. Count the number of Type I errors and Type II errors. Plot the empirically obtained power function as a function of $\mu$. Compare to the expected results.