just started learning about Pearson's Chi Squared test, and found some parts to be confusing:
In the Chi Squared test, I don't understand why we can just assume the sum of the difference between observed and expected values to follow a Chi Squared distribution. Can it be another distribution? If so, how can one tell?
On a related note, the Chi Squared test does not care what distribution the observed or expected random variables actually follow. Is there some intuition how why Chi Square would work "globally" for observed and expected r.v.'s with any distribution?