0
$\begingroup$

This question already has an answer here:

I am looking for a right correlation metric to measure correlation between two vectors. The dimensionality of the vectors is around 100. The first vector has real values as the elements and the second vector has 0,1 values.

Spearman rho is widely used as a correlation metric between two real-valued vectors, but my case is slightly different (0,1 values in one of the vectors). Whether Mann–Whitney U test is more appropriate in my case than Spearman Rho?

I appreciate your help.

$\endgroup$

marked as duplicate by kjetil b halvorsen, mdewey, Peter Flom Sep 27 '18 at 11:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ If you are not limited Mann-Whitney and Spearman Rho, I would suggest you to consider boxplot / linear models as suggested by this post $\endgroup$ – AshOfFire Apr 23 '18 at 8:59
0
$\begingroup$

First, Mann Whitney U is not a nonparametric alternative to correlation, it is an alternative to t-tests. It tests for differences between the two groups, not relationship.

Second, to your question, it looks like point-biserial correlation is what you want. As per Wikipedia:

The point biserial correlation coefficient (rpb) is a correlation coefficient used when one variable (e.g. Y) is dichotomous; Y can either be "naturally" dichotomous, like whether a coin lands heads or tails, or an artificially dichotomized variable. In most situations it is not advisable to dichotomize variables artificiall

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.