I'm trying to undertand why we use $n-1$ instead of $n$ while calculating the standard deviation of a sample.
This site says that it is because $\sum{x_i-\overline{x}}=0$, and $\overline{x}$ is aready determined from before. Hence, the sample has $n-1$ degrees of freedom, while the population has $n$.
My question is what does degrees of freedom have to do with calculating the standard deviation? Is the definition of standard deviation $\sqrt{\frac{\sum{(x_i-\overline{x}})^2}{\text{ degrees of freedom}}}$ instead of $\sqrt{\frac{\sum{(x_i-\overline{x}})^2}{n}}$?