Let \(X_1,\dots,X_n\) be a sample from a population with mean \(\mu\).
If population standard deviation (\(\sigma\)) is known and the data is normal, a \(100(1-\alpha)\%\) CI for \(\mu\) is: \[
\bar{X} \;\pm\; z_{\alpha/2}\,\frac{\sigma}{\sqrt{n}}.
\] If pop. standard deviation (\(\sigma\)) is unknown, replace \(\sigma\) with sample standard deviation (\(s\)) and use \(n-1\): \[
\bar{X} \;\pm\; t_{\alpha/2,\,n-1}\,\frac{s}{\sqrt{n}}.
\]