# What is a chi-square distribution?

I am studying statistics for a political science course (the second semester of statistics under that department) and I have no idea what this formula even means:

$\frac{(n-1)s^2}{\sigma^2}$ and this language being used "If a simple random sample of size n is obtained from a normally distributed population with mean $\mu$ and standard deviation $\sigma$ then: $\chi^2 = \frac{(n-1)s^2}{\sigma^2}$ has a chi-square distribution with $n-1$ degrees of freedom."

What does degrees even mean in this context? My professor said something about how when we have 2 variables we have 1 degree of freedom, but I don't know what he is talking about and this whole chi-square distribution makes no sense to me.

The textbook does not seem very helpful in explaining to me what this distribution is for, where does it come from (?), why we use it and the language is not transparent for a non-statistics/math major.

In this case the distribution is used to calculate how likely it is that your population sample of size N from a population with standard deviation $\sigma$ had the sample variance $s^2$.
Now you draw a random sample of size N and evaluate how many A's, B's and C's you have. The Chi-square test (using chi-square distribution) will then give you the statistic on how likely it is that your null hypothesis is true. In this case, the Chi-square test would have 2 degrees of freedom. While we are testing 3 distinct ratios in our population, only two of those are "free" since the third is determined by the values of the first two, hence the notion that the Chi-square test has $n-1$ degrees of freedom.