i have following question:
i can not prove why the following equations are the same: $$ \begin{align} A=(a_j),\ 1 \leqslant j \leqslant N. \\\\ \mu = mean(A). \\\\ S_1 = \sqrt{ \frac{1}{N-1} \sum_{i=1}^{N} (a_i - \mu)^2 }. = \sqrt{ \frac{1}{N-1} \sum_{i=1}^{N} (a_i^2 - 2 a_i \mu + \mu^2) } ] \\\\ S_2 = \sqrt{ \frac{1}{N-1} \left[ \sum_{i=1}^{N} (a_i^2) - \frac{\left(\sum_{i=1}^{N} (a_i) \right)^2}{N} \right] } \\ \end{align} $$
why does $S_1 = S_2$?
Thanks.