While estimating with confidence interval the mean value for a population, there are two options:
- If the standard deviation is known, and
- If the standard deviation is unknown.
But in the first case where the standard deviation is known, the mean value should not also be known? Why do we need to estimate it, then? Because in order to compute the standard deviation, we already must have the mean... or is there any other way to know the standard deviation?
A couple of reasons:
We may be able to estimate the standard deviation without knowing the mean. For example, a random variable that takes only the values $0$ and $1$ has standard deviation at most $1/2$. This can be used to provide a conservative estimate for the confidence interval size.
In a textbook, this may be done just for the illustration of a mathematical technique.