The formula for a confidence interval is:
\[ \bar{x} \pm z \frac{s}{\sqrt{n}} \]
where $\bar{x}$ is the sample mean, $z$ is the z-score corresponding to the desired level of confidence, $s$ is the sample standard deviation, and $n$ is the sample size.
Show more…