search for: girlscore

Displaying 1 result from an estimated 1 matches for "girlscore".

2007 Jun 27
1
how to use chi-square to test correlation question
...rls. I used a chisquare test to do this. The null hypothesis is score is not correlated with gender. and we can also say the null hypothesis is boys are the same smart as girls. the alternative hypothesis is that boys are significantly smarter than girls. boyscore=c(31,32,33,34,35,36,37,38,39,40) girlscore=c(10,10,10,10,10,10,10,10,10,10) ratioscore=boyscore/girlscore; expratio=300/100; #300 boy students and 100 girl students chisq=sum((expratio-ratioscore)^2/expratio) df=9 pvalue=1-pchisq(chisq,df) Since the pvalue (0.9984578) is greater than significance level (0.05), we cannot reject the null...