Consider Example 8.27 where we considered
$$
\begin{aligned}
& H_0: X \text { is Gaussian with } \mu=0 \text { and } \sigma_X^2=1 \\
& H_1: X \text { is Gaussian with } \mu>0 \text { and } \sigma_X^2=1
\end{aligned}
$$
Let $n=25, \alpha=5 \%$. For $\mu=k / 2, k=0,1,2, \ldots, 5$ perform the following experiment: Generate 500 batches of size 25 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$.