Answers for "correlation numpy python"

0

correlation coefficient python numpy example

>>> r = np.corrcoef(x, y)
>>> r
array([[1.        , 0.75864029],
       [0.75864029, 1.        ]])
>>> r[0, 1]
0.7586402890911867
>>> r[1, 0]
0.7586402890911869
Posted by: Guest on March-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language