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.

  • 2
    And what should it really be? Did you consider this value by hand, using the formulas from the directory? - m9_psy
  • 2
    What do you get, what do you get in services? - hedgehogues

0