Statistics 6 - Chi-squared tests Flashcards
What is goodness of fit?
Goodness of fit is concerned with measuring how well an observed frequency distribution fits a known distribution.
The null hypothesis, Hβ, is that there is no difference between the observed and theoretical distribution.
The alternative hypothesis, Hβ, is that the is a difference between the observed and theoretical distribution.
In order to tell how closely the model fits the observed results, a measure of the goodness of fit between the observed frequencies and the expected frequencies is needed.
The measure of goodness of fit is:
πΒ²=Ξ£(βΏα΅’ββ)((πα΅’-πΈα΅’)Β²/πΈα΅’)
Where:
πα΅’=an observed frequency
πΈα΅’=an expected (theoretical) frequency, asserted by the null hypothesis
An easier to use version of the formula is:
πΒ²=Ξ£(βΏα΅’ββ)(πα΅’Β²/πΈα΅’)-π
Where:
πα΅’=an observed frequency
πΈα΅’=an expected (theoretical) frequency, asserted by the null hypothesis
π=Ξ£πΈ=Ξ£π