Académique Documents
Professionnel Documents
Culture Documents
Elementary Statistics
This is an example with equal probabilities. It would translate to the following hypotheses:
H0 : ph = pd = ps = pc = 0.25
According to one research study, 2% of Americans identify as homosexual, 2% as bisexual, and 96% as
heterosexual. Are these proportions different in the population of Penn State students?
In this example, the probabilities are not all equal. This would translate to the following hypotheses:
Assumptions
In order to conduct a chi-square test (goodness-of-fit or test of independence) all expected counts (soon we'll see
that this is all np) need to be at least 5.
The categories must also all be mutually exclusive. In other words, each case may appear in only one category.
Test Statistic
In conducting a goodness-of-fit test, we compare the observed counts to the expected counts (also known as
expected values). Expected counts are computed given that the null hypothesis is true. This is the number of
cases we would expect to see in each cell if the null hypothesis were true.
Expected Count
The observed and expected values are then used to compute the chi-square ( ) test statistic: 2
2
(ObservedExpected)
2
=
Expected
Like the t distribution, the chi-square distribution varies depending on the degrees of freedom. The distribution
plot below compares the chi-square distributions with 2, 4, and 6 degrees of freedom.
To find the p-value we find the area under the chi-square distribution to the right of our test statistic. A chi-
square test is always right-tailed.
Degrees of freedom for a chi-square goodness-of-fit test are equal to the number of groups minus 1.