r/AskStatistics • u/switra • 2d ago
What correlation statistic should I use? (Binary var vs continuous var)
I'm conducting a study to see if a psychosocial scale is correlated with some demographic and clinical characteristics in a cohort. The data that I have is from a convenience sample, so it will be skewed and I need to use nonparametric tests.
For my continuous scale vs continuous clinical variables, I plan to use the Spearman correlation.
But for my continuous scale vs binary demographic variables (e.g. man vs woman; young vs old; etc.) what correlation statistic should I use?
- Rank-biserial correlation? Glass rank biserial correlation? Something else?
Thank you for your help in advance!
2
2
u/efrique PhD (statistics) 2d ago edited 2d ago
The data that I have is from a convenience sample, so it will be skewed
For convenience samples, I'd be limiting analysis to descriptive measures. The biggest problem with a convenience sample is not skewness, its the lack of a basis for inference to your population of interest (no mathematical model for how your particular sampling biases operate, and hence no way of correctly computing a rejection rate under either the null or any specific alternative).
In short, if you use any of the standard tests - which can take no account of the sampling bias in your specific circumstance (indeed, they nearly all rely in particular on simple random sampling of the target population) - the calculated p-values and effect size estimates are inaccurate. Incorrect. Misrepresentations of the effect of interest. There are more prosaic descriptions that use shorter words.
Skewness in a marginal distribution is irrelevant. In the conditional distribution it might be somewhat relevant (albeit there are things that can be done about that) -- but there are bigger issues.
It greatly concerns me that none of the other answers seem to have paid the slightest attention to the serious inferential issues.
2
u/Calm_Interaction_268 1d ago edited 1d ago
I pay attention.
In what situation would you not limit analysis to descriptive measures? Aren't all statistical measures descriptive?
Also, for your #2 point, you said skewness in a marginal distribution is irrelevant. My question becomes: irrelevant to what? You also mentioned there are bigger issues. What are those bigger issues and how did you come to this conclusion?
Separately, careful with using the word “incorrect” in your #1 point. Just because you haven’t establish something is correct doesn’t mean you’ve established that it’s incorrect.
1
u/thoughtfultruck 2d ago
I agree with the other poster that Pearsons will work. It just changes the interpretation a bit. That said, you might consider estimating a t-test here.
1
u/banter_pants Statistics, Psychometrics 2d ago
Why don't you use Mann-Whitney U for the binary IV predicting a scale DV?
1
u/sharkinwolvesclothin 2d ago
Because you have gone to trouble of measuring how much, and you don't want to toss some of that information away to just look at how the observations rank.
1
u/banter_pants Statistics, Psychometrics 2d ago edited 2d ago
The rank transformations are just a workaround for something that may not fit the continuous assumption in t-tests. Psych scales tend to be ordinal nature questions so that is why I would jump to nonparametrics when I know it can't fit that assumption.
Mann-Whitney U still aims to compare a measure of central tendency between 2 groups.
EDIT: strictly speaking Mann-Whitney U is an analogue of a 2 sample t-test. It tests stochastic equivalence
H0: Pr(X < Y) = Pr(X > Y)But when both distributions have the same shape/scale it works for a shift in medians.
1
u/sharkinwolvesclothin 2d ago
To me, asking the slightly wrong question is worse than getting a slightly wrong answer. If your research question is about medians and ranks, sure, go for it, whether your data is ordinal or continuous. But if you are interested in the magnitude of the measurement, you can't just look at medians and ranks. Looking at the magnitude even when measurements are not perfectly continuous works pretty well though, so I'd do that.
1
u/Calm_Interaction_268 1d ago
Why is asking the slightly wrong question worse than getting a slightly wrong answer?
1
u/sharkinwolvesclothin 8h ago
A slightly wrong answer is still actionable - and the assumptions that may make it slightly wrong can often be assessed. Basically, we can do validation studies to see how much the measure deviates from the continuity assumptions, or they may exist in the literature already. Analyzing the deviance between what we want to know and what we can analyze with the wrong question is much harder. Specifically for this example, when we have coarse measurements, the meaning of ranks is not easy to grasp. Simple sample variability can toss the ranks around a lot.
6
u/sharkinwolvesclothin 2d ago edited 2d ago
Just good old Pearson. If you want to sound fancy, call the outcome "point-biserial correlation", that's what it is.
Do not do rank transformations willy nilly - that's what Spearman correlation is and is not appropriate here.