scipy.stats.mstats.

friedmanchisquare#

scipy.stats.mstats.friedmanchisquare(*args)[source]#

Friedman Chi-Square is a non-parametric, one-way within-subjects ANOVA. This function calculates the Friedman Chi-square test for repeated measures and returns the result, along with the associated probability value.

Each input is considered a given group. Ideally, the number of treatments among each group should be equal. If this is not the case, only the first n treatments are taken into account, where n is the number of treatments of the smallest group. If a group has some missing values, the corresponding treatments are masked in the other groups. The test statistic is corrected for ties.

Masked values in one group are propagated to the other groups.

Deprecated since version 2.0.0: scipy.stats.mstats.friedmanchisquare is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.friedmanchisquare with MArray(s) instead of NumPy masked array(s).

Returns:
statisticfloat

the test statistic.

pvaluefloat

the associated p-value.