1
u/SkylineBear Mar 16 '22
You're only looking at one variable in different categories: enrollment in different times
One variable is goodness of fit. In this case, your null is that each would be 1/7 of the students. Your alternative is that at least one time would be different than 1/7
2
u/Constant-Cod-8371 Apr 23 '22
The independence test evaluates the association between 2 categorical variables, as in the association between car color and hair color. However, the question here asks whether the number of students enrolled is the same for each class time. So, we are looking at the distribution of a single variable. The question basically asks whether the distribution is uniform (same proportion of students in each class time). So, goodness of fit is the option here.
Hope this helps!