Realistically, the value of \(\sigma\) is almost never known.
- We know that we can estimate \(\sigma\) using \(s\).
- Can we plug in \(s\) for \(\sigma\)? Sometimes!
Realistically, the value of \(\sigma\) is almost never known.
For samples of size \(n \ge 30\), \(\bar{X}\) will be approximately normal even if \(X\) isn’t.
In this case, we can plug in \(s\) for \(\sigma\): \[\bar{x} \pm z_{\alpha/2}\frac{s}{\sqrt{n}}.\]
…but what about when \(n < 30\)?
If \[Z = \frac{\bar{X}-\mu}{\sigma/\sqrt{n}}\] has a standard normal distribution (for \(X\) normal or \(n\ge30\)), the slightly modified \[T = \frac{\bar{X}-\mu}{s/\sqrt{n}}\] has what we call the t-distribution with \(n-1\) degrees of freedom.
The only thing we need to know about degrees of freedom is that \(\text{df}=n-1\) is the t-distribution’s only parameter.
Rossman and Chance t Probability Calculator