scipy.stats.

tiecorrect#

scipy.stats.tiecorrect(rankvals)[Quelle]#

Korrekturfaktor für Gleichstände für die Mann-Whitney-U- und Kruskal-Wallis-H-Tests.

Parameter:
rankvalsarray_like

Eine 1D-Sequenz von Rängen. Typischerweise wird dies das von rankdata zurückgegebene Array sein.

Rückgabe:
factorfloat

Korrekturfaktor für U oder H.

Siehe auch

rankdata

Ränge den Daten zuweisen

mannwhitneyu

Mann-Whitney-Rangtest

kruskal

Kruskal-Wallis-H-Test

Referenzen

[1]

Siegel, S. (1956) Nonparametric Statistics for the Behavioral Sciences. New York: McGraw-Hill.

Beispiele

>>> from scipy.stats import tiecorrect, rankdata
>>> tiecorrect([1, 2.5, 2.5, 4])
0.9
>>> ranks = rankdata([1, 3, 2, 4, 5, 7, 2, 8, 4])
>>> ranks
array([ 1. ,  4. ,  2.5,  5.5,  7. ,  8. ,  2.5,  9. ,  5.5])
>>> tiecorrect(ranks)
0.9833333333333333