The table below shows my example data set. I have 19 sentences (as an example). For each sentence, if word A is included it is recorded as 1; otherwise, it is recorded as 0 (shown in column A in the table below). Similarly, if word B is included in the sentence, it is recorded as 1; otherwise, it is recorded as 0 (shown in column B in the table below). I want to know if the appearance of word A is significantly different from word B. My question is, what kind of test shall I use? What I have thought is listed below. Thanks a lot in advance for your help!
- I am thinking if my question is valid or not. When I start to look at the data set, it seems that the only information I can get from the data is how many times the word A and B appears. As the example shows, word A appears 8 times and B appears 5 times. If this is the only information we can get, that means we are comparing if 8 and 5 are significantly different. Then it seems not a valid question.
However, if we look at each sample, the data sets (A and B) are paired for each sentence. This is additional information other than the numbers (8 vs. 5). If this information (paired data) is meaningful, is my question is still valid? Do we have a statistical test that is suitable for this kind of question?
- I have thought of using the t-test. But for each column (A and B), the distribution (only 0 and 1) is definitely not a $t$ distribution or normal distribution. So, I think the t-test is not suitable. Am I correct?
| # | A | B | |----|---|---| | 1 | 1 | 1 | | 2 | 0 | 0 | | 3 | 1 | 0 | | 4 | 0 | 0 | | 5 | 1 | 0 | | 6 | 1 | 0 | | 7 | 1 | 0 | | 8 | 0 | 0 | | 9 | 0 | 1 | | 10 | 0 | 1 | | 11 | 0 | 0 | | 12 | 0 | 0 | | 13 | 1 | 1 | | 14 | 0 | 1 | | 15 | 1 | 0 | | 16 | 0 | 0 | | 17 | 0 | 0 | | 18 | 1 | 0 | | 19 | 0 | 0 |