It is necessary to calculate the P-value in chi-square. I execute the code on the python data
from scipy.stats import chisquare c = chisquare([0,4,7,5],ddof=2) print(c) and get
Power_divergenceResult(statistic=6.5, pvalue=0.010787449254670376) However, when calculating p-value on online services, the result is different from the result of the execution of my program. Why is that? Maybe this is not the p-value? In services, I count with the already ready chi-square = 6.5.