0
$\begingroup$

Working in health science research. We have generated correlations between two variables. This is the amount of two proteins in the system. I wanted to make a straight line with slope, but the values of the straight lines are not consistent with the R values of the Spearman correlation test.

Indeed, the R is negative while the slope of the line is positive. Or vice versa. Or two lines are similar, but the R is totally different. It cannot be published in a newspaper. I then wonder how to represent the correlation between the two variables on the graphs and see the evolution of the point cloud?

(1 and 2 are two different populations)

Thanks for your advices !

enter image description here

enter image description here


Whuber: yes sorry, I expressed myself badly. We performed Spearman correlations, and we wanted to visually represent the trend of the data with a straight line. (not necessarily a non-linear line of regression). It does not matter whether the correlation is good, significant or not. Just show at a glance if there is a correlation or not.

I had in mind the correlation could be represented by a straight line. And the values of the correlation test made it possible to show scientifically that this is valid.

But with Alexis, I understand that I can't do that. And these graphs prove it, where I have negative R's with positive slopes.

I will try in log.

Is there a visual method to represent a correlation on this type of graph? Because in life sciences, a representation of the genre is often more convincing for scientific journals.

Afterwards, I am not a mathematician or a statistician, so there are a lot of gaps. And I work on the GraphPad prism software, which may have some limitations.

chrishmorris: Indeed, we have an R and not an R².

Here is the type of data we have with a spearman correlation test in the GraphPad Prism software.

enter image description here

$\endgroup$
12
  • 4
    $\begingroup$ Please explain the sense in which a "straight line" might be considered "nonlinear regression." That reads like a direct contradiction. Why are you mentioning Spearman correlation, which otherwise appears unrelated to the rest of the question? $\endgroup$
    – whuber
    Commented Jan 13, 2023 at 16:36
  • $\begingroup$ Possibly related: stats.stackexchange.com/questions/64938/… $\endgroup$ Commented Jan 13, 2023 at 16:38
  • 5
    $\begingroup$ Three quite different comments: 0. You seem to have 3 variables here 1. The graph to make sense of Spearman correlations is a plot of the ranks of two variables. 2. Regardless of P-values straight lines aren't very convincing Perhaps it would help a bit to work with log Y, depending partly on what makes sense scientifically. $\endgroup$
    – Nick Cox
    Commented Jan 13, 2023 at 16:44
  • 5
    $\begingroup$ I want to link whuber and @NickCox's comments: While you can graph straight lines on the ranks of your data, you cannot validly represent monotonic association (i.e. what Spearman's $r_{\text{S}}$ measures) with (only) a straight line on your data (not ranks), since the are many nonlinear curves which are monotonic functions of two variables. $\endgroup$
    – Alexis
    Commented Jan 13, 2023 at 17:17
  • $\begingroup$ Is the r presented Spearman's rho ? $\endgroup$ Commented Jan 13, 2023 at 20:38

1 Answer 1

-2
$\begingroup$

It is only with the blue points on the second graph that you have a model - an R value of 0.49 shows that there is a real correlation here, albeit not a very strong one.

A negative value for R-squared shows no correlation - it means that your model is a worse predictor than always predicting the mean value of Y.

Looking at your first graph, this is not surprising - neither the blue points nor the red points seem to show any correlation between X and Y. However, it is conspicuous that for both variables low values are more common than high values. It is worthwhile to try a data transformation to mitigate this and try again to find a correlation (e.g. square root).

On the second graph, with the red points, X is at best a weak predictor of Y. If there is any causal mechanism at all there would seem to be two subpopulations, one with low Y values positively correlated with X and a smaller one with large Y values negatively correlated with X.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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