Suppose I want to compare a book A with a book B to see if a particular word occurs significantly more or less often in either book. If I use the chi-square test (α = 0.05, one degree of freedom, critical value = 3.84), do I always have to formulate a null hypothesis and an alternative hypothesis? Is it not allowed to formulate only the hypotheses from which you expect something?
For example:
Hypothesis: The frequency of the word "blue" in book A differs significantly from the frequency of the word "blue" in book B.
If the significance test is positive (test statistic is higher than the critical value of 3.84), the hypothesis can be confirmed. Otherwise not. Or must a null hypothesis and an alternative hypothesis always be formulated?
If so:
null hypothesis: The frequency of the word "blue" in book A differs not significantly from the frequency of the word "blue" in book B
alternative hypothesis: The frequency of the word "blue" in book A is significantly higher than the frequency of the word "blue" in book B
Is the formulation of the hypotheses correct? Can I say in the alternative hypothesis that something significantly higher or lower occurs (instead of saying that there is "only a difference")? If the result is that the word "blue" occurs significantly more frequently in book B and not, as suspected, in book A, how would you formulate this?
We reject the null hypothesis, but our formulated alternative hypothesis does not agree with what we found in the analysis. There is significance, but not in the meaning of the alternative hypothesis mentioned. Do we then reject both the null hypothesis and the alternative hypothesis? How would the hypotheses in this example be assessed?
And the last question: in this example, the chi-square test is an independence test? We have a 2 × 2 contingency table of observed and expected frequencies. And the goal is to find out if the frequency difference of the word "blue" in two texts is significant. Also: Chi-Square Test of Independence, right?