Question 4: Which method would you choose to test the null hypothesis that observed eye colour in not related to sex?
The chi-squared test for a contingency table should only be used if the sample is large enough. The usual criterion is that at least 80% of expected frequencies are greater than five and all are greater than one.
The expected frequencies are:
There are 14 expected frequencies, of which 9 are greater than five. This is 64%, less than the 80% we need, so the chi-squared test for a contingency table will not be valid.
We must either combine rows to increase the expected frequencies, which would change the null hypothesis, or use Fisher's exact test.
Fisher's exact test gives P = 0.309.
This calculation took 55 seconds in Stata running on a Pentium five PC in Windows XP.
Back to Exercise: Eye colour and sex.
To Clinical Biostatistics index.
To Martin Bland's M.Sc. index.
To Martin Bland's home page.
This page maintained by Martin Bland.
Last updated: 31 July, 2006.
Back to top.