Description: Computes the correlation coefficient between two 1-dim
arrays and
according to
![]() |
(7.1) |
Example:
>>> correlation([1,2,3,4,5],[1,2,3,4,5]) 1.0 >>> correlation([1,2,3,4,5],[1,2,3,5,5]) 0.96476382123773219 >>> correlation([1,2,3,4,5],[5,4,3,2,1]) -1.0