Degree of freedom for chi square