# Performing hypothesis test with two categorical variables, where one variable has four ordered categories

I'm working with two categorical variables and need to test whether they're related. This isn't the exact problem I'm solving but the example should help illustrate the nature of the problem I'm dealing with.

The first variable only has two categories (owns dolls or does not own dolls). The second variable is ordered (2nd grade, 3rd grade, 4th grade, 5th grade). I can perform a chi square test. The issue is that I want to understand not only whether the grade is dependent or independent from owning dolls, but whether the higher the grade, the lower the likelihood is of owning dolls.

Since the grades are ordered, would it make sense to convert them to numerical values (2, 3, 4, and 5), and then perform a t-test on the sample that owns dolls vs the sample that doesn't?

The other alternative I thought of would be to combine the grades (2nd and 3rd in one group, 4th and 5th in the other), check that the "2nd and 3rd graders" sample had a higher percentage of doll ownership, and then perform a chi square test to see if the difference is statistically significant.