Wilcoxon rank sum test
Afficher commentaires plus anciens
I would like to check if my data is smaller than zero or not. Assume the following example.
A = -1*ones(15,1);
[p, h, Stats] = ranksum(A, zeros(15,1))
z-value < 1.96, So A is statistically smaller than zero. But if change the test like the following:
[p, h, Stats] = ranksum(A, zeros(14,1))
the z-value goes positive. Why is that?
1 commentaire
Oleg Komarov
le 22 Mai 2012
MATLAB's ranksum is a two-sided test thus you're not testing for something smaller than zero but different from zero.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Hypothesis Tests dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!