This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.stats.chisquare

scipy.stats.chisquare(f_obs, f_exp=None)

Calculates a one-way chi square for array of observed frequencies and returns the result. If no expected frequencies are given, the total N is assumed to be equally distributed across all groups.

Returns: chisquare-statistic, associated p-value

Previous topic

scipy.stats.kstest

Next topic

scipy.stats.ks_2samp

This Page

Quick search