I have 2 numeric vectors:
A = [1] 0.09112019 0.01648917 0.09959314 0.18508083 0.43382979 0.47615469 0.02759358 0.20501685 0.11723475
[10] 0.25235056 1.01360047 0.23293548 0.02809754 0.18917008 0.12235214 0.25779546 1.11210158 0.29427705
[19] 0.46955788 0.34303692 0.26483973 0.12400529 0.77529471 0.05599909 0.08754854 0.16293734 0.20511528
[28] 0.64192924 0.15366982 0.57283905 0.29810925 0.54156768 0.06472627 0.06320937 0.07423829 0.05349911
[37] 0.45069070 0.58086056 0.17868721 0.12797566 0.18313978 0.38640191 0.09796483 0.15190912
B = [1] 1586 200 315 489 200 2044 306 271 253 610 282 200 799 200 200 200 400 628 289 447 258
[22] 200 200 375 200 200 200 280 609 779 200 200 200 200 703 200 309 200 200 200 200 200
[43] 886 412
My hypothesis is that when A
goes up, B
also goes up, and I want to calculate the correlation between these two vectors and visualize it.
These two vectors are not normally distributed.
The scatterplot does not clearly show the correlation, it is very hard to infer anything from it. Pearson
correlation gave me a negative correlation, while Spearman
gave me a postivie correlation. Both of them gave very hight p-value, about 0.9, so both of them are not significant.
Hence, I cant figure it out.. I just need to find the correlation score, the right way.
This is the scatterplot: