0
$\begingroup$

I am new to Chi-square tests. And after looking at some examples in my textbook, I wonder if test of independence and test of homogeneity are the same. This is an example in my textbook which use the test of independence:

"One hundred plants of the same species were randomly distributed in two lots of the same size, the two lots being then subjected to different treatments. At the end of a given period, the degree of attack of each of the plants was determined by a certain disease. Based on the information in the table below, should we consider that there are significant differences between the two treatments at the 5% threshold?"enter image description here

My question is can we use the test of independence here? The question we are trying to answer is about the differences between two treatments. I do not see any relation between the difference and the independence. I think that the test we should use is test of homogeneity. So does it mean that we will get the same results when doing the test of independence and test of homogeneity? And in R, is the command for these two test the same?

$\endgroup$
  • 1
    $\begingroup$ If you're using chi-squared tests, how would a test of homogeneity of proportion differ from one of independence? Aren't the calculations the same? $\endgroup$ – Glen_b -Reinstate Monica Sep 23 '18 at 4:10
  • 1
    $\begingroup$ The arguments that lead to using "row total times grand total divided by grand total" to get expected cell counts based on the null hypothesis are different (because the null hypotheses differ), but the formula for expected cell counts and subsequent formula for the 'chi-squared statistic' are the same. So the same computer program can be used for both. $\endgroup$ – BruceET Sep 23 '18 at 4:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.