If I understand well, u want to get a pvalue assessing the significance of a correlation.
Using random permutation is a good idea. However you should do the randomization many times in order to have an empirical distribution of the (A,C) correlation. From that distribution, you can then get the significance of your (A,B) correlation.
Good luck !
Edit : The statistical test to use will depend on your distribution. If it is normal (you can use a normality test to make sure of that), then you could compute the mean, standard deviation and pvalue like this (with R) :
#rand_corr = vector of random correlations
#here for testing, 10000 random number with 0.2 mean and 0.2 sd
# pval calculation :
mean <- mean(rand_corr) #mean of random (A,C) correlations
sd <- sd(rand_corr) #sd of random correlation
x <- 0.9 #true (A,B) correlation value
z <- (x-mean)/(sd) #center normalize
2*pnorm(-abs(z)) # return pval
# visual representation :
However if the normality is not respected (it might not be since you have correlation values that cannot go below 0 or higher than 1), you might need to ressort to other tests.
modified 5.4 years ago
5.4 years ago by
Carlo Yague ♦ 5.7k