Imagine an experimental setup as follows: 30 subjects each make three preference judgements: they choose a color for each button shape. So, the raw subject data could look like:
Shape Color
Sub1 Tri Red
Sub1 Cir Green
Sub1 Squ Green
Sub2 Tri Blue
...etc. You could aggregate the data to get something like this:
Red Green Blue
Tri 30 0 0
Cir 10 10 10
Squ 10 20 0
Now, to me, it is incorrect to analyze this table using chi-square, because the cells are dependent in the sense that the row totals are fixed (e.g. 20 red, 8 green, means that blue can only be 2).
The hypothesis I want to falsify is sort of about marginal homogeneity: are certain shapes preferred to be certain colors? What test would I use to examine this?