2
$\begingroup$

I have categorical count data (for categories C1 to C3, but potentially several more categories) for two datasets:

        | --- Dataset 1 --- | --- Dataset 2 --- |
        |  C1    C2    C3   |  C1    C2    C3   |
Item 1  |  0     200   300  |  0     2      3   |
Item 2  |  0     200   300  |  5     0      0   |

The total number of data-points in each dataset is different (500 and 5 in this example).

What statistical test should I use to determine if the distribution of counts for each item across the categories is the same between the two datasets?

For example, the distribution of Item 1 is the same across the two datasets, but the distribution of Item 2 is not. I will test each item separately.

$\endgroup$

1 Answer 1

2
$\begingroup$

If your reshape your data so that it is datasetXC, then you can use chi square or similar. E.g.

            C1       C2     C3
1            0       200    300
2            0         2     3

Here you would need an exact test.

$\endgroup$
3
  • $\begingroup$ Cells with zero count are not permitted in a chi square test? See my question here: stats.stackexchange.com/q/73708/2824 $\endgroup$
    – SabreWolfy
    Commented Oct 24, 2013 at 20:28
  • 2
    $\begingroup$ Yes, they are permitted. But if there are a lot of cells with low expected counts, an exact test is recommended. $\endgroup$
    – Peter Flom
    Commented Oct 24, 2013 at 22:43
  • 1
    $\begingroup$ See my answer there. $\endgroup$
    – Peter Flom
    Commented Oct 24, 2013 at 22:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.