In chi-square test of independence the degrees of freedom are: (STA301)

n – p
► n – p-1
► n – p- 2
► n – 2