Python 等效于 MATLAB chi2ogf(x)

Python Equivalent for MATLAB chi2ogf(x)

我想知道是否有类似于 MATLAB chi2gf(x) 的函数来确定拟合优度

如果是这样,我还需要计算 P 值还是一样?

Matlab chi2gf(x)

如果您熟悉 scipy,那么 scipy.stats.chisquare 可能是个不错的选择。