On $(5),$ $(6),$ and $(7),$ what's the difference between $S^2$ and $\sigma_x^2$?
Also, why does:
$$\sigma_X^2 = \sum \limits_{i=1}^{n} \frac{1}{n^2} \sigma^2 = \frac{\sigma^2}{n}$$
?
I'm assuming $\sigma^2$ is the population variance.
It seems like S is a random variable since I can take the expectation of it, but, $\sigma_x$ is the same thing except not a random variable?
Let $(X_1, \cdots, X_n)$ be a random sample of $X$ having unknown mean $\mu$, and variance $\sigma_x^2$
\begin{align} S^2 &= \frac{1}{n} \sum (X_i - \bar{X})^2 \tag{0}\\[4ex] E[S^2] &= E\Big[\frac{1}{n} \sum (X_i - \bar{X})^2 \Big]\tag{1}\\[2ex] &= E\Bigg[\frac{1}{n} \sum \limits_{i=1}^{n}\Big[~[(X_i - \mu)-(\bar{X}-\mu)]^2~\Bigg]\tag{2}\\[2ex] &= E\Bigg[ \frac{1}{n} \sum \limits_{i=1}^{n} \Big[~(X_i-\mu)^2-2(X_i-\mu)(\bar{X}-\mu)+(\bar{X}-\mu)^2~\Big] ~\Bigg]\tag{3}\\[2ex] &= E\Bigg[~\frac{1}{n} \Big[~\sum \limits_{i=1}^{n} (X_i - \mu)^2 - n(\bar{X} - \mu)^2 \Big]~\Bigg]\tag{4}\\[2ex] &= \frac{1}{n} \sum \limits_{i=1}^{n} E\big[(X_i-\mu)^2\big] - E\big[(\bar{X}-\mu)^2\big]\tag{5}\\[2ex] &= \sigma^2 - \sigma_X^2\tag{6}\\[2ex] &= \sigma^2 - \frac{1}{n}\sigma^2\tag{7}\\[2ex] &= \frac{n-1}{n}\sigma^2\tag{8} \end{align}
Equation (8) shows that $S^2$ is a biased estimator of $\sigma^2$
$\sigma$ is the population standard deviation of the random variable $X$.
$X_i$ represents the value of the i-th sample. If you have $n$ different such samples, the standard deviation of the $n$ samples is the random variable $S$.
The average of a $n$ samples is the random variable $\bar{X}$. This variable will have a standard deviation $\sigma_X$.