Consider a normal distribution $N(\mu, \sigma^{2})$ where $\sigma^2 = 9$ and we draw 100 samples from this distribution. Now, we set up a hypothesis testing problem: $H_{0}:\mu = 0$ against $H_{a}:\mu \ne 0$. We reject null if $|mean| > K$ with 0.05 as the size of the test. It is required to obtain the $95$% confidence interval of $\mu$.
In this problem, I don't understand why have they provided us with all this extra information about hypothesis testing ($H_0$ and $H_a$) when the confident interval could be just computed by using the formula :
$\bar{X}_{n} \pm \frac{\sigma}{\sqrt{n}}*Z_{0.05}$
What is the use of this extra information about hypothesis testing when the CI could just be obtained without it? They also have provided four options to choose from:
- $(-0.488, 0.688)$
- $(-1.96, 1.96)$
- $(0.422, 1.598)$
- $(0.588, 1.96)$
EDIT.1 If I instead specify the problem as follows:
Consider a normal distribution $N(\mu, \sigma^{2})$ where $\sigma^2 = 9$ and we draw 100 samples from this distribution. It is required to obtain the $95$% confidence interval of $\mu$.
Here, I have omitted the hypothesis specification from the problem. Now, my doubt was that, we can form the confidence interval even without that information, then what was the need for that?