Answer:
The degrees of freedom is 6 for the chi square independence test.
Explanation:
This is test hypothesis of independence. The test statistic under H0 is
χ²= ∑ (O - E)²/ E
where O is the observed and E is the expected frequency
which has an approximate chi square distribution with ( r-1) (c-1) degrees of freedom, where r= rows and c= columns.
Here there are 4 rows and 3 columns
Hence the degrees of freedom will be
( 4-1) ( 3-1)= 3*2= 6