import numpy as np x = [1, 2, 2, 3, 4, 5, 6, 8, 9, 10] y = [2, 3, 2, 5, 5, 7, 5, 6, 7, 8] print( np.corrcoef(x,y)[0][1] ) # 0.8833333333333332
0.8833333333333332
CC-BY-SA 3.0 · Powered by MediaWiki
개인정보처리방침 · ABOUT