Correlation coefficient

 

The pearson()and spearman() functions are provided to evaluate the correlation between two variables.


A

B

1

=[7,9,6,23,56,1,6]

=[6,1,56,23,6,9,7]

2

=pearson(A1,B1)


3

=spearman(A1,B1)


A2 Pearson correlation coefficients for A1 and B1

A2 Spearman correlation coefficients for A1 and B1