Why does Chi-square formula have two different ones?

  • Context: Undergrad 
  • Thread starter Thread starter EigenCake
  • Start date Start date
  • Tags Tags
    Formula
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
EigenCake
Messages
12
Reaction score
0
One is:
http://en.wikipedia.org/wiki/Chi-squared_distribution

where at the bottom of the page, chi-square = sum of something devided by variance.

However, here:
http://www.napce.org/documents/research-design-yount/23_chisq_4th.pdf

where the chi-square formula is that the sum of the same thing devided by expectation value.

Which formula is right then?
 
Last edited by a moderator:
on Phys.org
The first reference is the definition of Chi-squared :- the distribution of a RV formed from the sum of squared standard-normal random variables.

The second reference is an application of the above distribution to the case of expect versus observed frequencies, where (O-E)/sqrt(E) is asymptotically standard-normal and hence (O-E)^2/E is asymptotically Chi-squared.
 
Thanks!

It seems that for goodness of fit I should use the second formula to either reject or accept the null hypothesis, rather than use the first formula.