if I have two series of data:
a = [1 4 6 3 4 6 7 8];
b [34 56 34 56 79 23 48 28]; Then i can find the spearman and pearson correlation coefficient respectively as:
RHO= corr(a',b','Type','Spearman');
for pearson correlation, i can use:
r=corr2(a,b)
or
[R] = corr(a',b','Type','pearson')
what will be the confidence level (95% and 99%) both for pearson and spearman correlation. i need result as in the given example. let,
pearson correlation r=0.76
spearman rank correlation r=0.65
95% confidence level=0.34
99% confidence level=0.42
Note: My values of correlation coefficients and confidence level are general, they are not for given 'a' and 'b' values above. thanks.