In a chi-square test of independence, the number of degrees of freedom equals the
number of categories minus one.
number of observations minus one.
number of rows minus one times the number of columns minus one.
number of sample observations minus the missing observations.