I'm trying to carry out a hypothesis test for data that has the following structure.
Total number of correct answers out of 6 questions for each subject that only has a HS diploma:
3, 2, 3, 5, ... (there are 16 total subjects)
Total number of correct answers out of 6 questions for each subject that has a College degree:
5, 5, 3, 6, ... (there are 12 total subjects)
I'm not sure if this is relevant for my question but the data was obtained by asking 28 random subjects their education level and then recording how many out of 6 questions they answered correctly.
I used a 2 sample t-test to see if the population means differ for both groups. Is there a better method for this type of data? I'm asking because the data is discrete and I'm not sure if the t-test is best suited for this kind of data.
Also the t-test would tell me if the population means differ but lets say the question of interest is whether or not education (HS vs College) is associated with literacy (total number of correct questions), what kind of test would best answer that question?