r/AskStatistics • • 1d 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!

5 Upvotes

15 comments sorted by

6

u/sharkinwolvesclothin 1d ago edited 1d 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.

1

u/banter_pants Statistics, Psychometrics 1d ago

What is the problem with Spearman? It's nonparametric and more flexible than the purely linear Pearson. Its rank transformations are what allows it to test for a generally increasing/decreasing trend that might be more curved. If the raw outcomes were already linear than Spearman's results are just as good as Pearson's.

2

u/sharkinwolvesclothin 1d ago

Transforming to ranks when it's not needed generally loses information. There are cases when it doesn't, so it's not always a problem, but why gamble if it's not necessary.

I'm not very interested in null hypothesis testing though, definitely not for a correlation coefficient. I'm interested in the information contained in the actual summary number.

0

u/switra 1d ago

But Pearson is not ranked, and my continuous scale is skewed? Also isn't Pearson/Spearman for two continuous variables?

I want to look at the correlation between a binary var and a continuous var

6

u/sharkinwolvesclothin 1d ago

Pearson works for one binary and one continuous - the outcome can be called point-biserial correlation if that's necessary.

Spearman is ranks, and is not appropriate unless your research questions have to do with rankings, not magnitude. If you have measurements that you are not willing to assume are continuous, there is no great metric for distilling the relationship into one number. But a cross tabulation shows the relationship well.

1

u/nonnonplussed73 11h ago

I'd also be interested in histograms of each attribute of the binary variable on the continuous outcome. Ideally, overlaid on top of one another, but even separately, if on the same scale, could be useful.

2

u/Mitazago 1d ago

Pearson.

2

u/efrique PhD (statistics) 1d ago edited 1d ago

The data that I have is from a convenience sample, so it will be skewed

  1. 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.

  2. 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 12h 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 1d 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 1d ago

Why don't you use Mann-Whitney U for the binary IV predicting a scale DV?

1

u/sharkinwolvesclothin 1d 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 1d ago edited 1d 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 1d 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 12h ago

Why is asking the slightly wrong question worse than getting a slightly wrong answer?