I really need some advice about using the chi-squared test of independence. I want to use the bootstrap-chi-squared method for conditional independence testing. The problem is that the DOF is really small and sometimes it's even 0. How could I explain conditional independence if p-val is 0 and the bootstrapped p-value is 1? Does it mean that I cannot reject the null hypothesis (independence)? I find the p-value as follows:
pval = 1 - scipy.stats.chi2.cdf(chisq, dof)
Any suggestions?