Conduct a chi square analysis to determine

whether sex and year in college are related. I have tried to submit the data
but I can't seem to make the submission work. For my data I used 20 males and 20
females. and for the year in college I have 10 freshman, 10 sophomore, 10 juniors, and 10 seniors. Unless I am submitting the data wrong.

You would have 8 cells. With such a small sample, you will need a correction for that fact.

http://udel.edu/~mcdonald/statsmall.html

To conduct a chi-square analysis, you need to have the observed frequencies for each combination of sex and year in college. In your case, you have 20 males and 20 females, and 10 students in each year group (freshman, sophomore, junior, and senior).

To analyze the relationship between sex and year in college, you first need to create a contingency table. Here's an example of how to arrange your data:

Freshman Sophomore Junior Senior
Male ? ? ? ?
Female ? ? ? ?

Now, you can fill in the observed frequencies for each cell of the table. Based on your description, you have 10 students in each year group and 20 students for each sex. Assuming an equal distribution, you can fill in the table as follows:

Freshman Sophomore Junior Senior
Male 5 5 5 5
Female 5 5 5 5

Once you have completed the contingency table, you can perform the chi-square test. However, since you mentioned having trouble submitting the data, it seems like you might be using some software or tool for the analysis. It would be helpful to know what method or program you are using so I can provide further assistance.

Nevertheless, in general, when using statistical software or online tools, you typically input the observed frequencies for each category, and the software will calculate the chi-square statistic and the associated p-value. Make sure you format the data correctly according to the guidelines of the specific software or tool you are using.

If you provide more information on the specific issue you're facing while submitting the data or the tool you're using, I can provide more guidance.