Question: how degree of freedom is calculated?
Answer: For instance, if a sample size were 'n' on a chi-square test, then the number of degrees of freedom to be used in calculations would be n - 1. To calculate the degrees of freedom for a sample size of N=9. subtract 1 from 9 (df=9-1=8).