Why is the standard deviation always positive? I wondered why the standard deviation always has to be positive. I found the following answers: answer 1, answer 2.
There's a lot of people saying that the standard deviation is positive because it's the root of a positive number, and hence by definition positive.. I don't think this is true since every positive number has a negative square root ($\sqrt4 = -2$).
However, I assume that we just agree that the standard deviation is positive because it's indicates a distance from the mean. Is that correct; that it's just agreed on?
 A: Yes and no. The standard deviation is always positive precisely because of the agreed on convention you state - it measures a distance (either way) from the mean.
But you're wrong about square roots. Every positive real number has two of them. but only the positive one is meant when you use the $\sqrt{}$ sign. (That's another convention.)
A: Suppose $$x^2 = 4$$
then it is true that
$$x = \pm 2$$
but by convention, we define $\sqrt{4}$ to be the positive value of $x$ such that $x^2 = 4$, hence $\sqrt{4} = 2$.
Note that it makes no sense for $\sqrt{4}$ to equal two values, because $\sqrt{\cdot}$ is meant to be a function (and a function only has one output, not two).
A: One look at the functional form of s.d. gives away the answer:
\begin{equation}
\sigma = \sqrt{\frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n-1}}
\end{equation}
If the difference $(x_i-\bar{x})$ is negative, the square of this difference is positive.  If the difference  $(x_i-\bar{x})$ is positive, the square is positive.   Variance is the sum of squares, and s.d. is the square root of the variance.
