A set of $40$ data items, produces a confidence interval for the population mean of $94.93<\mu<105.07$. If $\sum x^2 = 424 375$, find the confidence level.
So the idea of confidence intervals is still rather new to me and one that isn't fully clear in my mind, would someone be able to give me some hints about solving this and explain what they are doing to solve it.
I get that the confidence interval is given by $$\bar{x}-z\frac{\sigma}{\sqrt{n}}<\mu<\bar{x}+z\frac{\sigma}{\sqrt{n}}$$ and that $z=\Phi^{-1}(c)$ where $c$ is the confidence level, however this is as far as my knowledge goes.
Outline:
If $z=\Phi^{-1}(c)$, then let the $100(2c-1)\%$ confidence interval for $\mu$ be $\mu_1<\mu<\mu_2$.
This is because the normal distribution (which is what we are assuming here) is two-tailed, so we have that $$P(X<z)=c,\quad P(X>z)=1-c$$ and we seek the region $P(-z<X<z)=c-(1-c)=2c-1$ due to symmetry. Here, $X$ is just a random variable.
Therefore, using the standard inequalities for confidence intervals, we obtain the following equalities $$\bar x-z\frac\sigma{\sqrt n}=\mu_1\tag1$$ $$\bar x+z\frac\sigma{\sqrt n}=\mu_2.\tag2$$ Adding the two yields $\bar x=(\mu_1+\mu_2)/2$, or that $$\sum x_i=\frac n2(\mu_1+\mu_2).\tag3$$ Similarly, performing $(2)-(1)$ results in $$z\frac\sigma{\sqrt n}=\frac{\mu_2-\mu_1}2\implies z=\frac{(\mu_2-\mu_1)\sqrt n}{2\sigma}\tag4$$ but recall that the unbiased estimator for the variance is $$\sigma^2=\frac{\sum x_i^2-\frac1n\left(\sum x_i\right)^2}{n-1}.\tag5$$ You now have enough information to calculate $z$, and thus $c=\Phi(z)$.
Solution: