Answer :
We use a chi-square test of homogeneity, as we have a single categorical variable measured within two different populations.
The requirements for this test are that we have two simple random samples (this is clearly satisfied, given that we are sampling all students who take the class that year) and that the expected value for each cell, defined as the cell's row sum multiplied by the column sum divided by the sum of all values in the dataset, is greater than 5. This is satisfied simply by testing for each value in the table.
The requirements for this test are that we have two simple random samples (this is clearly satisfied, given that we are sampling all students who take the class that year) and that the expected value for each cell, defined as the cell's row sum multiplied by the column sum divided by the sum of all values in the dataset, is greater than 5. This is satisfied simply by testing for each value in the table.